[ale] ld can't find my libraries

Michael D. Hirsch mhirsch at nubridges.com
Fri Jun 20 12:10:39 EDT 2003


I've got a RH 9 server I'm trying to compile a package on and I don't 
understand why I'm getting an error.  When I run make I end up with this 
error:
[root at sulfur GD-2.07]# gcc  -shared -L/usr/local/lib GD.o  -o 
blib/arch/auto/GD/GD.so   -L/usr/lib  -lpng12 -L/usr/lib/X11 
-L/usr/X11R6/lib -L/usr/local/lib -lgd -L/usr/lib -lz -lfreetype -ljpeg 
-lm -lX11 -lXpm
/usr/bin/ld: cannot find -lpng12[root at sulfur GD-2.07]# gcc  -shared 
-L/usr/local/lib GD.o  -o blib/arch/auto/GD/GD.so   -L/usr/lib  -lpng12 
-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/local/lib -lgd -L/usr/lib -lz 
-lfreetype -ljpeg -lm -lX11 -lXpm
/usr/bin/ld: cannot find -lpng12
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status

Needless to say, I have libpng installed.

If I move png to the end I get:
[root at sulfur GD-2.07]# gcc  -shared -L/usr/local/lib GD.o  -o 
blib/arch/auto/GD/GD.so   -L/usr/lib  -L/usr/lib/X11 -L/usr/X11R6/lib 
-L/usr/local/lib -lgd -L/usr/lib -lz -lfreetype -ljpeg -lm -lX11 -lXpm 
-lpng
/usr/bin/ld: cannot find -lfreetype
collect2: ld returned 1 exit status

If I move freetype to the end it can't find jpeg, and the same with X11 and 
Xpm.  It does see able to find gd, z and m amazingly enough.

When I run ldconfig -v these libraries do show up.

What's going on?

Thanks,

Michael

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list