This is a 3 parter. Please offer suggestions on any or all of the following.
I'm trying to compile PHP 4.1.1 on Mac OS X 10.1.2. I installed the
Mac OS X MySQL binaries from mysql.com into /usr/local/mysql, and the
Mac OS X binaries for apache 1.3.22 into /usr/local/apache.
I would like to use this configuration:
./configure \
--enable-track-vars \
--enable-magic-quotes \
--enable-discard-path \
--disable-pear \
--with-xml \
--with-gnu-ld \
--enable-trans-sid \
--with-mysql=/usr/local/mysql \
--with-openssl=/usr/local/src/OpenSSL-3-1/openssl \
--with-apxs=/usr/local/sbin/apxs
I can get this base configuration to work:
./configure \
--enable-track-vars \
--enable-magic-quotes \
--enable-discard-path \
--disable-pear \
--with-xml \
--with-gnu-ld \
--enable-trans-sid
Part 1: MySQL
compiling with --with-mysql=/usr/local/mysql (alone or added to
base) produces this error:
/Users/niko/Documents/php-4.1.1/.libs
/bin/sh /Users/niko/Documents/php-4.1.1/libtool --silent --mode=link
cc -I. -I/Users/niko/Documents/php-4.1.1/
-I/Users/niko/Documents/php-4.1.1/main
-I/Users/niko/Documents/php-4.1.1
-I/Users/niko/Documents/php-4.1.1/Zend -I/usr/local/mysql/include
-I/Users/niko/Documents/php-4.1.1/ext/xml/expat -traditional-cpp
-I/Users/niko/Documents/php-4.1.1/TSRM -g -O2 -o php
-export-dynamic stub.lo libphp4.la
/usr/bin/ld: table of contents for archive:
/usr/local/mysql/lib/libmysqlclient.a is out of date; rerun ranlib(1)
(can't load from it)
make[1]: *** [php] Error 1
make: *** [all-recursive] Error 1
Part 2: Apache apxs
compiling with --with-apxs=/usr/local/sbin/apxs produces this error:
Making all in sapi
Making all in apache
/bin/sh /Users/niko/Documents/php-4.1.1/libtool --silent
--mode=compile cc -I. -I/Users/niko/Documents/php-4.1.1/sapi/apache
-I/Users/niko/Documents/php-4.1.1/main
-I/Users/niko/Documents/php-4.1.1 -I/usr/local/apache/include
-I/Users/niko/Documents/php-4.1.1/Zend
-I/Users/niko/Documents/php-4.1.1/ext/mysql/libmysql
-I/Users/niko/Documents/php-4.1.1/ext/xml/expat -traditional-cpp
-DDARWIN -DUSE_HSREGEX -DUSE_EXPAT
-I/Users/niko/Documents/php-4.1.1/TSRM -g -O2 -prefer-pic -c
sapi_apache.c
In file included from /usr/local/apache/include/ap_config.h:114,
from /usr/local/apache/include/httpd.h:72,
from sapi_apache.c:32:
/usr/local/apache/include/os.h:118: dlfcn.h: No such file or directory
In file included from /usr/local/apache/include/httpd.h:72,
from sapi_apache.c:32:
/usr/local/apache/include/ap_config.h:435: warning: `HAVE_MMAP' redefined
/Users/niko/Documents/php-4.1.1/TSRM/../main/php_config.h:322:
warning: this is the location of the previous definition
/usr/local/apache/include/ap_config.h:442: warning: `HAVE_SNPRINTF' redefined
/Users/niko/Documents/php-4.1.1/TSRM/../main/php_config.h:439:
warning: this is the location of the previous definition
In file included from /usr/local/apache/include/httpd.h:72,
from sapi_apache.c:32:
/usr/local/apache/include/ap_config.h:1367: warning: `XtOffsetOf' redefined
/Users/niko/Documents/php-4.1.1/main/php.h:342: warning: this is the
location of the previous definition
In file included from /Users/niko/Documents/php-4.1.1/main/php_syslog.h:7,
from
/Users/niko/Documents/php-4.1.1/ext/standard/php_ext_syslog.h:26,
from
/Users/niko/Documents/php-4.1.1/ext/standard/php_standard.h:33,
from sapi_apache.c:56:
/Users/niko/Documents/php-4.1.1/main/php_config.h:322: warning:
`HAVE_MMAP' redefined
/usr/local/apache/include/ap_config.h:435: warning: this is the
location of the previous definition
/Users/niko/Documents/php-4.1.1/main/php_config.h:439: warning:
`HAVE_SNPRINTF' redefined
/usr/local/apache/include/ap_config.h:442: warning: this is the
location of the previous definition
make[3]: *** [sapi_apache.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Part 3: openssl
compiling with --with-openssl=/usr/local/src/OpenSSL-3-1/openssl
produces this error:
_sk_X509_value
/usr/bin/ld: warning unused multiple definitions of symbol _crypt
/usr/lib/libcrypto.dylib(fcrypt.o) definition of _crypt
/usr/lib/libm.dylib(crypt.o) unused definition of _crypt
make[1]: *** [php] Error 1
make: *** [all-recursive] Error 1
All suggestions welcome,
Ryan
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]