home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 12877 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.8 KB  |  49 lines

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