Hi list:
I try to staticallly compile modperl-1.26 into apache-1.3.20 but
I get the following compile error when I compile apache-1.3.20:
modules/perl/libperl.a(mod_perl_opmask.o): In function
`mod_perl_set_opmask':
mod_perl_opmask.o(.text+0x1f): undefined reference to `Perl_croak'
*** Error code 1
Stop in /usr/local/apache_1.3.20/src.
*** Error code 1
Stop in /usr/local/apache_1.3.20.
*** Error code 1
Stop in /usr/local/apache_1.3.20.
The script shows how I configure and compile modperl
cd /usr/local/openssl-0.9.5a
./config --prefix=/usr/local/openssl threads -fPIC
make
make test
make install
cd /usr/local/mm-1.1.2
./configure --prefix=/usr/local/mm --disable-shared
make
make test
make install
cd /usr/local/mod_perl-1.26
perl Makefile.PL
make
make install
cd ../mod_ssl-2.6.x-1.3.4-1.3.12
./configure --with-apache=/usr/local/apache_1.3.20
cd ../php-4.0.0
bash
CFLAGS='-O2 -I/usr/' \
./configure --with-apache=/usr/local/apache_1.3.20 \
--with-mysql \
--with-pgsql \
--enable-memory-limit=yes \
--enable-debug=no
gmake
gmake install
# SSL_BASE will look for ssl lib under /usr/
# keep the bash
cd /usr/local/apache_1.3.20
SSL_BASE=/usr/ \
EAPI_MM=/usr/local/mm \
./configure \
--prefix=/usr/local/apache \
--enable-module=ssl \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4
make
Any idea why the error occurrs. I am really stuck !!!!
Cheers,
Kevin