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

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!Xenon.Stanford.EDU!mrhoten
  3. From: mrhoten@cs.stanford.edu (Matt Rhoten)
  4. Subject: Re: Compiling TCSH
  5. Message-ID: <mrhoten.715982258@Xenon.Stanford.EDU>
  6. Originator: mrhoten@Xenon.Stanford.EDU
  7. Sender: news@CSD-NewsHost.Stanford.EDU
  8. Organization: CS Department, Stanford University, California, USA
  9. References: <1992Sep5.002609.28268@news.nd.edu>
  10. Date:  8 Sep 92 19:57:38 GMT
  11. Lines: 32
  12.  
  13. jonathan@nova.next.nd.edu (Jonathan Bradshaw) writes:
  14.  
  15. >I downloaed tcsh.tar.Z which contains a tcsh.a and Makefile. I am using the
  16. >MCC interim release of Linux that is currently on the archive site (tsx-11).
  17. >The problem is I get:
  18.  
  19. >tcsh.a(sh.o): Undefined symbol _setjmp referenced from text segment
  20.  
  21. I ran into this too. The problem is that the libraries define __setjmp,
  22. not _setjmp. According to ANSI, apparently. Read <setjmp.h> for more.
  23. Run nm on tcsh.a and libc.a for even more info.
  24.  
  25. Apparently tcsh.a was compiled with a different library?
  26.  
  27. My initial thought for a solution was to write a stub setjmp and have
  28. it do the right thing. First I tried writing a stub _setjmp, at which
  29. point I found out that the version of gcc I have (2.2.2d) doesn't grok
  30. -mno-underscore (or whatever the option is). So I switched to try a
  31. stub setjmp, figuring the underscore would get added, which it did.
  32. If you try to do this, be sure to #undef setjmp before declaring your
  33. routine, if you include <setjmp.h>, as it is a macro in that header.
  34.  
  35. So I linked 'em together, and tcsh ran, sort of. My hacked version did
  36. things like hang, use up all my memory, run out of swap, and cause
  37. kernel panics. Oh, and hose my filesystem a bit. So I deleted my
  38. hacked version, figuring to download source later.
  39.  
  40.  -matt
  41. -- 
  42. Matthew Rhoten | mrhoten@cs.stanford.edu | m_rhoten@leland.stanford.edu
  43. "When Adam and Eve first saw each other, that's when the blues started."
  44.  -John Lee Hooker
  45.