[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [opendx-dev] DX linking problems
Do a man errno and see which lib you need to include to get it that
isn't being included.
>I was trying to compile with gcc 3.3.1-r1 and got the following linking
>error:
>
>make[3]: Entering directory `/home/jfox/dx/src/exec/dxexec'
>gcc -mcpu=pentium3 -O3 -pipe -Wall -g -O2 -I/usr/X11R6/include
>-D_GNU_SOURCE -o dxexec -Wl,-export-dynamic main.o
>../dpexec/libDPEXEC.a ../dxmods/libDXMODS.a ../libdx/libLIBDX.a
>../hwrender/libHW.a ../hwrender/opengl/libOPENGL.a -lnsl -lnetcdf
>-lXpm -ltiff -ldl -lXm -lXp -lGLU -lGL -lXt -L/usr/X11R6/lib -L/usr/lib
>-lMagick -ljbig -lfreetype -ljpeg -lpng -lwmflite -ldpstk -ldps -lXext
>-lSM -lICE -lX11 -lbz2 -lxml2 -lz -lpthread -lm
>../dpexec/libDPEXEC.a(loader.o)(.text+0x34e): In function
>`DXUnloadObjFile':
>/home/jfox/dx/src/exec/dpexec/loader.c:696: warning: `sys_errlist' is
>deprecated; use `strerror' or `strerror_r' instead
>/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/ld:
>warning: libdpstk.so.0, needed by /usr/lib/libMagick.so, may conflict
>with libdpstk.so.1
>/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/ld:
>warning: libdps.so.0, needed by /usr/lib/libMagick.so, may conflict with
>libdps.so.1
>../libdx/libLIBDX.a(mem.o)(.text+0x50f): In function `_dxfsetmem':
>/home/jfox/dx/src/exec/libdx/mem.c:414: undefined reference to `errno'
>../libdx/libLIBDX.a(mem.o)(.text+0x577):/home/jfox/dx/src/exec/libdx/mem.c:379:
>undefined reference to `errno'
>collect2: ld returned 1 exit status
>make[3]: *** [dxexec] Error 1
>make[3]: Leaving directory `/home/jfox/dx/src/exec/dxexec'
>make[2]: *** [all-recursive] Error 1
>make[2]: Leaving directory `/home/jfox/dx/src/exec'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/home/jfox/dx/src'
>make: *** [all-recursive] Error 1
>
>Any clue what's wong in mem.c and errno?
>
>-- Jon
--
.............................................................................
David L. Thompson Visualization and Imagery Solutions, Inc.
mailto:dthompsn@vizsolutions.com 5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472