From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98534474500418.tru64-unix-managers.marc@archive.invalid> From: Uwe Lienig Date: Fri, 23 Mar 2001 10:51:43 +0000 To: tru64-unix-managers Subject: Dynamic Libraries (was: Linking problems) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98534474500418 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------2EC33FB473789472F430508B" This is a multi-part message in MIME format. --------------2EC33FB473789472F430508B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi managers, days ago I asked for help regarding linking problems. The SUMMARY stated, that there was a libjpeg.so in /usr/shlib. This lib does interfere with the requested libjpeg.{a,so} in /usr/local/lib. After knowing that I now ran into the following issue: I did a nm on /usr/shlib/libjpeg.so, which is (as I guess) a helper for java written by COMPAQ to support jpeg in java ( if I'm wrong, please correct me). This libjpeg does not comprise the routines present in libjpeg from the IJG, currently version 6b (62.0.0). This one compiles very well, even shared libs are supported. In fact, these two libjpegs seem to share only the name libjpeg !! This is basically not the problem, the libs are installed in different paths. But things go worse, if a program is started which has only a shared object defined by name without a path. Then the loader will decide which lib to use, and will find /usr/shlib before /usr/local/lib. The prog will fail due to unresolved symbols. One solution might be, setting LD_LIBRARY_PATH globally to search for lib first in /usr/local/lib and the the default path. But this might break java due to a libjpeg from IJG, which is not the right lib (java stuff is missing). Then, installing programs which are using libjpeg from IJG should installed using a wrapper, i.e. xv is a script that sets LD_LIBRARY_PATH and exec's xv.bin or something. This is some overhead and is somehow an extra thing to to for admins ... Well, at the end: What have you done to come around this problem ?? TIA --------------2EC33FB473789472F430508B Content-Type: text/x-vcard; charset=us-ascii; name="Uwe.Lienig.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Uwe Lienig Content-Disposition: attachment; filename="Uwe.Lienig.vcf" begin:vcard n:Lienig;Uwe tel;fax:(+49 351) 462 3476 tel;work:(+49 351) 462 2780 x-mozilla-html:FALSE org:Forschungsinstitut Fahrzeugtechnik -FiF-;Computer Aided Design and Advanced Simulation Technology adr:;;Friedrich-List-Platz 1;Dresden;Saxony;01069;Germany version:2.1 email;internet:uwe.lienig@fif.mw.htw-dresden.de note;quoted-printable:... have you ever seen MicroSoft users smiling ...=0D=0A=0D=0ASysAdmin x-mozilla-cpt:;-6720 fn:Uwe Lienig end:vcard --------------2EC33FB473789472F430508B--