home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11365 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.9 KB

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