home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22346 < prev    next >
Encoding:
Internet Message Format  |  1993-01-01  |  2.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!news.u.washington.edu!serval!luke.eecs.wsu.edu!hlu
  2. From: hlu@luke.eecs.wsu.edu (H.J. Lu)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: libc.a errors with gcc 2.3.3
  5. Keywords: gcc, 486
  6. Message-ID: <1993Jan1.073740.17721@serval.net.wsu.edu>
  7. Date: 1 Jan 93 07:37:40 GMT
  8. Article-I.D.: serval.1993Jan1.073740.17721
  9. References: <1993Jan1.013916.26835@mintaka.lcs.mit.edu>
  10. Sender: news@serval.net.wsu.edu (USENET News System)
  11. Organization: Washington State University!
  12. Lines: 53
  13.  
  14. In article <1993Jan1.013916.26835@mintaka.lcs.mit.edu> wyvern@gnu.ai.mit.edu (The Wyvern) writes:
  15. >I just installed gcc 2.3.3 (The 486 version) and everything seems
  16. >fine except for one problem. When I try to compile hello.c
  17. >with the -static option, I get these errors:
  18. >
  19. >/usr/lib/libc.a(printf.o): Undefined symbol _stdout referenced from text segment
  20. >/usr/lib/libc.a(printf.o): Undefined symbol streambuf::vform(const char *, void *) refer
  21. > *) referenced from text segment
  22. >/usr/lib/libc.a(atexit.o): Undefined symbol _malloc referenced from text segment
  23. >/usr/lib/libc.a(exit.o): Undefined symbol __cleanup referenced from text segment
  24. >
  25. >This is using the lib486-4.2.TZ from tsx-11.mit.edu:/pub/linux/GCC/486
  26. >and 486 compiler. When linking with shared libs, jump or nojump, it works
  27. >fine. The problem seems to be only with the static version of 486 libc.
  28. >How can I fix this?
  29. >
  30. >-->Configuration
  31. >i486-33 system
  32. >8mb RAM
  33. >200mb IDE HD
  34. >Linux 0.99.1, GCC 2.3.3-486
  35. >libc.so.4.2 compiled from jump-4.2.TZ sources
  36. >
  37.  
  38. Blamed me not using 486 :-). Please do
  39.  
  40. cd /usr/lib
  41. ar -t libtermcap.a
  42.  
  43. If you don't find __.SYMDEF, please do
  44.  
  45. cd /tmp
  46. rm -rf usr
  47. tar xvvvofz lib486-4.2.TZ
  48. cd usr/lib
  49. ranlib *.a
  50. cd /tmp
  51. cp -av ./usr /
  52.  
  53. The one on tsx-11 is fixed.
  54.  
  55. >Also:
  56. >  Is it safe to delete /usr/lib/shlib/jump and nojump?
  57. >  I believe these are the gcc 2.2.2d directories for
  58. >  the jump libraries and have been replaced with
  59. >  lib*.ca and lib*.sa in /usr/lib. Is this correct?
  60. >
  61.  
  62. Yes.
  63.  
  64. >
  65.  
  66. H.J.
  67.