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