🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1056

Re: ld not recognizing ar/ranlib archives

#1056
From: Zenon Fortuna
Date: Thu, 03 Sep 1992 00:05
26 lines
1537 bytes
In article <1992Sep1.151041.15826@micrografx.com> sstaton@micrografx.com (Steven R. Staton) writes:
>When I build an archive (library) using 'ar r <objectfilelist>' and then  
>run ranlib on it, I cannot link the object modules into any code.  ld  
>reports:
>
>/bin/ld: table of contents for archive: /usr/lib/libTest.a is out of date;  
>rerun ranlib(1) (can't load from it)
>
>When I build the f2c package, it does the exact same thing except that I  
>can link the libF77 and libI77 libraries without incident.  The only  
>difference between how f2c makes it's libraries is in the source; ie. no  
>difference in the methodology.
>
>Does anyone know what secret ingredient I am missing?
>-- 
>     Steven R. Staton      |   The two most common things in the
>     Micrografx, Inc.      | Universe are Dark Matter and Stupidity
>  sstaton@micrografx.com   |

It may happen, that you had copied your *.a file from temporary location, after
calling your ranlib. If this is the case, the time change caused by copying
results in the linker problems you quote.

You can use "cp -p ..." to preserve the date/time.

	-Z.
Technical Details
Message-ID: <1992Sep3.000537.3433@resonex.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!csus.edu!netcom.com!netcomsv!resonex!zenon
References: <1992Sep1.151041.15826@micrografx.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!csus.edu!netcom.com!netcomsv!resonex!zenon
From: zenon@resonex.com (Zenon Fortuna)
Subject: Re: ld not recognizing ar/ranlib archives
Message-ID: <1992Sep3.000537.3433@resonex.com>
Organization: Resonex Inc., Sunnyvale CA
References: <1992Sep1.151041.15826@micrografx.com>
Date: Thu, 3 Sep 1992 00:05:37 GMT
Lines: 26