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