home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11337 < prev    next >
Encoding:
Text File  |  1992-07-24  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!wupost!usc!elroy.jpl.nasa.gov!ames!sgi!quasar.wpd.sgi.com!davea
  3. From: davea@quasar.wpd.sgi.com (David B.Anderson)
  4. Subject: Re: Confusion with 'ar'
  5. Message-ID: <nmvkg1c@sgi.sgi.com>
  6. Sender: davea@quasar.wpd.sgi.com
  7. Organization: Silicon Graphics, Inc.  Mountain View, CA
  8. Date: Fri, 24 Jul 1992 16:58:08 GMT
  9. Lines: 25
  10.  
  11. In article <4107@inca.comlab.ox.ac.uk> mjs@prg.ox.ac.uk (Michael Smith) writes:
  12. >When trying to compile xmailtool on my SG, I get the following error
  13. >
  14. >        cc -o xmailtool check_mail.o xmailtool.o proc.o util.o mail_int.o 
  15. >vars.o date.o -O2 -float -lXaw -lXmu -lXt_s -lXext  -lX11_s -lm -lc_s
  16. >-lmalloc -lsun -lmalloc -lc_s 
  17. >/usr/bin/ld:
  18. >Archive: /usr/lib/libXaw.a has no table of contents, add one with 'ar ts'
  19. >/usr/bin/ld: Usage: /usr/bin/ld [options] file [...]
  20. >*** Error code 1
  21. >
  22. >Yet if I do a 'ar ts' to libXaw.a, it makes no difference.  What is going on?
  23.  
  24. Possibly something wrong with libXaw.a.   Perhaps some non-MIPS object files.
  25. Perhaps some data files.  Maybe bad disk block?
  26.  
  27. Something to try: in an empty directory, 
  28.     ar x  (path)/libXaw.a
  29.     file *
  30. Make sure all the files are MIPS cpu object files by checking the output
  31. of the file command.
  32.  
  33. Hope this helps.
  34. [ David B. Anderson             (415)390-1548             davea@sgi.com ]
  35.  
  36.