You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Joe Schaefer <jo...@sunstarsys.com> on 2002/06/26 18:03:37 UTC

Re: errors installing libapreq

[cross-posted to apreq-dev]

Tim Bolin <tb...@unirez.com> writes:

> ok, im at the end of my proverbial rope on this one and dont know how
> to proceed... i am trying to install libapreq for Apache::Request, and
> when i try to run "make" the thing just pukes up a huge long string of
> errors like :
> 
> -=-=-=-=-=-=-
> make[1]: Entering directory `/root/.cpan/build/libapreq-0.33/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_re
> quest.c
> In file included from apache_request.c:58:
> apache_request.h:38: parse error before `table'
                                           ^^^^^^

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.

-- 
Joe Schaefer

Re: errors installing libapreq

Posted by Tim Bolin <tb...@unirez.com>.
At 12:03 PM 6/26/02 -0400, Joe Schaefer wrote:

>[cross-posted to apreq-dev]

since im not finding subscription info on the mailing list page at 
httpd.apache.org (http://httpd.apache.org/lists.html) then im just posting 
this directly to the list...


>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.

from what the sysadmin tells me (i didnt set up this machine), both apache 
and mod_perl were built from source monday (when this machine came online)...

when i use the following line for configure:

    ./configure --with-apache-includes=/usr/local/httpd

then i get:

-=-=-=-=-=-=-
$ make
Making all in c
make[1]: Entering directory `/home/tbolin/libapreq-1.0/c'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. 
-I/usr/local/httpd    -g -O2 -c apache_cookie.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/httpd -g -O2 
-Wp,-MD,.deps/apache_cookie.pp -c  -fPIC -DPIC apache_coo
kie.c -o .libs/apache_cookie.lo
In file included from apache_cookie.h:4,
                  from apache_cookie.c:59:
apache_request.h:5:19: httpd.h: No such file or directory
apache_request.h:6:25: http_config.h: No such file or directory
apache_request.h:7:23: http_core.h: No such file or directory
apache_request.h:8:22: http_log.h: No such file or directory
apache_request.h:9:23: http_main.h: No such file or directory
apache_request.h:10:27: http_protocol.h: No such file or directory
apache_request.h:11:25: util_script.h: No such file or directory
make[1]: *** [apache_cookie.lo] Error 1
make[1]: Leaving directory `/home/tbolin/libapreq-1.0/c'
make: *** [all-recursive] Error 1
-=-=-=-=-=-=-

however, if i use:

    ./configure --with-apache-includes=/usr/local/httpd/include

(/usr/local/httpd/include being where httpd.h and whatnot live) then i get 
the same errors mentioned in my last message...

so is this definitely a mod_perl configuration/install issue?

thanks again for the assistance...

-Tim


Re: errors installing libapreq

Posted by Stas Bekman <st...@stason.org>.
> That's apache-2!  Don't bother rebuilding modperl, since
> that won't help.  

What Joe means, is that you need to build mod_perl-1.0, if you want to 
use Apache::Request now ;)

> libapreq hasn't been ported to apache-2,
> and neither has Apache::Request been ported to modperl-2.

See Joe, if apreq was in the httpd-core this kind of questions would 
never show up. And there will be many more coming as people will try to 
build apreq2 with modperl1 and vice-versa.

> modperl-2 is still under development, btw.  I don't think 
> a release version will appear until perl-5.8 is out.

Make it until after Apache-2.0 is out. perl 5.8.0 will be out in a few 
weeks (probably by the OSC time).




-- 


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: errors installing libapreq

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Tim Bolin <tb...@unirez.com> writes:

[...]

