home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!stanford.edu!ames!sgi!quasar.wpd.sgi.com!davea
- From: davea@quasar.wpd.sgi.com (David B.Anderson)
- Subject: Re: help: fortran/libcgs.a
- Message-ID: <p1h55ss@sgi.sgi.com>
- Sender: davea@quasar.wpd.sgi.com
- Organization: Silicon Graphics, Inc. Mountain View, CA
- Date: Tue, 25 Aug 1992 23:31:20 GMT
- Lines: 38
-
- In article <5547@ucsbcsl.ucsb.edu> 6500hsb@ucsbuxa.ucsb.edu (Howard Bergh) writes:
- >I am trying to compile mcnp (neutron transport simulator)
- >on a 320VGX. It requires a library file: libcgs.a I
- >obtained a copy of this library from another SGI computer.
- >When I try to link the *.u files I get an error stating
- >that libcgs.a doesn't have a table of contents and to
- >add one using "ar ts" If I run "ar ts" the libcgs.a file
- >is not changed, and If I look at the file it starts with
- >a _.SYMDEF. "ar t" gives a correct listing of object files.
-
-
- If it really has a _.SYMDEF file it is NOT an sgi/mips archive. These
- start with a file named ___________EBEB (approximately). (this is in any
- compiler release up thru 2.20/2.40. After that archives default (in 3.10
- compilers) to SVR4 archive format). No _.SYMDEF there either.
-
- >What is going on? How can I tell if my library has a table
- >of contents, and if it does, why else might I be getting this
- >error.
- >
- > thanks, Sam
- >
- >hbergh@topgun2.ucsb.edu
-
- On the surface it would appear the files in the archive are not exclusively
- sgi/mips object files. ar(1) refuses to build a table of contents in that
- case.
-
- Extract all the files and try the file command on each one extracted from
- the archive to see what it is. Discard files which are not valid objects.
- remove the archive and rebuild it.
-
- (For Ucode, the archive is conventionally named *.b: libcgs.b for
- example).
-
- Hope this helps.
- [ David B. Anderson (415)390-1548 davea@sgi.com ]
-
-