This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem with LD


Hi

Tody I tried to compile WindowMaker 0.80.0. During the make I get this error:

gcc -g -O2 -o testdraw testdraw.o  ../wrlib/.libs/libwraster.a -L/usr/local/lib -L/usr/X11R6/lib -ltiff /usr/lib/libHermes.so -lpng -lz /usr/lib/libjpeg.so -lX11 -lm
../wrlib/.libs/libwraster.a(gif.o): In function `RLoadGIF':
/home/daryl/upd/WindowMaker-0.80.0/wrlib/gif.c:64: undefined reference to `DGifOpenFileName'
/home/daryl/upd/WindowMaker-0.80.0/wrlib/gif.c:67: undefined reference to `GifLastError'
/home/daryl/upd/WindowMaker-0.80.0/wrlib/gif.c:89: undefined reference to `DGifGetRecordType'
/home/daryl/upd/WindowMaker-0.80.0/wrlib/gif.c:97: undefined reference to `DGifGetImageDesc'
/home/daryl/upd/WindowMaker-0.80.0/wrlib/gif.c:149: undefined reference to `DGifGetLine'
/home/daryl/upd/WindowMaker-0.80.0/wrlib/gif.c:164: undefined reference to `DGifGetLine'
/home/daryl/upd/WindowMaker-0.80.0/wrlib/gif.c:181: undefined reference to `DGifGetExtension'
/home/daryl/upd/WindowMaker-0.80.0/wrlib/gif.c:185: undefined reference to `DGifGetExtensionNext'
/home/daryl/upd/WindowMaker-0.80.0/wrlib/gif.c:199: undefined reference to `GifLastError'
/home/daryl/upd/WindowMaker-0.80.0/wrlib/gif.c:220: undefined reference to `DGifCloseFile'
collect2: ld returned 1 exit status
make[1]: *** [testdraw] Error 1
make[1]: Leaving directory `/usr/local/upd/WindowMaker-0.80.0/wrlib'
make: *** [all-recursive] Error 1

I have the libungif installed, and if I add an -lungif to the Makefile it compiles without any problem.
My question is: Shouldn't ld add libungif automatically? I have this problem with other libs as well, and if I try to compile WindowMaker on another system with the same libungif there were no problems.

/etc/ld.so.conf is ok and ldconfig runs without any problems.
I use glibc-2.2.5, binutils-2.11.93 (I have the problem with 2.11.2 as well), gcc-2.95.3 and a Kernel-2.4.17.

Can somebody tell me were to search for a solution?

Thanks

Jürgen
________________________________________________________________
Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]