home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sun / apps / 2767 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.7 KB  |  40 lines

  1. Xref: sparky comp.sys.sun.apps:2767 comp.unix.solaris:417
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!att!cbnewse!cbnewsd!att-out!rutgers!micro-heart-of-gold.mit.edu!xn.ll.mit.edu!ll.mit.edu!aws
  3. From: aws@ll.mit.edu (Alan Stone)
  4. Newsgroups: comp.sys.sun.apps,comp.unix.solaris
  5. Subject: Help! multiply defined errors
  6. Keywords: libc acc ANSI-C
  7. Message-ID: <1992Dec15.195240.14217@ll.mit.edu>
  8. Date: 15 Dec 92 19:52:40 GMT
  9. Sender: news@ll.mit.edu
  10. Organization: MIT Lincoln Laboratory, Lexington MA
  11. Lines: 26
  12. Originator: aws@ll.mit.edu (Alan Stone)
  13.  
  14.  
  15.  
  16. We are currently converting our code to ANSI-compliance in preparation
  17. for the move to Solaris 2.x. We are running SunOS 4.1.3, and
  18. are using Sun's acc for compilation. Our project makefiles generate both
  19. .sa and .so versions of our libraries for flexibility. However when our
  20. applications are linked using -Bstatic the folowing error is produced:
  21.  
  22. acc -v -vc -Xt -temp=/usr/tmp -Dsun  -g -Bstatic -target sun4 -v -o acu
  23.     acu.o -lastb -lm
  24. ld: /lib/libc.a(flsbuf.o): _fflush: multiply defined
  25.  
  26. There are no errors when we link our applications dynamically. Is the
  27. static version of libc not compatible with the static libraries supplied
  28. by Sun with thier unbundled ANSI compiler?
  29.  
  30. If I run 'ar t' on /usr/lib/libc.a I see flsbuf.o which I assume contains
  31. a definition of _fflush(). I also see that 'ar t' on libansi.a produces
  32. an object called fflush.o. Is this the problem and is there a workaround
  33. or patch available? 
  34.  
  35. My apologies if this has been beaten to death, but I am not a regular
  36. subscriber. If this is a bona fide problem (and not my screw up), it
  37. seems many folks would have experienced it already.
  38.  
  39. Please respond to my email address. Thanks in advance.
  40.