Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 32619 invoked by uid 500); 26 Jun 2002 17:16:34 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 32607 invoked from network); 26 Jun 2002 17:16:33 -0000 To: Tim Bolin Cc: apreq-dev@httpd.apache.org Subject: Re: errors installing libapreq References: <5.1.1.6.0.20020625171402.00a044b0@mail.unirez.com> <5.1.1.6.0.20020626113822.00a05ec0@mail.unirez.com> From: Joe Schaefer Date: 26 Jun 2002 13:16:55 -0400 In-Reply-To: Tim Bolin's message of "Wed, 26 Jun 2002 11:44:01 -0500" Message-ID: Lines: 68 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N 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 directory: % 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