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