The "make" step of building mod_perl-2.0.3 with Perl 5.10.0
(DEVEL32096) on Solaris 8 in 64-bit fails with the following
message:

$ make
cd "src/modules/perl" && make
gcc -I/var/tmp/peter/mod_perl-2.0.3/src/modules/perl 
-I/var/tmp/peter/mod_perl-2.0.3/xs -I/opt/MISperl/httpd2/include 
-I/opt/MISperl/httpd2/include  -I/opt/MISperl/httpd2/include -D_REENTRANT 
-mcpu=v9 -m64 -fno-strict-aliasing -pipe -I/var/tmp/static/include 
-I/opt/MISperl/perl/lib/5.10.0/sun4-solaris-thread-multi-64/CORE -DMOD_PERL 
-DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -DAP_HAVE_DESIGNATED_INITIALIZER -O2 
-fPIC \
-c mod_perl.c && mv mod_perl.o mod_perl.lo
mod_perl.c: In function `modperl_sys_term':
mod_perl.c:599: error: `my_perl' undeclared (first use in this function)
mod_perl.c:599: error: (Each undeclared identifier is reported only once
mod_perl.c:599: error: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `mod_perl.lo'
Current working directory /var/tmp/peter/mod_perl-2.0.3/src/modules/perl
*** Error code 1
make: Fatal error: Command failed for target `modperl_lib'

The referenced line 599 in mod_perl.c reads

$ perl -nle 'print if $.==599' src/modules/perl/mod_perl.c
    PERL_SYS_TERM();

thus I cced this to p5p.


-----

Perl was configured with
./Configure \
    -Dprefix=/opt/MISperl/perl \
    -Uinstallusrbinperl \
    -Dcc=gcc \
    -Doptimize=-O2 \
    -Dlocincpth=/var/tmp/static/include \
    -Dloclibpth=/var/tmp/static/lib \
    -Duseshrplib \
    -Duseperlio \
    -Dusethreads \
    -Duselargefiles \
    -Duse64bitall \
    -Dusesitecustomize \
    -des

httpd-2.0.61 was configured with
CC='gcc -m64' CFLAGS='-O2' ./configure \
    --prefix=/opt/MISperl/httpd2 \
    --enable-layout=Apache \
    --with-program-name=httpd2 \
    --enable-pie \
    --with-included-apr \
    --with-mpm=worker \
    --enable-mods-shared=most \
    --enable-logio=shared \
    --enable-proxy=shared \
    --disable-ssl \
    --enable-deflate \
    --with-z=/usr/local

mod_perl was configured with
LD_LIBRARY_PATH=/usr/local/lib/sparcv9 \
/opt/MISperl/perl/bin/perl Makefile.PL \
    MP_APXS=/opt/MISperl/httpd2/bin/apxs \
    MP_COMPAT_1X=0

The LD_LIBRARY_PATH gurantees that libgcc_s.so is found.

Reply via email to