Can"t compile Apache2.2.9 + ModPerl2.0.4

Can"t compile Apache2.2.9 + ModPerl2.0.4

am 26.07.2008 04:42:52 von Oleg Burlaca

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:385 2: error:
storage class specified for parameter ???PerlExitListEntry???
In file included from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:388 1,
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:388 9: 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

am 27.07.2008 21:59:40 von Oleg Burlaca

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=) 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

am 28.07.2008 06:35:22 von Philip Gollucci

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=) 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

am 29.07.2008 22:23:46 von Oleg Burlaca

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

am 31.07.2008 05:06:14 von Philip Gollucci

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

am 01.08.2008 23:38:03 von mario_irs

Hi list:

I need to compile mod_perl as static module in apache=2C i try to compile l=
ike oleg with a few changes=2C but i got different problems when i hit make=
=2C my line of configuration in mod_perl is:=20

perl Makefile.PL MP_USE_STATIC=3D1 MP_AP_PREFIX=3D../httpd-2.2.9/ MP_AP_CON=
FIGURE=3D" --prefix=3D/usr/local/apache3 --with-mpm=3Dprefork --enable-rewr=
ite --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/pe=
rl -I/root/apache_modperl2/mod_perl-2.0.4/xs -I/root/apache_modperl2/mod_pe=
rl-2.0.4/../httpd-2.2.9/include -I/root/apache_modperl2/mod_perl-2.0.4/../h=
ttpd-2.2.9/srclib/apr/include -I/root/apache_modperl2/mod_perl-2.0.4/../htt=
pd-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-statemen=
t -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i686-linux/CORE -DMOD_PERL -Wa=
ll -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror =
-Wdeclaration-after-statement -DMP_COMPAT_1X -g -DMP_DEBUG -DMP_TRACE -c m=
od_perl.c
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/i=
nclude/ap_config.h:25=2C
from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/i=
nclude/httpd.h:43=2C
from modperl_apache_includes.h:27=2C
from mod_perl.h:20=2C
from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/a pr/include/apr.=
h:285: error: expected '=3D'=2C '=2C'=2C '=3B'=2C 'asm' or '__attribute__' =
before 'apr_off_t'
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/s=
rclib/apr/include/apr_file_io.h:29=2C
from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/s=
rclib/apr/include/apr_network_io.h:26=2C
from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/i=
nclude/httpd.h:53=2C
from modperl_apache_includes.h:27=2C
from mod_perl.h:20=2C
from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/a pr/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/s=
rclib/apr/include/apr_network_io.h:26=2C
from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/i=
nclude/httpd.h:53=2C
from modperl_apache_includes.h:27=2C
from mod_perl.h:20=2C
from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/a pr/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/a pr/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/i=
nclude/httpd.h:53=2C
from modperl_apache_includes.h:27=2C
from mod_perl.h:20=2C
from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/a pr/include/apr_=
network_io.h:550: error: expected declaration specifiers or '...' before 'a=
pr_off_t'
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/s=
rclib/apr-util/include/apr_buckets.h:32=2C
from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/i=
nclude/httpd.h:54=2C
from modperl_apache_includes.h:27=2C
from mod_perl.h:20=2C
from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/a pr/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/a pr/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/i=
nclude/httpd.h:54=2C
from modperl_apache_includes.h:27=2C
from mod_perl.h:20=2C
from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/a pr-util/include=
/apr_buckets.h:242: error: expected specifier-qualifier-list before 'apr_of=
f_t'
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/a pr-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/a pr-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/a pr-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/a pr-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/a pr-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/a pr-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/a pr-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/a pr-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/a pr-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/a pr-util/include=
/apr_buckets.h:1487: error: expected declaration specifiers or '...' before=
'apr_off_t'
In file included from modperl_apache_includes.h:27=2C
from mod_perl.h:20=2C
from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/ httpd.h:858: er=
ror: expected specifier-qualifier-list before 'apr_off_t'
In file included from /root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/i=
nclude/http_protocol.h:34=2C
from modperl_apache_includes.h:30=2C
from mod_perl.h:20=2C
from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/ util_filter.h:1=
42: 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:2=
99: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from modperl_apache_includes.h:30=2C
from mod_perl.h:20=2C
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=2C
from mod_perl.h:20=2C
from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/include/ http_core.h:229=
: error: expected '=3D'=2C '=2C'=2C '=3B'=2C 'asm' or '__attribute__' befor=
e '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=2C
from modperl_common_includes.h:22=2C
from mod_perl.h:21=2C
from mod_perl.c:17:
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/a pr/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/a pr/include/apr_=
strings.h:317: error: expected ')' before '*' token
/root/apache_modperl2/mod_perl-2.0.4/../httpd-2.2.9/srclib/a pr/include/apr_=
strings.h:353: error: expected ')' before 'size'
In file included from mod_perl.h:72=2C
from mod_perl.c:17:
modperl_types.h:232: error: expected specifier-qualifier-list before 'apr_o=
ff_t'
In file included from mod_perl.h:85=2C
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=2C
from mod_perl.c:17:
modperl_bucket.h:21: error: expected declaration specifiers or '...' before=
'apr_off_t'
mod_perl.c: En la funci=F3n 'modperl_hook_create_request':
mod_perl.c:738: error: 'request_rec' no tiene un miembro llamado 'request_c=
onfig'
mod_perl.c:740: error: 'request_rec' no tiene un miembro llamado 'request_c=
onfig'
mod_perl.c: En la funci=F3n 'modperl_response_init':
mod_perl.c:965: error: 'request_rec' no tiene un miembro llamado 'request_c=
onfig'
mod_perl.c:966: error: 'request_rec' no tiene un miembro llamado 'per_dir_c=
onfig'
mod_perl.c:979: error: 'request_rec' no tiene un miembro llamado 'output_fi=
lters'
mod_perl.c: En la funci=F3n 'modperl_response_finish':
mod_perl.c:988: error: 'request_rec' no tiene un miembro llamado 'request_c=
onfig'
mod_perl.c: En la funci=F3n '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=F3n '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=F3n '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/m=
odules/perl'
make: *** [modperl_lib] Error 2

