From owner-freebsd-questions Wed Apr 5 03:58:29 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id DAA15412 for questions-outgoing; Wed, 5 Apr 1995 03:58:29 -0700 Received: from ki1.chemie.fu-berlin.de (ki1.Chemie.FU-Berlin.DE [160.45.24.21]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id DAA15401 for ; Wed, 5 Apr 1995 03:58:10 -0700 Received: by ki1.chemie.fu-berlin.de (Smail3.1.28.1) from toluol.zedat.fu-berlin.de (130.133.2.21) with smtp id ; Wed, 5 Apr 95 12:56 MEST Received: by toluol.zedat.fu-berlin.de (Smail3.1.28.1) from mail.hanse.de (134.100.239.2) with smtp id ; Wed, 5 Apr 95 12:56 MEST Received: from wavehh.UUCP by mail.hanse.de with UUCP for FreeBSD-questions@freefall.cdrom.com id ; Wed, 5 Apr 95 12:56 MET DST Received: by wavehh.hanse.de (4.1/SMI-4.1) id AA05327; Wed, 5 Apr 95 12:40:25 +0200 From: cracauer@wavehh.hanse.de (Martin Cracauer) Message-Id: <9504051040.AA05327@wavehh.hanse.de> Subject: FreeBSD-2.0R: ar/ranlib problems with certain object files To: FreeBSD-questions@freefall.cdrom.com Date: Wed, 5 Apr 1995 12:40:24 +0200 (MET DST) Reply-To: cracauer@wavehh.hanse.de X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1214 Sender: questions-owner@FreeBSD.org Precedence: bulk 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