You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Oleg Burlaca <ob...@neonet.md> on 2008/07/26 04:42:52 UTC

Can't compile Apache2.2.9 + ModPerl2.0.4

Hi, just got a fresh VPS server and wanted to install the second apache 
on 8080 but without success

The configure process was ok, with only one warning:

Your Perl is configured to link against libgdbm,
but libgdbm.so was not found.
You could just symlink it to /usr/lib/libgdbm.so.2.0.0

perl Makefile.PL MP_USE_STATIC=1 
MP_AP_PREFIX=/usr/local/src/httpd_perl2/httpd-2.2.9 
MP_AP_CONFIGURE="--prefix=/usr/local/httpd_perl --with-mpm=prefork 
--disable-cgi --with-port=8080"

But when I hit make, a lot off error messages appears, almost all of 
them with a "perl.h" problem, here are some lines:
-------------------------------------
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:3852: error: 
storage class specified for parameter ???PerlExitListEntry???
In file included from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:3881,
from modperl_perl_includes.h:65,
from modperl_common_includes.h:24,
from mod_perl.h:21,
from mod_perl.c:17:
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/thrdvar.h:34: error: 
expected specifier-qualifier-list before ???SV???
In file included from modperl_perl_includes.h:65,
from modperl_common_includes.h:24,
from mod_perl.h:21,
from mod_perl.c:17:
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:3889: warning: 
empty declaration
-------------------------------------

There is one apache on this server that already have mod_perl as a 
shared module, but I don't think this is the cause.

here some lines from perl -V:
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
osname=linux, osvers=2.6.18-53.1.14.el5pae, archname=i386-linux-thread-multi
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.5.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E 
-Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API

Does someone know where the shoe pinches?
Thanks.

Re: Can't compile Apache2.2.9 + ModPerl2.0.4

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Oleg Burlaca wrote:
> P.S. I don't see any logical explanation why adding MP_MAINTAINER 
> removed the segfault, but I hope that I did something wrong at the 
> beginning.
Well it backs up the NULL memory access..... The debugging moved things 
around and some pointer which is invalid now happens to be pointing to 
something that just so happens to not be NUL so it doesn't segfault.

I'm out of town all weekend in Las Vegas....

I'll take a gander at the stack trace when I get back see if anything 
jumps out at me.

-------------------------------------------------------------------------
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.


Re: Can't compile Apache2.2.9 + ModPerl2.0.4

Posted by Oleg Burlaca <ob...@neonet.md>.
Hi Philip,
thanks for the answer.

 > I assume you passed paths to those right, otherwise you've just found 
your problem. Which is conflicting library versions.  I'll bet you a beer.
Yes, of course "--with-apr-config=/path/to/apr/bin/apr-1-config"
here is the complete config line:
perl ./Makefile.PL --enable-perl-glue 
--with-apache2-apxs=/usr/local/httpd_perl/bin/apxs  \
--with-apache2-httpd=/usr/local/httpd_perl/bin/httpd_perl \
--with-apr-config=/usr/local/httpd_perl/bin/apr-1-config 
--with-apu-config=/usr/local/httpd_perl/bin/apu-1-config
> Something isn't quite right.  There should information in the () about 
> arguments passed.  In this case looking for something was NULL but 
> shouldn't be.
> You might try MP_MAINTAINER=1 and MP_DEBUG=1
I've recompiled Apache (executed CFLAGS="-g" before compiling &&  
--enable-maintainer-mode)
and mod_perl (added MP_MAINTAINER=1)
> Above comments about conflicting libraries backs this up based on 
> whats failing
Hmmmm, very strange, but after recompiling apache & mod_perl with 
maintainer mode, ... I no longer can reproduce the segfault.
It's seems that I'll have to sit and wait when the segfault reappears :)
If it will nor happen in the next couple of days, I'll exclude the 
maintainer & debug settings and recompile apache & mod_perl to use in 
production level.

P.S. I don't see any logical explanation why adding MP_MAINTAINER 
removed the segfault, but I hope that I did something wrong at the 
beginning.

Re: Can't compile Apache2.2.9 + ModPerl2.0.4

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Oleg Burlaca wrote:
> After struggling for two days, I've managed to install Apache2.2.9 + 
> ModPerl2.0.4.
> Three crucial things were needed:
>    1. build mod_perl as a DSO and not static
Thats the default
>    2. build apache --with-included-apr
Correct, by default it uses apxs if its found in $PATH.

>    3. build libapreq2  --with-apr-config --with-apu-config
I assume you passed paths to those right, otherwise you've just found 
your problem. Which is conflicting library versions.  I'll bet you a beer.

i.e. --with-apr-config=/path/to/apr/bin/apr-1-config