> ap_compat.h         apr_hash.h            apr_thread_rwlock.h  mod_proxy.h
> ap_config_auto.h    apr_hooks.h           apr_time.h           mod_ssl.h
> ap_config.h         apr_inherit.h         apr_uri.h            mpm_common.h
> ap_config_layout.h  apr_ldap.h            apr_user.h           mpm_default.h
> ap_listen.h         apr_lib.h             apr_uuid.h           mpm.h
> ap_mmn.h            apr_md4.h             apr_version.h        os.h
> ap_mpm.h            apr_md5.h             apr_want.h           pcre.h
> apr_allocator.h     apr_mmap.h            apr_xlate.h          pcreposix.h
> apr_anylock.h       apr_network_io.h      apr_xml.h            rfc1413.h
> apr_atomic.h        apr_optional.h        apu_compat.h         scoreboard.h
> apr_base64.h        apr_optional_hooks.h  apu.h                ssl_expr.h
> apr_buckets.h       apr_pools.h           http_config.h        ssl_expr_parse.h
> apr_compat.h        apr_portable.h        http_connection.h 
> ssl_toolkit_compat.h
> apr_date.h          apr_proc_mutex.h      http_core.h          ssl_util_ssl.h
> apr_dbm.h           apr_ring.h            httpd.h              ssl_util_table.h
> apr_dso.h           apr_rmm.h             http_log.h           unixd.h
> ap_release.h        apr_sdbm.h            http_main.h          util_cfgtree.h
> apr_errno.h         apr_sha1.h            http_protocol.h      util_charset.h
> apr_file_info.h     apr_shm.h             http_request.h       util_ebcdic.h
> apr_file_io.h       apr_signal.h          http_vhost.h         util_filter.h
> apr_fnmatch.h       apr_strings.h         mod_cgi.h            util_ldap.h
> apr_general.h       apr_tables.h          mod_core.h           util_md5.h
> apr_getopt.h        apr_thread_cond.h     mod_dav.h            util_script.h
> apr_global_mutex.h  apr_thread_mutex.h    mod_include.h        util_time.h
> apr.h               apr_thread_proc.h     mod_log_config.h     util_xml.h
> 
> a lot more stuff, but it looks like all the important things are there...?

That's apache-2!  Don't bother rebuilding modperl, since
that won't help.  libapreq hasn't been ported to apache-2,
and neither has Apache::Request been ported to modperl-2.

modperl-2 is still under development, btw.  I don't think 
a release version will appear until perl-5.8 is out.

-- 
Joe Schaefer

Re: errors installing libapreq

Posted by Tim Bolin <tb...@unirez.com>.
At 01:16 PM 6/26/02 -0400, Joe Schaefer wrote:
>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.

well, ill try to get mod_perl rebuilt on that machine and see if it 
helps... but i have a feeling it wont, considering apache_request.c wont 
compile...

>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

one would think so, but it doesnt appear to... this is what 
/ust/local/httpd/include looks like on this machine...

ap_compat.h         apr_hash.h            apr_thread_rwlock.h  mod_proxy.h
ap_config_auto.h    apr_hooks.h           apr_time.h           mod_ssl.h
ap_config.h         apr_inherit.h         apr_uri.h            mpm_common.h
ap_config_layout.h  apr_ldap.h            apr_user.h           mpm_default.h
ap_listen.h         apr_lib.h             apr_uuid.h           mpm.h
ap_mmn.h            apr_md4.h             apr_version.h        os.h
ap_mpm.h            apr_md5.h             apr_want.h           pcre.h
apr_allocator.h     apr_mmap.h            apr_xlate.h          pcreposix.h
apr_anylock.h       apr_network_io.h      apr_xml.h            rfc1413.h
apr_atomic.h        apr_optional.h        apu_compat.h         scoreboard.h
apr_base64.h        apr_optional_hooks.h  apu.h                ssl_expr.h
apr_buckets.h       apr_pools.h           http_config.h        ssl_expr_parse.h
apr_compat.h        apr_portable.h        http_connection.h 
ssl_toolkit_compat.h
apr_date.h          apr_proc_mutex.h      http_core.h          ssl_util_ssl.h
apr_dbm.h           apr_ring.h            httpd.h              ssl_util_table.h
apr_dso.h           apr_rmm.h             http_log.h           unixd.h
ap_release.h        apr_sdbm.h            http_main.h          util_cfgtree.h
apr_errno.h         apr_sha1.h            http_protocol.h      util_charset.h
apr_file_info.h     apr_shm.h             http_request.h       util_ebcdic.h
apr_file_io.h       apr_signal.h          http_vhost.h         util_filter.h
apr_fnmatch.h       apr_strings.h         mod_cgi.h            util_ldap.h
apr_general.h       apr_tables.h          mod_core.h           util_md5.h
apr_getopt.h        apr_thread_cond.h     mod_dav.h            util_script.h
apr_global_mutex.h  apr_thread_mutex.h    mod_include.h        util_time.h
apr.h               apr_thread_proc.h     mod_log_config.h     util_xml.h

a lot more stuff, but it looks like all the important things are there...?



Re: errors installing libapreq

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Tim Bolin <tb...@unirez.com> 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

Re: errors installing libapreq

Posted by Tim Bolin <tb...@unirez.com>.
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 :)

-Tim