ar, nm not reading library files (libz, etc.)

2004-02-27 Thread clayton rollins
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?

Regards,
Clayton Rollins
PS. please be sure to CC me, as I only receive the
list in digest form.
_
Say “good-bye” to spam, viruses and pop-ups with MSN Premium -- free trial 
offer! http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ar, nm not reading library files (libz, etc.)

2004-02-27 Thread Kris Kennaway
On Sat, Feb 28, 2004 at 03:29:34AM +, 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


pgp0.pgp
Description: PGP signature


Re: ar, nm not reading library files (libz, etc.)

2004-02-27 Thread clayton rollins


On Feb. 27, 2004 Kris Kennaway [EMAIL PROTECTED] wrote:
On Sat, Feb 28, 2004 at 03:29:34AM +, 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

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]