> 
> I've started apache and tried to access a dynamic webpage (content via 
> PerlHandler) but got a SegFault.
> I then recompiled mod_perl with MP_DEBUG=1 and used 
> http://perl.apache.org/docs/2.0/devel/debug/c.html as a reference.
Something isn't quite right.  There should information in the () about 
arguments passed.  In this case looking for something was NULL but 
shouldn't be.
You might try MP_MAINTAINER=1 and MP_DEBUG=1

> #14 0xb7d78911 in modperl_callback () from 
> /usr/local/httpd_perl/modules/mod_perl.so
> #15 0xb7d79279 in modperl_callback_run_handlers () from 
> /usr/local/httpd_perl/modules/mod_perl.so
> #16 0xb7d797f5 in modperl_callback_per_srv () from 
> /usr/local/httpd_perl/modules/mod_perl.so
> #17 0xb7d983f1 in modperl_post_read_request_handler () from 
> /usr/local/httpd_perl/modules/mod_perl.so

Notice httpd has debugging enabled successfully.

> #18 0x0806995b in ap_run_post_read_request (r=0x8adfdc0) at protocol.c:1669
> #19 0x0806bc24 in ap_read_request (conn=0x8ad27a8) at protocol.c:1011
> #20 0x0808d785 in ap_process_http_connection (c=0x8ad27a8) at 
> http_core.c:183
> #21 0x0807d909 in ap_run_process_connection (c=0x8ad27a8) at 
> connection.c:43
> #22 0x080a1915 in child_main (child_num_arg=<value optimized out>) at 
> prefork.c:650
> #23 0x080a1bd7 in make_child (s=0x8a6e4d8, slot=2) at prefork.c:746
> #24 0x080a1c94 in startup_children (number_to_start=3) at prefork.c:764
> #25 0x080a2719 in ap_mpm_run (_pconf=0x80c80a8, plog=0x81061a0, 
> s=0x8a6e4d8) at prefork.c:985
> #26 0x08064485 in main (argc=135028896, argv=0x8ad05c8) at main.c:730

> The perlhandler is simple enough, I found that if I comment the 
> following code from my handler and restart apache, it will run ok.
> my @param_names = $r->param;
>   foreach (@param_names) {
>       $form->{$_} = $r->param($_);
> }
> in the code above $r = Apache2::Request->new(shift);
Above comments about conflicting libraries backs this up based on whats 
failing


-- 
------------------------------------------------------------------------
Philip M. Gollucci (philip@ridecharge.com)
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.


Re: Can't compile Apache2.2.9 + ModPerl2.0.4

Posted by Oleg Burlaca <ob...@neonet.md>.
After struggling for two days, I've managed to install Apache2.2.9 + 
ModPerl2.0.4.
Three crucial things were needed:
    1. build mod_perl as a DSO and not static
    2. build apache --with-included-apr
    3. build libapreq2  --with-apr-config --with-apu-config

I've started apache and tried to access a dynamic webpage (content via 
PerlHandler) but got a SegFault.
I then recompiled mod_perl with MP_DEBUG=1 and used 
http://perl.apache.org/docs/2.0/devel/debug/c.html as a reference.

and here is the gdb backtrace:
#0  0xb7cbdf94 in Perl_sv_clear () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#1  0xb7cbe615 in Perl_sv_free () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#2  0xb7cb1a4f in Perl_av_undef () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#3  0xb7cbe2e3 in Perl_sv_clear () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#4  0xb7cbe615 in Perl_sv_free () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#5  0xb7c8da95 in Perl_pad_undef () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#6  0xb7c7f9fc in Perl_cv_undef () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#7  0xb7cbe275 in Perl_sv_clear () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#8  0xb7cbe615 in Perl_sv_free () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#9  0xb7cc8e03 in Perl_sv_setsv_flags () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#10 0xb7cb8750 in Perl_pp_sassign () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#11 0xb7cb290f in Perl_runops_standard () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#12 0xb7c52ffe in Perl_magicname () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#13 0xb7c57806 in Perl_call_sv () from 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#14 0xb7d78911 in modperl_callback () from 
/usr/local/httpd_perl/modules/mod_perl.so
#15 0xb7d79279 in modperl_callback_run_handlers () from 
/usr/local/httpd_perl/modules/mod_perl.so
#16 0xb7d797f5 in modperl_callback_per_srv () from 
/usr/local/httpd_perl/modules/mod_perl.so
#17 0xb7d983f1 in modperl_post_read_request_handler () from 
/usr/local/httpd_perl/modules/mod_perl.so
#18 0x0806995b in ap_run_post_read_request (r=0x8adfdc0) at protocol.c:1669
#19 0x0806bc24 in ap_read_request (conn=0x8ad27a8) at protocol.c:1011
#20 0x0808d785 in ap_process_http_connection (c=0x8ad27a8) at 
http_core.c:183
#21 0x0807d909 in ap_run_process_connection (c=0x8ad27a8) at connection.c:43
#22 0x080a1915 in child_main (child_num_arg=<value optimized out>) at 
prefork.c:650
#23 0x080a1bd7 in make_child (s=0x8a6e4d8, slot=2) at prefork.c:746
#24 0x080a1c94 in startup_children (number_to_start=3) at prefork.c:764
#25 0x080a2719 in ap_mpm_run (_pconf=0x80c80a8, plog=0x81061a0, 
s=0x8a6e4d8) at prefork.c:985
#26 0x08064485 in main (argc=135028896, argv=0x8ad05c8) at main.c:730


