home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / perl / 4961 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.3 KB

  1. Path: sparky!uunet!gatech!utkcs2!utkcs2!usenet
  2. From: jepeway@cs.utk.edu (Chris Jepeway)
  3. Newsgroups: comp.lang.perl
  4. Subject: Perl 4.035, gcc-2.2.2, & SunOS-4.1.2 -- Solution
  5. Date: 25 Jul 92 19:05:20 GMT
  6. Organization: /silver/homes/jepeway/.organization
  7. Lines: 22
  8. Distribution: world
  9. Message-ID: <l739fgINNol7@utkcs2.cs.utk.edu>
  10. NNTP-Posting-Host: tonka.cs.utk.edu
  11.  
  12. OK, so the problem with perl & gcc & SunOS is,
  13. simply, bogus header files.  Configure wants to
  14. set up the default compiler flags to contain
  15. "-I/usr/ucbinclude".  If you do this, gcc will
  16. get <varargs.h> from /usr/ucbinclude instead
  17. of using its own version.  Since gcc's idea
  18. of varargs differs from SunOS's idea of Berkeley's
  19. idea of varargs, the perl executable ends up
  20. dereferencing invalid pointers.
  21.  
  22. The fix is to leave out the "-I/usr/ucbinclude" when
  23. Configure asks you about which flags the C compiler needs.
  24. I've done this, built perl, and successfully run all
  25. the tests in the t/ directory.  Oh, wait, there'll be
  26. some warning from cccp about an "unterminated string constant"
  27. during the cpp test.  Just ignore it, GNU's C-preprocessor
  28. is being anal about an apostrophe in a perl comment.
  29.  
  30. Could later versions of Configure be changed so that
  31. /usr/ucbinclude is ignored when using gcc?
  32.  
  33. Chris <jepeway@cs.utk.edu>
  34.