home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10294 < prev    next >
Encoding:
Text File  |  1992-09-09  |  2.3 KB  |  55 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!utcsri!utgpu!utstat!rafal
  3. From: rafal@utstat.uucp (Rafal Kustra (summer student))
  4. Subject: Re: Compiling TCSH
  5. Message-ID: <1992Sep9.173845.18881@utstat.uucp>
  6. Organization: University of Toronto, Dept. of Statistics
  7. References: <1992Sep5.002609.28268@news.nd.edu> <mrhoten.715982258@Xenon.Stanford.EDU>
  8. Date: Wed, 9 Sep 1992 17:38:45 GMT
  9. Lines: 44
  10.  
  11. In article <mrhoten.715982258@Xenon.Stanford.EDU> mrhoten@cs.stanford.edu (Matt Rhoten) writes:
  12. >jonathan@nova.next.nd.edu (Jonathan Bradshaw) writes:
  13. >
  14. >>I downloaed tcsh.tar.Z which contains a tcsh.a and Makefile. I am using the
  15. >>MCC interim release of Linux that is currently on the archive site (tsx-11).
  16. >>The problem is I get:
  17. >
  18. >>tcsh.a(sh.o): Undefined symbol _setjmp referenced from text segment
  19. >
  20. >I ran into this too. The problem is that the libraries define __setjmp,
  21. >not _setjmp. According to ANSI, apparently. Read <setjmp.h> for more.
  22. >Run nm on tcsh.a and libc.a for even more info.
  23. >
  24. >Apparently tcsh.a was compiled with a different library?
  25. >
  26. >My initial thought for a solution was to write a stub setjmp and have
  27. >it do the right thing. First I tried writing a stub _setjmp, at which
  28. >point I found out that the version of gcc I have (2.2.2d) doesn't grok
  29. >-mno-underscore (or whatever the option is). So I switched to try a
  30. >stub setjmp, figuring the underscore would get added, which it did.
  31. >If you try to do this, be sure to #undef setjmp before declaring your
  32. >routine, if you include <setjmp.h>, as it is a macro in that header.
  33. >
  34. >So I linked 'em together, and tcsh ran, sort of. My hacked version did
  35. >things like hang, use up all my memory, run out of swap, and cause
  36. >kernel panics. Oh, and hose my filesystem a bit. So I deleted my
  37. >hacked version, figuring to download source later.
  38. >
  39. > -matt
  40. >-- 
  41. >Matthew Rhoten | mrhoten@cs.stanford.edu | m_rhoten@leland.stanford.edu
  42. >"When Adam and Eve first saw each other, that's when the blues started."
  43. > -John Lee Hooker
  44.  
  45. Why not just use -V 2.2.2 in compiling ?
  46.  
  47.             Rafal
  48.  
  49.  
  50. -- 
  51. /|| Numbers exist only in our minds. There is no physical entity that
  52.  ||_is_ number 1. If there were, 1 would be in a place of honor in 
  53.  || some great museum of science, and past it would file a steady
  54. ==== stream of mathematicians gazing at 1 in wonder and awe.
  55.