Operating System: CentOS 5.2
Perl 5.8.8
Apache 2.2.9
ModPerl 2.0.4
libapreq2.08


The perlhandler is simple enough, I found that if I comment the 
following code from my handler and restart apache, it will run ok.
my @param_names = $r->param;
   foreach (@param_names) {
       $form->{$_} = $r->param($_);
 }
in the code above $r = Apache2::Request->new(shift);

At the same time, I also have another dynamic website (PerlHandler) that 
runs ok.

RE: Can't compile Apache2.2.9 + ModPerl2.0.4

Posted by Mario Rodríguez <ma...@hotmail.com>.
Hi list:

I need to compile mod_perl as static module in apache, i try to compile like oleg with a few changes, but i got different problems when i hit make, my line of configuration in mod_perl is: 

perl Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX=../httpd-2.2.9/ MP_AP_CONFIGURE=" --prefix=/usr/local/apache3 --with-mpm=prefork --enable-rewrite --with-included-apr"

And the problems are:

repuesto mod_perl-2.0.4 # make
cd "src/modules/perl" && make
make[1]: se ingresa al directorio `/root/apache_modperl2/mod_perl-2.0.4/src/modules/perl'
i686-pc-linux-gnu-gcc -I/root/apache_modperl2/mod_perl-2.0.4/src/modules/perl -I/root/apache_modperl2/mod_perl-2.0.4/xs -I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include -I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include -I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include -I/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/os/unix -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i686-linux/CORE -DMOD_PERL -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror -Wdeclaration-after-statement -DMP_COMPAT_1X -g -DMP_DEBUG -DMP_TRACE  -c mod_perl.c
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/ap_config.h:25,
                 from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:43,
                 from modperl_apache_includes.h:27,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr.h:285: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t'
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_file_io.h:29,
                 from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_network_io.h:26,
                 from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:53,
                 from modperl_apache_includes.h:27,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_file_info.h:198: error: expected specifier-qualifier-list before 'apr_off_t'
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_network_io.h:26,
                 from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:53,
                 from modperl_apache_includes.h:27,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_file_io.h:632: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_file_io.h:859: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:53,
                 from modperl_apache_includes.h:27,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_network_io.h:550: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:32,
                 from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:54,
                 from modperl_apache_includes.h:27,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_mmap.h:134: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_mmap.h:161: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:54,
                 from modperl_apache_includes.h:27,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:242: error: expected specifier-qualifier-list before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:725: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:738: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:774: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:910: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:911: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:1202: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:1401: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:1415: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:1471: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr-util/include/apr_buckets.h:1487: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from modperl_apache_includes.h:27,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/httpd.h:858: error: expected specifier-qualifier-list before 'apr_off_t'
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_protocol.h:34,
                 from modperl_apache_includes.h:30,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/util_filter.h:142: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/util_filter.h:299: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from modperl_apache_includes.h:30,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_protocol.h:111: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_protocol.h:203: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from modperl_apache_includes.h:34,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_core.h:229: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_get_limit_req_body'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_core.h:510: error: expected specifier-qualifier-list before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_core.h:611: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_core.h:672: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/http_core.h:675: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from modperl_apr_includes.h:29,
                 from modperl_common_includes.h:22,
                 from mod_perl.h:21,
                 from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_strings.h:299: error: expected declaration specifiers or '...' before 'apr_off_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_strings.h:317: error: expected ')' before '*' token
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/apr/include/apr_strings.h:353: error: expected ')' before 'size'
In file included from mod_perl.h:72,
                 from mod_perl.c:17:
modperl_types.h:232: error: expected specifier-qualifier-list before 'apr_off_t'
In file included from mod_perl.h:85,
                 from mod_perl.c:17:
modperl_filter.h:56: error: expected declaration specifiers or '...' before 'apr_off_t'
modperl_filter.h:94: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from mod_perl.h:86,
                 from mod_perl.c:17:
modperl_bucket.h:21: error: expected declaration specifiers or '...' before 'apr_off_t'
mod_perl.c: En la función 'modperl_hook_create_request':
mod_perl.c:738: error: 'request_rec' no tiene un miembro llamado 'request_config'
mod_perl.c:740: error: 'request_rec' no tiene un miembro llamado 'request_config'
mod_perl.c: En la función 'modperl_response_init':
mod_perl.c:965: error: 'request_rec' no tiene un miembro llamado 'request_config'
mod_perl.c:966: error: 'request_rec' no tiene un miembro llamado 'per_dir_config'
mod_perl.c:979: error: 'request_rec' no tiene un miembro llamado 'output_filters'
mod_perl.c: En la función 'modperl_response_finish':
mod_perl.c:988: error: 'request_rec' no tiene un miembro llamado 'request_config'
mod_perl.c: En la función 'modperl_response_handler_run':
mod_perl.c:1002: error: 'request_rec' no tiene un miembro llamado 'content_type'
mod_perl.c:1003: error: 'request_rec' no tiene un miembro llamado 'handler'
mod_perl.c:1003: error: 'request_rec' no tiene un miembro llamado 'content_type'
mod_perl.c: En la función 'modperl_response_handler':
mod_perl.c:1018: error: 'request_rec' no tiene un miembro llamado 'per_dir_config'
mod_perl.c:1019: error: 'request_rec' no tiene un miembro llamado 'request_config'
mod_perl.c:1027: error: 'request_rec' no tiene un miembro llamado 'handler'
cc1: warnings being treated as errors
mod_perl.c:1019: aviso: variable 'rcfg' sin usar
mod_perl.c: En la función 'modperl_response_handler_cgi':
mod_perl.c:1059: error: 'request_rec' no tiene un miembro llamado 'per_dir_config'
mod_perl.c:1062: error: 'request_rec' no tiene un miembro llamado 'request_config'
mod_perl.c:1068: error: 'request_rec' no tiene un miembro llamado 'handler'
make[1]: *** [mod_perl.o] Error 1
make[1]: se sale del directorio `/root/apache_modperl2/mod_perl-2.0.4/src/modules/perl'
make: *** [modperl_lib] Error 2

