compile error with STABLE-20001012

Russ Allbery rra at stanford.edu
Thu Oct 12 23:12:36 UTC 2000


Tom Kacvinsky <tjk at ams.org> writes:

> Configured thusly:

> ./configure --with-perl --with-sendmail=/usr/lib/sendmail \
> --with-largefiles --with-log-compress=bzip2 --enable-shared

> Perl compiled with LFS and sfio support.  sfio.h is in /usr/local/include.

> Error message (tidied up for wrapping):

> gcc -g -O2 -I../include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
> -I/usr/local/lib/perl5/sun4-solaris-64int/CORE   -c perl.c

> In file included
>    from /usr/local/lib/perl5/sun4-solaris-64int/CORE/iperlsys.h:302,
>    from /usr/local/lib/perl5/sun4-solaris-64int/CORE/perl.h:1823,
>    from perl.c:35:
> /usr/local/lib/perl5/sun4-solaris-64int/CORE/perlsfio.h:3:
>    sfio.h: No such file or directory

> I would appear that we need -I/usr/local/include, but that might be bad
> for other reasons (BerkeleyDB, etc...).  Since Russ seems to be an
> autoconf guru, maybe he has some good ideas on on to handle this...

If you need the sfio headers, Perl really should be adding the -I flag for
them to its build flags.  It's arguably a bug in Perl.

In the meantime, though, try:

    env CFLAGS="-O2 -I/usr/local/include" ./configure ...

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>



More information about the inn-workers mailing list