Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Kevin Nathan Newsgroups: comp.os.linux.development.apps Subject: Re: Linking problem Date: Mon, 19 Dec 2011 10:16:11 -0700 Lines: 55 Message-ID: <20111219101611.2b19f856@efreet.linux> References: <20111215001104.13eda1b8@efreet.linux> <8762himaw3.fsf@sapphire.mobileactivedefense.com> <20111215162948.60b95d1c@efreet.linux> <874nx17375.fsf@sapphire.mobileactivedefense.com> <20111215234243.40f9ed06@efreet.linux> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: individual.net bHSj0rhaVHBH5OSyYdX9NQyWk4ajpsDbbx1dW2Ci60axQY3fet Cancel-Lock: sha1:cGJvIVUTopfL4GYN83/aUinRY5Y= X-Newsreader: Claws Mail 3.7.10 (GTK+ 2.22.1; i686-pc-linux-gnu) X-Face: %/gp4MCQT=`#JS##?-]V9ksid6OSR@(wbF"bK6wSLO$u,%(N@X~bVhAD+\A_[gRhx*T6=fq "N_5H8.v[&;q0iw!s_wuL05B0xg#OYUkbn#@&U_]fL%o==~2sphc?*L+bicO!POJLG#p'N.]J0/p_w Z^(.kOB%Ob914-V>?GI; Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.development.apps:338 On Mon, 19 Dec 2011 00:27:27 +0000 Lusotec wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA256 > >Kevin Nathan wrote: >> Rainer Weikusat wrote: >>>Forget --sysroot. You need to add your include directories with -I, >>>add your library directories with -L and add them again with -Wl,-R >>>and that's it. If the binaries are still linked against system >>>libraries you don't want, something is still missing in your custom >>>library directory. >> >> That was the ticket! I am 99% there, now. By using this: >> >> export LDFLAGS=" -Wl,-R /home/username/progroot/lib/ >> -Wl,-R /home/username/progroot/usr/lib/ >> -Wl,-R /home/username/progroot/usr/lib/mysql/ >> -Wl,-R /home/username/progroot/opt/kde3/lib/ >> -Wl,-R /home/username/progroot/usr/lib/qt3/lib/ " > >In situations like this I recommend the use of paths relative, instead >of absolute paths. > I do, too, but I was seeming to encounter errors until I went with absolute paths. In our case, it's not a big deal because all clients have the same username (it's not a program that is generally useful to anyone but a small, vertical market). If this were not the case, I would insist on everyone upgrading instead of having to jump through these hoops. Since these boxes are not connected to the internet, upgrading is less of an issue and harder to justify the expense since we would have to travel to each client around the country to do the upgrade of the OS (they are mostly computer neophytes, if not outright illerate!). >For a more portable method, you can use a shell script and set >LD_LIBRARY_PATH at runtime to the appropriate library search paths. > Yes, I may need to use that, too. I will see after today's testing. I've finally gotten glibc to compile so I can now test further... -- Kevin Nathan (Arizona, USA) Linux Potpourri -- http://www.project54.com/linux/ Open standards. Open source. Open minds. The command line is the front line. Linux 2.6.37.6-0.9-desktop 10:07am up 8 days 21:17, 13 users, load average: 0.09, 0.13, 0.13