Michael Matz wrote:
Hi Sid,
On Tue, 29 Jun 2004, Sid Boyce wrote:
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.
/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'
Now copy-paste the above command but call the shell with -x, i.e. # /bin/sh -x ../libtool <all args from above>
Redirect the output into a file. Look at that file. At which point does "/usr/lib/libpcreposix.la" into play? That should help in finding out which .la either references it, or at which point "/usr/lib" magically is added to the search path.
Ciao, Michael.
Same result. It still searches /usr/lib, even after I've altered every instance of lib to lib64 in libtool. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer ===== LINUX ONLY USED HERE =====