[ale] ld can't find my libraries

hbbs at attbi.com hbbs at attbi.com
Fri Jun 20 13:51:48 EDT 2003


I'm having a similar issue; in tryinf to build and install the laundry list of
things needed to build and install Abiword, I've all but given up because even
though I've gotten the glib-2.2.2 to install, the next thing in the list - pango
- bombs out on ./config for not having a high enough (IIRC, >2.1.3) of glib. 
I've fooled with ldconfig and its conf file and it seems to be picking up the
new info but it's just kind of hopeless and no Ms that I have RTFed or Googling
are getting me anywhere.

This is Mandrake 9.1, FWIW.

It seems as though modern versions of RH and Man don't carry binaries of gtk+ at
all, which is a bit disheartening.

- Jeff
> 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

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





More information about the Ale mailing list