Date: Wed, 5 Apr 1995 12:40:24 +0200 (MET DST) From: cracauer@wavehh.hanse.de (Martin Cracauer) To: FreeBSD-questions@freefall.cdrom.com Subject: FreeBSD-2.0R: ar/ranlib problems with certain object files Message-ID: <9504051040.AA05327@wavehh.hanse.de>
next in thread | raw e-mail | index | archive | help
OK, stupid me, of course it is a length limitation, but not on the indentifiers, but on the name of the object file to archive. cp any.o 01234567890123.o rm foo.a ; ar rv foo.a 012345678901234.o ; ranlib foo.a -> ranlib works cp any.o 012345678901234.o rm foo.a ; ar rv foo.a 012345678901234.o ; ranlib foo.a -> ranlib doesn't work cp any.o 012345678901234.o rm foo.a ; ar rvT foo.a 012345678901234.o ; ranlib foo.a -> ranlib works, but truncates with warning. One more observation: You can link against a *.a-Files that has a member of more than 15 chars and call functions defined in such members, but you cannot use it with ar to add new members and you cannot ranlib it. So, ld seems to be able to use files that ranlib and ar refuse. Therefore I guess the problem is somewhere in /usr/src/usr.bin/ar/archive.[ch] which is used by both ar(1) and ranlib(1) to read *.a files. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Private email Martin.Cracauer@wavehh.hanse.de Fax +4940 522 8536. No NeXTMail! "As far as I'm concerned, if something is so complicated that you can't ex- plain it in 10 seconds, then it's probably not worth knowing anyway" - Calvin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9504051040.AA05327>