I have compiles with different versions of apache 2.2.6=2C 2.2.8 and 2.2.9 =
and the result is the same=2C i think that the problem is the version of ap=
r=2C because with the version 2.0.63 no errors appears and compile perfectl=
y=2C someone knows how I can solve this problem?


Thanks

Atte:
ISC Mario Ignacio Rodr=EDguez Cort=E9s.

> Date: Sat=2C 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
>=20
> Hi=2C just got a fresh VPS server and wanted to install the second apache=
=20
> on 8080 but without success
>=20
> The configure process was ok=2C with only one warning:
>=20
> Your Perl is configured to link against libgdbm=2C
> but libgdbm.so was not found.
> You could just symlink it to /usr/lib/libgdbm.so.2.0.0
>=20
> perl Makefile.PL MP_USE_STATIC=3D1=20
> MP_AP_PREFIX=3D/usr/local/src/httpd_perl2/httpd-2.2.9=20
> MP_AP_CONFIGURE=3D"--prefix=3D/usr/local/httpd_perl --with-mpm=3Dprefork=
=20
> --disable-cgi --with-port=3D8080"
>=20
> But when I hit make=2C a lot off error messages appears=2C almost all of=
=20
> them with a "perl.h" problem=2C here are some lines:
> -------------------------------------
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:385 2: error:=20
> storage class specified for parameter ???PerlExitListEntry???
> In file included from=20
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:388 1=2C
> from modperl_perl_includes.h:65=2C
> from modperl_common_includes.h:24=2C
> from mod_perl.h:21=2C
> from mod_perl.c:17:
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/thrdvar.h: 34: error:=20
> expected specifier-qualifier-list before ???SV???
> In file included from modperl_perl_includes.h:65=2C
> from modperl_common_includes.h:24=2C
> from mod_perl.h:21=2C
> from mod_perl.c:17:
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/perl.h:388 9: warning:=20
> empty declaration
> -------------------------------------
>=20
> There is one apache on this server that already have mod_perl as a=20
> shared module=2C but I don't think this is the cause.
>=20
> here some lines from perl -V:
> Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
> osname=3Dlinux=2C osvers=3D2.6.18-53.1.14.el5pae=2C archname=3Di386-linux=
-thread-multi
> Linker and Libraries:
> ld=3D'gcc'=2C ldflags =3D' -L/usr/local/lib'
> libpth=3D/usr/local/lib /lib /usr/lib
> libs=3D-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
> perllibs=3D-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
> libc=3D/lib/libc-2.5.so=2C so=3Dso=2C useshrplib=3Dtrue=2C libperl=3Dlibp=
erl.so
> gnulibc_version=3D'2.5'
> Dynamic Linking:
> dlsrc=3Ddl_dlopen.xs=2C dlext=3Dso=2C d_dlsymun=3Dundef=2C ccdlflags=3D'-=
Wl=2C-E=20
> -Wl=2C-rpath=2C/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
>=20
> 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=3Den-us &ocid=3DTXT_TAG=
LM_WLYIA_whichathlete_us=