ar, nm not reading library files (libz, etc.)
kris at obsecurity.org
Fri Feb 27 19:35:07 PST 2004
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040227/1285e58b/attachment.bin
More information about the freebsd-questions