From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 19:40:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E460D16A4CE for ; Fri, 27 Feb 2004 19:40:27 -0800 (PST) Received: from hotmail.com (sea1-f159.sea1.hotmail.com [207.68.163.159]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFCAA43D1D for ; Fri, 27 Feb 2004 19:40:27 -0800 (PST) (envelope-from crollins666@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 27 Feb 2004 19:40:27 -0800 Received: from 216.19.22.118 by sea1fd.sea1.hotmail.msn.com with HTTP; Sat, 28 Feb 2004 03:40:27 GMT X-Originating-IP: [216.19.22.118] X-Originating-Email: [crollins666@hotmail.com] X-Sender: crollins666@hotmail.com From: "clayton rollins" To: kris@obsecurity.org Date: Sat, 28 Feb 2004 03:40:27 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Feb 2004 03:40:27.0622 (UTC) FILETIME=[9B2E7060:01C3FDAC] cc: freebsd-questions@freebsd.org Subject: Re: ar, nm not reading library files (libz, etc.) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2004 03:40:28 -0000 On Feb. 27, 2004 Kris Kennaway wrote: > >On Sat, Feb 28, 2004 at 03:29:34AM +0000, clayton rollins wrote: > > Hi List, > > > > I've been having problems with ar and nm not being able > > to use the library files installed on my system, though > > executables created with them seem to work fine. > > libz is not the only library this happens with, just using > > it as an example. > > > > The output: > > >ar -t /usr/lib/libz.so.2 > > /usr/libexec/elf/ar: /usr/lib/libz.so.2: File format not recognized > > >nm /usr/lib/libz.so.2 > > /usr/libexec/elf/nm: /usr/lib/libz.so.2: no symbols > > > > The problem was first noticed after a massive round > > of portupgrading (due to the threading change). > > Rebuilding the system with RELENG_4_9 as of today > > did not fix the issue. > > > > Any ideas? > >ar and nm work with static libraries, not shared. Perhaps you're >looking for objdump. > >Kris Thanks Kris; I thought ignorance was partially to blame. I think the problem is actually a naughty makefile, an old version uses nm fine (for whatever it uses it for). Thanks for your time, Clayton _________________________________________________________________ Take off on a romantic weekend or a family adventure to these great U.S. locations. http://special.msn.com/local/hotdestinations.armx