From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mark Scarborough Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: ld (or libz) problem Date: Tue, 05 Nov 2002 11:35:39 -0600 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20021105173540.0128A41A@kosmo.ixc-comm.com> References: <20020906203841.EC613442@kosmo.ixc-comm.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036517684 5860 80.91.224.249 (5 Nov 2002 17:34:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2002 17:34:44 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1897b8-0001Vx-00 for ; Tue, 05 Nov 2002 18:34:42 +0100 Original-Received: (qmail 29581 invoked by uid 5); 5 Nov 2002 17:35:58 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 29572 invoked by uid 49493); 5 Nov 2002 17:35:57 -0000 Original-Received: from mscar-osf@cactus.org by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-9.7/5.0):. Processed in 0.569992 secs); 05 Nov 2002 17:35:57 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 5 Nov 2002 17:35:57 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5400IAA67WGI@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 05 Nov 2002 12:35:56 -0500 (EST) Original-Received: from kosmo.ixc-comm.com (pix.broadwing.net [216.140.58.174]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5400J1Q67NHO@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 05 Nov 2002 12:35:47 -0500 (EST) Original-Received: from kosmo.ixc-comm.com (localhost [127.0.0.1]) by kosmo.ixc-comm.com (Postfix) with ESMTP id 0128A41A for ; Tue, 05 Nov 2002 11:35:39 -0600 (CST) X-URL: http://www.broadwing.com/ In-reply-to: "Your message of Fri, 06 Sep 2002 15:38:40 CDT." <20020906203841.EC613442@kosmo.ixc-comm.com> Original-To: tru64-unix-managers@ornl.gov X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 Xref: main.gmane.org gmane.os.tru64.managers:2326 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2326 Here is a much overdue Summary for the archives... (Original question at the end.) Thanks go to Joe Mario, who is a Tru64 Developer, apparently from the DEC days. (He still has a @zk3.dec.com email address that some of us old-timers recognize...) Anyway, this problem was never really solved, but a satisfactory work-around was found that has worked fine since. A couple of relevant (and useful) quotes from Joe: Joe Mario said: > You can tell the version of a shared library on Tru64 UNIX with the > "odump -D libz.so" command. If the library was linked without any > special version, then the version will be "_null" and it will not > show up in the odump output. However, if the library was linked with > the "-set_version " flag, then the > will show up in the IVERSION field of the odump output. > > There are ways to force the loader to use the libz.so with the older > version string, but that may lead you into trouble if there were > api changes in the library. and Joe Mario said: > Based on the loader error message I see in your mail, it looks > like your applications have linked with /usr/local/lib/libgnorba.so. > It also looks like when /usr/local/lib/libgnorba.so was built, it > was linked with a libz.so with a version of "1.0". This can be > verified with "odump -Dl /usr/local/lib/libgnorba.so". > > The libz.so on your system is an older version with a version of > "_null". Based on all this information, I was able to figure out how to re-link libz so that it had multiple valid version numbers internally. That seemed to make enough difference that things settled down. To do this, I used the "-set_version " flag to "ld" when re-linking zlib. Thanks again, Joe. Mark -- Mark Scarborough Lead Unix Admin Broadwing Communications Mark.Scarborough@broadwing.com (mailto:Mark.Scarborough@broadwing.com) On Fri, 06 Sep 2002 15:38:40 -0500, Mark Scarborough wrote: > I have a problem on my workstation that has been happening for a while now, > but I've finally had it enough to ask for help. > > (AlphaStation DS10 - T64 v5.1A pk2) > > I think the problem started around the time I upgraded my 'libz' to 1.14 > because of the security hole in 1.13, but I'm not absolutely certain of > that. None of my servers have this problem, but, then again, I don't > install so much "stuff" on them... > > Anyway, here is the problem: I can't run some programs (ever) because I get > a message like this: > > $ xscreensaver-demo > 275333:/usr/local/bin/xscreensaver-demo: /sbin/loader: Fatal Error: object > libz.so from liblist in /usr/local/lib/libgnorba.so has version "1.0", > which does not match the found object: /usr/lib/libz.so (with version > "_null") > > > (This is _not_ limited to xscreensaver - that's just an example.) > > I've tried changing my "LD_LIBRARY_PATH" and even removing it entirely, but > it doesn't help. > > I've tried finding all version of libz.[so|a] on the system and making them > the same and/or getting rid of the old ones. > > I've tried putting the old ones back. > > Nothing seems to help. > > I can no longer run Gnome or KDE and some other apps. It hasn't been a > huge problem, but it's gradually becoming more and more of a pain in the > @ss. > > Thanks in advance for any clues! > > Mark > > > -- > Mark Scarborough > Lead Unix Admin > Broadwing Communications > Mark.Scarborough@broadwing.com (mailto:Mark.Scarborough@broadwing.com) > > >