home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.att:2056 comp.unix.sysv386:13355
- Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!viper!raymond
- From: raymond@es.ele.tue.nl (Raymond Nijssen)
- Newsgroups: comp.sys.att,comp.unix.sysv386
- Subject: Re: AT&T SysVr4.2.1 (386) doesn't have alloca()?
- Message-ID: <RAYMOND.92Aug19235837@cobra.es.ele.tue.nl>
- Date: 19 Aug 92 21:58:37 GMT
- References: <Bt7Lp0.3x4@chinet.chi.il.us>
- Sender: root@tuegate.tue.nl
- Followup-To: comp.sys.att
- Organization: Eindhoven University of Technology, Eindhoven, The Netherlands
- Lines: 29
- In-reply-to: naughton@chinet.chi.il.us's message of 19 Aug 92 02:31:47 GMT
-
- In article <Bt7Lp0.3x4@chinet.chi.il.us> naughton@chinet.chi.il.us (Thomas Naughton) writes:
-
- > I'm trying to compile a few of the GNU programs and I seem to
- > run into the same type of problem over and over. None of the
- > libraries on my system have alloca() and GNU seems to really
- > want to use it. How do you get around it? Has anyone run into
-
- On most 386 SVR4 systems, alloca() is available from /usr/ucblib/libucb.a,
- if you have installed the BSD compatibility package, that is.
- But don't use that one!! It's buggy on most systems, and will break most
- programs.
-
- The best thing to do is build gcc, which has an efficient built-in alloca().
- To build it, you need to produce the alloca.o file (eg. with cc -o alloca.o
- alloca.c) that comes with the gcc and GNUemacs source distribution, and simply
- add it to the other objects.
-
- You can do so via the standard configuration method of gcc. Look for some
- hints in the relevant files. Thereafter, you need no longer worry about
- alloca() because gcc will resolve it with its builtin version.
-
- Hope this helps,
- -Raymond
- --
- | Raymond Nijssen | Eindhoven University of Techology |
- | | Department of Electrical Engineering |
- | raymond@es.ele.tue.nl | Design Automation Section (ES), Room EH 7.16 |
- | phone: +31-40-473373 | P.O. Box 513, 5600 MB Eindhoven, The Netherlands |
- | fax: +31-40-464527 | "Trust me. I know what I'm doing" (Sledge Hammer) |
-