Peculiar configure behavior

edscott edscott at prodigy.net.mx
Sat Aug 7 18:01:20 CEST 2004


When all else fails, read the instructions:

"If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or [don't use libtool]"

The automated make process uses libtool, so if we follow instructions,
do some cut and paste and replace -lxfcegui4 with
-l${prefix}/lib/libxfcegui4.so, everything is marvelous:

/bin/sh ../libtool --mode=link gcc  -g -O2   -o xfrun4  xfrun4-xfrun.o
-Wl,-R/var/xfce/lib -L/var/xfce/lib -lxfce4util -lglib-2.0
-Wl,-R/var/xfce/lib -Wl,--export-dynamic -L/usr/X11R6/lib
-L/var/xfce/lib -Wl,--rpath -Wl,/var/xfce/lib
/var/xfce/lib/libxfcegui4.so -lgtk-x11-2.0  -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -Wl,-R/usr/lib -ldbh -lm  

which produces --> 
 
gcc -g -O2 -o xfrun4 xfrun4-xfrun.o -Wl,-R/var/xfce/lib
-Wl,-R/var/xfce/lib -Wl,--export-dynamic -Wl,--rpath -Wl,/var/xfce/lib
/var/xfce/lib/libxfcegui4.so -Wl,-R/usr/lib  -L/var/xfce/lib
/var/xfce/lib/libxfce4util.so -L/usr/X11R6/lib
/usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so
/usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so
/usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so
/usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so
/usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so
/usr/lib/libdbh.so -lm -Wl,--rpath -Wl,/var/xfce/lib -Wl,--rpath
-Wl,/var/xfce/lib

So unless I am mistaken, there is no fix possible (Benny knows more
about this than I do), except updating libxfce4util to the latest
version. 

Why does this only happen to xfcalendar, xfrun4 and xffm? That's a good
question to ask libtool.

regards,

Edscott  



libxfce4util and lib


El jue, 05-08-2004 a las 06:54, Randy Chung escribió:
> Howdy folks,
> 
> There seem to be a few oddities going on somewhere in the configure, 
> make chain.  Particularly, I'm finding that some packages aren't reading 
> from environment variables properly, leading to a situation where some 
> binaries are built against runtime libraries in the default path, while 
> others are (properly) built against runtime libraries specified in 
> environment variables.  In particular, the following binaries on my 
> system are misbehaving:
> 
> xfbook4
> xfcalendar
> xffm
> xffrecuent4
> xffrequent
> xffstab
> xffstab4
> xfglob4
> xfrecent
> xfrecent4
> xfrun4
> xfsamba4
> xftrash4
> xftree4
> 
> I have LD_LIBRARY_PATH=usr/local/xfce4/lib and 
> LDFLAGS="-L/usr/local/xfce4/lib -R/usr/local/xfce4/lib" which should 
> make everything build properly; however, it's only working for about 
> half the packages.  Now here's the odd part: only libxfce4util is being 
> linked incorrectly.  That is, going into the path I installed my 
> binaries in (/usr/local/xfce4/bin) and running:
> 
> for i in *; do ldd $i | grep '/usr/lib' | grep xfce; done
> 
> Yields only references to libxfce4util.so.  All other xfce libraries are 
> being properly linked to, e.g. /usr/local/xfce4/lib/libxfcegui4.so.
> 
> My experience with configure scripts and Makefile.{in,am} is limited, 
> and I'm busy with moving back to the US at the moment, so if someone 
> could take a look at this it would be much appreciated :)
> 
> Thanks,
> 
> Randy
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev
> 




More information about the Xfce4-dev mailing list