home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!sgi!quasar.wpd.sgi.com!davea
- From: davea@quasar.wpd.sgi.com (David B.Anderson)
- Newsgroups: comp.sys.sgi
- Subject: Re: duplicate routine problem in libmpc.a / libc_s.a
- Message-ID: <nnc6vc8@sgi.sgi.com>
- Date: 25 Jul 92 00:07:25 GMT
- Sender: davea@quasar.wpd.sgi.com
- Organization: Silicon Graphics, Inc. Mountain View, CA
- Lines: 35
-
- In article <78329@bcsaic.boeing.com> chrise@atc.boeing.com writes:
- >I've been noticing the following error message in the final stage of a `make'
- >for a program a colleague and I have been working on, and now that all of the
- >other problems have been resolved I'd like to get rid of this one. The
- >program appears to work despite the warnings, so we have ignored them until
- >this point. We're no longer explicitly linking against libc_s.a, as you can
- >see from the partial output from `make' below, but it appears to be getting
- >dragged in anyway. Is there any way to get rid of these warnings?
-
- No. libmpc.a has functions packaged in different source files than
- libc_s.a and libc.a. This was a mistake on our part. Fortunately it is
- harmless.
-
- When linking with -lgl_s you MUST have -lc_s (it is used by -lgl_s) so the
- compiler driver program (cc) links in libc_s.a (and libX11_s.a, since it is
- required too).
-
-
- > cc -float -cckr -g2 [many .o files here ...]
- > -L. -lcgm -lmpc -lgutil -limage -lPW -lvc -lgl_s -lds -lm -lfm_s
- >/usr/bin/ld:
- >Warning: _oserror: multiply defined
- > previous (used) definition from '/usr/lib/libmpc.a';
- > new (ignored) definition from '/usr/lib/libc_s.a'
- >Warning: _setoserror: multiply defined
- > previous (used) definition from '/usr/lib/libmpc.a';
- > new (ignored) definition from '/usr/lib/libc_s.a'
-
- You'll just have to ignore those warnings.
- Wish I didn't have to say that.
-
- (Anybody have a comment/correction?)
-
- Regards,
- [ David B. Anderson (415)390-1548 davea@sgi.com ]
-