I have compiles with different versions of apache 2.2.6, 2.2.8 and 2.2.9 and the result is the same, i think that the problem is the version of apr, because with the version 2.0.63 no errors appears and compile perfectly, someone knows how I can solve this problem?


Thanks

Atte:
ISC Mario Ignacio Rodríguez Cortés.

> Date: Sat, 26 Jul 2008 05:42:52 +0300
> From: oburlaca@neonet.md
> To: modperl@perl.apache.org
> Subject: Can't compile Apache2.2.9 + ModPerl2.0.4
> 
> Hi, just got a fresh VPS server and wanted to install the second apache 
> on 8080 but without success
> 
> The configure process was ok, with only one warning:
> 
> Your Perl is configured to link against libgdbm,
> but libgdbm.so was not found.
> You could just symlink it to /usr/lib/libgdbm.so.2.0.0
> 
> perl Makefile.PL MP_USE_STATIC=1 
> MP_AP_PREFIX=/usr/local/src/httpd_perl2/httpd-2.2.9 
> MP_AP_CONFIGURE="--prefix=/usr/local/httpd_perl --with-mpm=prefork 
> --disable-cgi --with-port=8080"
> 
> But when I hit make, a lot off error messages appears, almost all of 
> them with a "perl.h" problem, here are some lines:
> -------------------------------------
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:3852: error: 
> storage class specified for parameter ???PerlExitListEntry???
> In file included from 
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:3881,
> from modperl_perl_includes.h:65,
> from modperl_common_includes.h:24,
> from mod_perl.h:21,
> from mod_perl.c:17:
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/thrdvar.h:34: error: 
> expected specifier-qualifier-list before ???SV???
> In file included from modperl_perl_includes.h:65,
> from modperl_common_includes.h:24,
> from mod_perl.h:21,
> from mod_perl.c:17:
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:3889: warning: 
> empty declaration
> -------------------------------------
> 
> There is one apache on this server that already have mod_perl as a 
> shared module, but I don't think this is the cause.
> 
> here some lines from perl -V:
> Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
> osname=linux, osvers=2.6.18-53.1.14.el5pae, archname=i386-linux-thread-multi
> Linker and Libraries:
> ld='gcc', ldflags =' -L/usr/local/lib'
> libpth=/usr/local/lib /lib /usr/lib
> libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
> perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
> libc=/lib/libc-2.5.so, so=so, useshrplib=true, libperl=libperl.so
> gnulibc_version='2.5'
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E 
> -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE'
> Characteristics of this binary (from libperl):
> Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
> PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
> USE_PERLIO USE_REENTRANT_API
> 
> Does someone know where the shoe pinches?
> Thanks.

_________________________________________________________________
Reveal your inner athlete and share it with friends on Windows Live.
http://revealyourinnerathlete.windowslive.com?locale=en-us&ocid=TXT_TAGLM_WLYIA_whichathlete_us