build php_ap2 error

shelton7

Verified User
Joined
Feb 18, 2005
Messages
8
I've upgraded to Apache 2 but when I run
/build php_ap2

php is building the config files but fails during the compilation.

error:
/usr/local/directadmin/customapache/php-4.3.10/main/rfc1867.c:835: undefined reference to `php_mb_encoding_translation'
main/rfc1867.lo(.text+0x17ff):/usr/local/directadmin/customapache/php-4.3.10/main/rfc1867.c:1055: undefined reference to `php_mb_encoding_translation'
main/rfc1867.lo(.text+0x186d):/usr/local/directadmin/customapache/php-4.3.10/main/rfc1867.c:1063: undefined reference to `php_mb_gpc_encoding_detector'
main/rfc1867.lo(.text+0x1888):/usr/local/directadmin/customapache/php-4.3.10/main/rfc1867.c:1067: undefined reference to `php_mb_strrchr'
main/rfc1867.lo(.text+0x189d):/usr/local/directadmin/customapache/php-4.3.10/main/rfc1867.c:1068: undefined reference to `php_mb_strrchr'
main/rfc1867.lo(.text+0x1d63):/usr/local/directadmin/customapache/php-4.3.10/main/rfc1867.c:1065: undefined reference to `php_mb_gpc_encoding_converter'
main/rfc1867.lo(.text+0x201e):/usr/local/directadmin/customapache/php-4.3.10/main/rfc1867.c:900: undefined reference to `php_mb_encoding_translation'
main/network.lo(.text+0x99a): In function `php_stream_sock_ssl_activate_with_method':
/usr/local/directadmin/customapache/php-4.3.10/main/network.c:789: undefined reference to `php_openssl_apply_verification_policy'
main/network.lo(.text+0x9ed):/usr/local/directadmin/customapache/php-4.3.10/main/network.c:755: undefined reference to `php_SSL_new_from_context'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

*** The make has failed, do you want to try to make again? (y,n): n
-----

here's the content of my configure.php_ap2:
---
#!/bin/sh
./configure \
--with-apxs2 \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars
--
Can you help?
 
FIXED THE PROBLEM.

attn: DIRECTADMIN team

You should automatically delete any php-4.3.X directory before untarring and compiling PHP. Some old values are not overwritten by the untar and it may produce errors.

rm -rf PHP.4.3.10
then ./build php_ap2
works
 
Back
Top