Setting CPPFLAGS Doesn"t Help

Setting CPPFLAGS Doesn"t Help

am 18.06.2008 23:16:54 von Amiri Barksdale

Hi folks:

I am building apache2 with mod_perl2, statically. I run perl 5.8.8.

When I run


perl Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX=../httpd-2.2.9
MP_AP_CONFIGURE="--with-mpm=prefork --enable-rewrite --enable-deflate
--enable-ssl --enable-expires --prefix=/usr/local/apache2"


mod_perl runs through its thing correctly. But running make produces
the following errors:


/usr/local/src/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h :955:
error: storage size of `finfo' isn't known
/usr/local/src/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h :957:
error: storage size of `parsed_uri' isn't known
/usr/local/src/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h :1134:
error: storage size of `pfd' isn't known
{standard input}: Assembler messages:
{standard input}:616: Warning: size of "user" is already 4; not
changing to 8
make[1]: *** [mod_perl.o] Error 1
make[1]: Leaving directory `/usr/local/src/mod_perl-2.0.4/src/modules/
perl'
make: *** [modperl_lib] Error 2


I get this for both 2.2.8 and 2.2.9. Now, I have read about the
standard fix for this issue: setting the proper flags. That worked
once before for me, as a matter of fact. I compiled a static apache2/
mod_perl build once before successfully, following that exact
procedure. What I do is go into the httpd-2.2.8 or 2.2.9 directory and
run the following:


make clean
export CPPFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
../configure


Then I go back into the mod_perl dir, run make realclean, and try
again. Still the same error.

I have tried setting the CFLAGS, CCFLAGS, and CPPFLAGS, by looking at
perl -V. I always make clean in the httpd dir, make realclean in the
mod_perl dir, and run the exact same perl Makefile.PL command line,
and I always get the same error. Can anyone tell me how to proceed?

Amiri


PS: perl -V below:

____________________________________________________________ _______________________


Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.9-67.0.15.plus.c4smp, archname=x86_64-
linux-thread-multi
uname='linux 2.6.9-67.0.15.plus.c4smp #1 smp fri may 9 10:05:43
edt 2008 x86_64 x86_64 x86_64 gnulinux '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=define uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/
include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-
strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/
include -I/usr/include/gdbm'
ccversion='', gccversion='3.4.6 20060404 (Red Hat 3.4.6-9)',
gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.4'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP THREADS_HAVE_PIDS
USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at May 31 2008 01:17:13
@INC:
/usr/local/lib/perl5/5.8.8/x86_64-linux-thread-multi
/usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-mul ti
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl