[Clfs-support] strange libtool

mike spam at kleiderschrank51.de
Sat Oct 4 05:46:55 PDT 2008


hi all

i have a strange issue with libtool. when i compile with -m64, some 
packages (kdelibs, kdebase, dbus-1-qt3 & others)want link wrong against 
/usr/X11R7/lib/libXmu.so. and every this lib!?
my 'workaround' for this was a temporarily symlink from /usr/X11/lib at 
/usr/X11/lib64 during compile time. the 32libs are in /usr/X11/libb and 
normaly /usr/X11/lib points to /usr/X11/libb.

for example dbus-1-qt3:
sed -i "/search_libs/s/lib/&64/g" configure &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
./configure --prefix=/usr --libdir=/usr/lib64 
--with-qt-libraries=${QTDIR}/lib64 &&
make
..
..
*/bin/sh ./libtool *--silent --tag=CXX --mode=link g++ -m64  
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 
-Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common    -o 
dbusxml2qt3 -L/opt/qt/lib64 classgen.o main.o methodgen.o -lqt-mt  -lz 
-lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread -L/usr/X11/lib64
/usr/X11R7/lib/libXmu.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [dbusxml2qt3] error 1

when i go in dbus-1-qt3-0.9 and run:

*libtool *--silent --tag=CXX --mode=link g++ -m64  -Wno-long-long 
-Wundef -Wall -W -Wpointer-arith -O2 -Wno-non-virtual-dtor 
-fno-exceptions -fno-check-new -fno-common    -o dbusxml2qt3 
-L/opt/qt/lib64 classgen.o main.o methodgen.o -lqt-mt  -lz -lpng -lz -lm 
-lXext -lX11  -lSM -lICE -lpthread -L/usr/X11/lib64

then all is fine.
so, i think my 'workaround' is not so clever.
what can i do after configure  resp. general for all packages?

thx!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20081004/adc4a70b/attachment.html>


More information about the Clfs-support mailing list