Paul C. Leopardi wrote:
Hi all, Reply below. Best regards
On Monday 28 June 2004 11:26, Sid Boyce wrote:
4) How do I relocate non-suse source rpms correctly so that when I compile to 64bit, they end up in the correct /usr/lib64 directories? And then when I start the app how does it know where to find the 64bit .so libs?
I haven't look very much at this, but it seems some sources need alteration. I tried building the sources to kmymoney and whatever I did, it kept looking in /usr/lib for one library that was in /usr/lib/lib64, for all the other libraries, it looked in 64 libs.
Look at the configure script for the package and try to see if the following will work:
./configure --enable-libsuffix=64
This is a frequently asked question. See eg. http://lists.suse.com/archive/suse-amd64/2004-Jun/0272.html http://lists.suse.com/archive/suse-amd64/2004-May/0294.html http://lists.suse.com/archive/suse-amd64/2004-Apr/0217.html http://archives.mandrakelinux.com/cooker-amd64/2004-04/msg00033.php
Been there, done that, but it doesn't work for all sources, e.g kmymoney-2.0.6rc4. libpcreposix.la is actually in /usr/lib64. I chose kmymoney as a random app to try as someone else had hit the same kind of problem with a quite different app. If I copy that lib into /usr/lib, it complains about /usr/lib/libpcre.la which again is in /usr/lib64, also libpcreposix.la has a line "dependancy_libs=' /usr/lib64/libpcre.la'. kmymoney builds its own libtool and perhaps that's where the problem is, but I haven't found anything that I can put a finger on and some changes made to libtool made no difference. ./configure --enable-libsuffix=64 --with-qt-dir=/usr/lib64/qt3 --prefix=/opt/kde3 --with-qt-libraries=/usr/lib64/qt3/lib64 --with-extra-libs=/usr/lib64 Then during make ============== /bin/sh ../libtool --mode=link --tag=CXX g++ -O2 -fno-exceptions -fno-check-new -fexceptions -lxml2 -lz -lpthread -lm -o kmymoney2 -L/usr/X11R6/lib64 -L/ usr/lib64/qt3/lib64 -L/opt/kde3/lib kmymoneyutils.o kstartuplogo.o kmymoney2.o main.o kmymoney2.moc.o kstartuplogo.moc.o kmymoney2_meta_unload.o ./views/ libviews.a ./converter/libconverter.a ./dialogs/libdialogs.a ./widgets/libwidgets.a ./mymoney/storage/libstorage.a ./mymoney/libmymoney.a -lkhtml -lkdeui - lkdecore -lqt-mt -lpng -lz -lm -lXext -lX11 -lresolv -lSM -lICE -lpthread -lresolv mkdir .libs libtool: link: cannot find the library `/usr/lib/libpcreposix.la' make[3]: *** [kmymoney2] Error 1 make[3]: Leaving directory `/ftp/apr04/kmymoney2-0.6rc4/kmymoney2' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/ftp/apr04/kmymoney2-0.6rc4/kmymoney2' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/ftp/apr04/kmymoney2-0.6rc4' make: *** [all] Error 2 -------------------------------------------- With /usr/lib/libpcreposix.la copied over from /usr/lib64 libtool: link: cannot find the library `/usr/lib/libpcre.la' Hit the right app and you will have problems. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer ===== LINUX ONLY USED HERE =====