[Clfs-support] strange libtool

Ken Moffat zarniwhoop at ntlworld.com
Sat Oct 4 12:39:36 PDT 2008


On Sat, Oct 04, 2008 at 12:46:55PM +0000, mike wrote:
> 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
> ..
 Probably, one or two commonly used libraries are causing the
problem.  If you can identify the _earliest_ package where you had
to do this, try running its configure without the extra overrides,
then look at the output (probably, config.log) to see which
package(s) decided that /usr/lib was wanted.  Unfortunately,
this part is tedious (hopefully, you can search for 'lib/' to skip
over the correct lib64 references).

 Then, look through the configure script to find *how* it searches
for this package (often, but not always, using pkgconfig).  I've
seen the *reverse* situation (32-bit libraries generally needing
overrides), but that was caused by not having wrapped versions of
-config programs.  I think I had something similar (again, not
necessarily libtool-related) on my first multilib system, but never
traced why - in those days I was content to just get it to work.

 But first, please check the xmu.pc and xmuu.pc pkgconfig files for
both sizes, to make sure they are correct, and in the correct
directories, and also check that your scripts are using the correct
PKG_CONFIG_PATH whenever you change from/to 32/64-bit.

 BTW, I'm curious why you put xorg into /usr/X11R7 instead of just
/usr ?

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce



More information about the Clfs-support mailing list