httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: errors installing libapreq
Date Wed, 26 Jun 2002 17:16:55 GMT
Tim Bolin <> writes:

> At 12:03 PM 6/26/02 -0400, Joe Schaefer wrote:
> >Your include files aren't defining the table struct.  gcc can't find
> >your apache header files (maybe they're in /usr/local/apache/include ?).
> >Also, the typical compile lines should have a whole lot more "-I" flags.
> >In your case, modperl may not be properly installed- otherwise your
> >compile lines would look more like this (wrapped):
> >
> >   make[1]: Entering directory `/home/joe/src/apache/cvs/httpd-apreq/c'
> >   cc -c -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include
> > 
> >-I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/modules/perl
> >   -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/include
> >   -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/regex
> >   -I/usr/lib/perl5/site_perl/5.005/i386-linux/auto/Apache/include/os/unix
> >   -I/usr/local/apache/include -Dbool=char -DHAS_BOOL
> >   -I/usr/local/include -O2    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\"
> >   -fpic -I/usr/lib/perl5/5.00503/i386-linux/CORE  apache_request.c
> >
> >You probably need to reinstall modperl (preferably from source) to get
> >libapreq to build correctly on your OS.
> sorry for not including this in the last post, it just occurred to me to 
> see what the compile lines looked like if i used "perl Makefile.PL" instead 
> of "./configure"... the end result was (wrapped):
> make[1]: Entering directory `/home/tbolin/libapreq-1.0/c'
> gcc -c -I/usr/local/httpd//include
> -I/usr/local/httpd//include -fno-strict-aliasing
> -I/usr/local/include -O2 -march=i386 -mcpu=i686
> -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC
> -I/usr/lib/perl5/5.6.1/i386-linux/CORE  apache_request.c
> In file included from apache_request.c:59:
> apache_request.h:38: parse error before `table'
> [errors continue]
> so, in this case, the -I flags arent empty, but neither are there nearly as 
> many of them, and they clearly still arent right... or something... i 
> dunno, im no systems guru, im at my best when i type "make" and it makes, 
> so i can get on with using it :)

The 'perl Makefile.PL' install requires a good modperl install;
and it appears you don't have one.  The './configure' method
will just build the C interface, which isn't much help if you're
looking to use Apache::Request.

In any case, apache_request.c still should compile cleanly though.
Have you inspected the /usr/local/httpd/include directory for *.h 
files?  It should look something like my /usr/local/apache/include

% ls /usr/local/apache/include
alloc.h           ap_mm.h                    gcache.h             multithread.h
ap.h              ap_mmn.h                   hsregex.h            os-inline.c
ap_alloc.h        ap_sha1.h                  http_conf_globals.h  os.h
ap_compat.h       apache_cookie.h            http_config.h        rfc1413.h
ap_config.h       apache_multipart_buffer.h  http_core.h          scoreboard.h
ap_config_auto.h  apache_request.h           http_log.h           util_date.h
ap_ctx.h          buff.h                     http_main.h          util_md5.h
ap_ctype.h        compat.h                   http_protocol.h      util_script.h
ap_ebcdic.h       conf.h                     http_request.h       util_uri.h
ap_hook.h         explain.h                  http_vhost.h         xml
ap_md5.h          fnmatch.h                  httpd.h

Joe Schaefer

View raw message