As many other people here, i have problem with apache and php4.
I installed mod_ssl-2.7.1, apache 1.3.14, mod_perl 1.24-01 and mysql-3.23.27beta using the following configure-scripts:
mod_ssl:
#!/bin/bash APACHE_SOURCE_DIR='../apache_1.3.14' APACHE_INSTALL_DIR='/usr/local/programme/apache'
./configure \
--with-apache=$APACHE_SOURCE_DIR
[--- cut stauts report ---]
exit 0
apache:
#!/bin/sh
APACHE_INSTALL_DIR='/usr/local/programme/apache'
SSL_BASE='SYSTEM'
EAPI_MM='SYSTEM'
export SSL_BASE EAPI_MM
echo "SSL_BASE set to: "$SSL_BASE
echo "EAPI_MM set to: "$EAPI_MM
echo "Configuring Apache ..."
./configure \
--enable-module=ssl \
--enable-shared=ssl \
--prefix=$APACHE_INSTALL_DIR \
--enable-module=so \
--enable-rule=SHARED_CORE \
--with-perl=/usr/bin/perl
[ --- cut ----]
exit 0
mod_perl:
#!/bin/bash
APACHE_SOURCE_DIR='../apache_1.3.14/src'
APACHE_INSTALL_DIR='/usr/local/programme/apache'
echo "Configuring mod_perl ..."
perl Makefile.PL \
APACHE_PREFIX=$APACHE_INSTALL_DIR \
APACHE_SRC=$APACHE_SOURCE_DIR \
DO_HTTPD=1 \
USE_APACI=1 \
PREP_HTTPD=1 \
EVERYTHING=1
[ --- cut --- ]
exit 0
mysql:
#!/bin/bash
MYSQL_INSTALL_DIR='/usr/local/mysql'
./configure --prefix=$MYSQL_INSTALL_DIR --localstatedir=/usr/local/var/mysql/data --with-berkeley-db --with-charset=german1
Then i installed gd-1.8.3 and mm-1.1.3 to /usr/local. Until now everything seemed to work fine, but when i tried to make mod_perl, which was configured with this script (without any error):
#!/bin/sh
MYSQL_INSTALL_DIR='/usr/local/mysql'
APACHE_CONF_DIR='/usr/local/programme/apache/conf'
echo "Configuring PHP DSO..."
./configure \
--with-gd=/usr/local \
--with-mysql=$MYSQL_INSTALL_DIR \
--with-java=/usr/local/java \
--with-servlet=/usr/local/jsdk \
--with-apxs=/usr/local/programme/apache/bin/apxs \
--enable-ftp \
--with-zlib-dir=/usr
[ --- cut ---- ]
exit 0
i got the following error during the execution of 'make':
[ --- cut --- ]
make[3]: Entering directory /home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1/ext/gd'
/bin/sh /home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1/libtool --silent --mode=compile gcc -I. -I/home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1/ext/gd -I/home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1 -I/home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1/main -I/usr/local/programme/apache/include -I/home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1/Zend -I/home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1 -I/usr/local/include -I/usr/local/mysql/include/mysql -I/home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1/ext/xml/expat/xmltok -I/home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1/ext/xml/expat/xmlparse -I/home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1/TSRM -D_REENTRANT -DXML_BYTE_ORDER=12 -I../TSRM -g -O2 -pthread -c gd.c
gd.c: In functionphp_if_imagecreatefromgif':
gd.c:552: gdImageCreateFromGif' undeclared (first use in this function)
gd.c:552: (Each undeclared identifier is reported only once
gd.c:552: for each function it appears in.)
gd.c: In functionphp_if_imagegif':
gd.c:709: gdImageGif' undeclared (first use in this function)
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory/home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1/ext/gd'
make[2]: [install-recursive] Error 1
make[2]: Leaving directory /home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1/ext/gd'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory/home/alex/Arbeit/Apache-Konfiguration/Software/php-4.0.3pl1/ext'
make: [install-recursive] Error 1
Result-Code: 2
I am a little bit lost now. I worked for a few hours to solve this problem but i can't find a solution.
Best regards
Alexander
P.S.:
I forgot to mention: I am using Immunix 6.2 (which is a RedHat 6.2 distribution compiled with the stack guard compiler)