httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <>
Subject Re: new apreq2 snapshot
Date Wed, 14 Jul 2004 14:26:10 GMT

Joe Schaefer wrote:
> Geoffrey Young <> writes:
> [...]
>>anyway, can you get it to compile against 2.1 ok?  I didn't know how
>>much of a concern 2.1 is to apreq, and it's certainly less of an issue
>>if the issue is just mine.
> I do all my local development with HEAD for mp2, apr, apr-util, and
> httpd; in fact the snapshots I've been making have always been generated 
> from successful builds against HEAD.  So it should compile/test ok 
> for you (in principle, anyways :-).


just to be sure, I started with fresh checkouts again.  I've been feeling
kind of out of touch lately, so I may be missing something due to some
missing grey matter, but here's what I just did.

$ cvs -d"" checkout -d httpd-2.1 httpd-2.0
$ cd httpd-2.1/srclib
$ cvs -d"" checkout apr
$ cvs -d"" checkout apr-util
$ cd ../

$ ./buildconf
./configure --prefix=/apache/2.1/prefork/noperl --with-mpm=prefork
--enable-maintainer-mode --enable-mods-shared=all --without-execstrip
--enable-modules=all  --enable-deflate=shared  --enable-proxy=shared
$ make && sudo make install

now from a fresh checkout of httpd-apreq-2

$ ./buildconf
$ ./configure --with-apache2-apxs=/apache/2.1/prefork/noperl/bin/apxs
$ make

the result is about a page of warnings and errors, starting with this:

gcc -DHAVE_CONFIG_H -I. -I. -I. -I/apache/2.1/prefork/noperl/include
-I/apache/2.1/prefork/noperl/include -g -O2 -MT apreq.lo -MD -MP -MF
.deps/apreq.Tpo -c apreq.c  -fPIC -DPIC -o .libs/apreq.o
In file included from /apache/2.1/prefork/noperl/include/apr_tables.h:24,
                 from apreq.h:20,
                 from apreq.c:17:
/apache/2.1/prefork/noperl/include/apr.h:261: error: syntax error before
/apache/2.1/prefork/noperl/include/apr.h:261: warning: data definition has
no type or storage class

it's strange that I don't get this error at all when building mp2 against
the same apache target, so I compared the compiler lines.  this is what
mod_perl uses for me:

cc -c  -I/src/mod_perl-2.0/src/modules/perl -I/src/mod_perl-2.0/xs
-I/apache/2.1/prefork/noperl/include -I/apache/2.1/prefork/noperl/include
-fno-strict-aliasing -I/usr/local/include  -I/usr/include/gdbm -DMOD_PERL
-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
-DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fpic
-DMP_HAVE_APR_LIBS modperl_constants.c

the important difference being -D_LARGEFILE64_SOURCE.  so, if I change the
httpd-apreq-2 compile line to this (simply inserting -D_LARGEFILE64_SOURCE)

$  gcc -DHAVE_CONFIG_H -I. -I. -I. -I/apache/2.1/prefork/noperl/include
-I/apache/2.1/prefork/noperl/include -D_LARGEFILE64_SOURCE -g -O2 -MT
apreq.lo -MD -MP -MF .deps/apreq.Tpo -c apreq.c  -fPIC -DPIC -o .libs/apreq.o

it works.  so, I guess that apreq needs to pick up on that flag somehow? and
I guess that somehow needs to not be perl (which is where mod_perl intuits
it IIRC).


View raw message