Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2004 19:35:06 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        clayton rollins <crollins666@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ar, nm not reading library files (libz, etc.)
Message-ID:  <20040228033505.GB30097@xor.obsecurity.org>
In-Reply-To: <Sea1-F46PjrR80UgkF70000f1f3@hotmail.com>
References:  <Sea1-F46PjrR80UgkF70000f1f3@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--gj572EiMnwbLXET9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Feb 28, 2004 at 03:29:34AM +0000, clayton rollins wrote:
> Hi List,
>=20
> 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.
>=20
> 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
>=20
> 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.
>=20
> Any ideas?

ar and nm work with static libraries, not shared.  Perhaps you're
looking for objdump.

Kris

--gj572EiMnwbLXET9
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAQAxpWry0BWjoQKURAmK5AJ0QJLiWTcu0gMRB+GtSSGhjmmAPcgCffgSn
plpZzP+a2W6ZNzJZXSrAPT0=
=KDlW
-----END PGP SIGNATURE-----

--gj572EiMnwbLXET9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040228033505.GB30097>