home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / att / 2056 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  2.0 KB

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