Compile fails with perl 5.10.1

Compile fails with perl 5.10.1

am 27.12.2009 23:55:01 von Daniel Hembree

After upgrading perl to 510.1 I get this compile error for =
mod_perl-2.0.4. Perl is compiled with no threads and no multiplicity. =
Here's the output:

perl Makefile.PL MP_APXS=3D/usr/local/apache2/bin/apxs MP_COMPAT_1X=3D0
....

make
cd "src/modules/perl" && make
make[1]: Entering directory =
`/home/danny/Projects/mod_perl-2.0.4/src/modules/perl'
cc -I/home/danny/Projects/mod_perl-2.0.4/src/modules/perl =
-I/home/danny/Projects/mod_perl-2.0.4/xs -I/usr/local/apache2/include =
-I/usr/local/apache2/include -I/usr/local/apache2/include -maltivec =
-I/usr/lib/perl5/5.10.1/ppc64-linux-thread-multi-64int-ld/CO RE =
-DMOD_PERL -DLINUX=3D2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE =
-O3 -fPIC \
-c mod_perl.c && mv mod_perl.o mod_perl.lo
mod_perl.c: In function =91modperl_shutdown=92:
mod_perl.c:62: error: =91my_perl=92 undeclared (first use in this =
function)
mod_perl.c:62: error: (Each undeclared identifier is reported only once
mod_perl.c:62: error: for each function it appears in.)
mod_perl.c: In function =91modperl_hook_post_config_last=92:
mod_perl.c:718: error: =91my_perl=92 undeclared (first use in this =
function)
mod_perl.c: In function =91modperl_child_exit=92:
mod_perl.c:814: error: =91my_perl=92 undeclared (first use in this =
function)
mod_perl.c: In function =91modperl_response_handler=92:
mod_perl.c:1041: error: =91my_perl=92 undeclared (first use in this =
function)
mod_perl.c: In function =91modperl_response_handler_cgi=92:
mod_perl.c:1080: error: =91my_perl=92 undeclared (first use in this =
function)
make[1]: *** [mod_perl.lo] Error 1
make[1]: Leaving directory =
`/home/danny/Projects/mod_perl-2.0.4/src/modules/perl'
make: *** [modperl_lib] Error 2

It will compiles and run with perl 5.8.8, , which comes with my YDL-6.2 =
distro and uses ithreads.

any compile suggestions would be appreciated.

Re: Compile fails with perl 5.10.1

am 28.12.2009 00:14:11 von Fred Moyer

On Sun, Dec 27, 2009 at 2:55 PM, Daniel Hembree
wrote:
> After upgrading perl to 510.1 I get this compile error for mod_perl-2.0.4=
.. Perl is compiled with no threads and no multiplicity. Here's the output:

Might want to try a 2.0.5 snapshot with 5.10 compatibility.

http://perl.apache.org/download/source.html#Development_mod_ perl_2_0_Source=
_Distribution

>
> perl Makefile.PL MP_APXS=3D/usr/local/apache2/bin/apxs MP_COMPAT_1X=3D0
> ...
>
> =A0make
> cd "src/modules/perl" && make
> make[1]: Entering directory `/home/danny/Projects/mod_perl-2.0.4/src/modu=
les/perl'
> cc -I/home/danny/Projects/mod_perl-2.0.4/src/modules/perl -I/home/danny/P=
rojects/mod_perl-2.0.4/xs -I/usr/local/apache2/include -I/usr/local/apache2=
/include =A0-I/usr/local/apache2/include -maltivec -I/usr/lib/perl5/5.10.1/=
ppc64-linux-thread-multi-64int-ld/CORE -DMOD_PERL -DLINUX=3D2 -D_REENTRANT =
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE -O3 -fPIC \
> =A0 =A0 =A0 =A0-c mod_perl.c && mv mod_perl.o mod_perl.lo
> mod_perl.c: In function =91modperl_shutdown=92:
> mod_perl.c:62: error: =91my_perl=92 undeclared (first use in this functio=
n)
> mod_perl.c:62: error: (Each undeclared identifier is reported only once
> mod_perl.c:62: error: for each function it appears in.)
> mod_perl.c: In function =91modperl_hook_post_config_last=92:
> mod_perl.c:718: error: =91my_perl=92 undeclared (first use in this functi=
on)
> mod_perl.c: In function =91modperl_child_exit=92:
> mod_perl.c:814: error: =91my_perl=92 undeclared (first use in this functi=
on)
> mod_perl.c: In function =91modperl_response_handler=92:
> mod_perl.c:1041: error: =91my_perl=92 undeclared (first use in this funct=
ion)
> mod_perl.c: In function =91modperl_response_handler_cgi=92:
> mod_perl.c:1080: error: =91my_perl=92 undeclared (first use in this funct=
ion)
> make[1]: *** [mod_perl.lo] Error 1
> make[1]: Leaving directory `/home/danny/Projects/mod_perl-2.0.4/src/modul=
es/perl'
> make: *** [modperl_lib] Error 2
>
> It will compiles and run with perl 5.8.8, , which comes with my YDL-6.2 d=
istro and uses ithreads.
>
> any compile suggestions would be appreciated.
>
>
>