|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-05-30 18:12 UTC] php4 at liwing dot de
I just set up a test machine using apache2 and php4.2.1. After I compiled successfully apache2 and the
standalone version of php4, I tried to compile the mod_php4-port. Following errors encountered:
BATCH=yes WITH_APACHE2=yes make install clean
===> Building for mod_php4-4.2.1_1
Making all in Zend
Making all in main
Making all in ext
Making all in zlib
Making all in bz2
Making all in ctype
Making all in gd
Making all in gettext
Making all in iconv
Making all in ldap
Making all in mcrypt
Making all in mhash
Making all in mysql
Making all in pcre
Making all in pcrelib
Making all in pdf
Making all in pgsql
Making all in posix
Making all in session
Making all in sockets
Making all in standard
Making all in sysvsem
Making all in sysvshm
Making all in xml
Making all in xmlrpc
Making all in libxmlrpc
Making all in xslt
Making all in sapi
Making all in apache2filter
/bin/sh /usr/ports/www/mod_php4/work/php-4.2.1/libtool --silent --mode=compile cc -I. -I/usr/ports/www/mod_php4/work/php-4.2.1/sapi
In file included from /usr/local/include/apache2/apr_portable.h:89,
from /usr/local/include/apache2/http_protocol.h:64,
from sapi_apache2.c:38:
/usr/local/include/pth/pthread.h:504: warning: `fork' redefined
/usr/local/include/pth/pth.h:507: warning: this is the location of the previous definition
/usr/local/include/pth/pthread.h:505: warning: `sleep' redefined
/usr/local/include/pth/pth.h:510: warning: this is the location of the previous definition
/usr/local/include/pth/pthread.h:506: warning: `sigwait' redefined
/usr/local/include/pth/pth.h:512: warning: this is the location of the previous definition
/usr/local/include/pth/pth.h:517: warning: this is the location of the previous definition
/usr/local/include/pth/pthread.h:513: warning: `write' redefined
/usr/local/include/pth/pth.h:518: warning: this is the location of the previous definition
/usr/local/include/pth/pthread.h:514: warning: `readv' redefined
/usr/local/include/pth/pth.h:519: warning: this is the location of the previous definition
/usr/local/include/pth/pthread.h:515: warning: `writev' redefined
/usr/local/include/pth/pth.h:520: warning: this is the location of the previous definition
/usr/local/include/pth/pthread.h:516: warning: `recv' redefined
/usr/local/include/pth/pth.h:521: warning: this is the location of the previous definition
/usr/local/include/pth/pth.h:526: warning: this is the location of the previous definition
In file included from /usr/local/include/apache2/apr_portable.h:89,
from /usr/local/include/apache2/http_protocol.h:64,
from sapi_apache2.c:38:
/usr/local/include/pth/pthread.h:186: redefinition of `nfds_t'
/usr/local/include/pth/pth.h:56: `nfds_t' previously declared here
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:287: structure has no member named `__pthread_read'
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.2.1/sapi/apache2filter.
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.2.1/sapi/apache2filter.
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.2.1/sapi.
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.2.1.
*** Error code 1
Stop in /usr/ports/www/mod_php4.
*** Error code 1
Stop in /usr/ports/www/mod_php4.
bash-2.05a# exit
As you can see I use many options - if want to know which I can append them.
Jens
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
Sorry, but a simple make build btw. ./configure && make didn't work. I now build a script which sets the configuration (appending). Failure at last: need libtool 1.4 to build php from cvs. But there is "only" 1.3.4_4 available. confphp: #!/bin/sh LOCALBASE=/usr/local export LOCALBASE CFLAGS="-I /usr/local/include/ -I${LOCALBASE}/include/pgsql" export CFLAGS LIBS=" -L${OPENSSLBASE}/lib -lcrypto -lssl" export LIBS ./configure --with-config-file-path=${LOCALBASE}/etc/ \ --with-apxs2=${LOCALBASE}/sbin/apxs --with-tsrm-pth \ --enable-versioning --with-regex=system \ --with-gd=${LOCALBASE} \ --enable-gd-native-ttf --with-freetype-dir=${LOCALBASE} \ --with-jpeg-dir=${LOCALBASE} --with-png-dir=${LOCALBASE} \ --with-zlib --with-bz2=/usr --with-mcrypt=${LOCALBASE} \ --with-mhash=${LOCALBASE} --with-pdflib=${LOCALBASE} \ --with-tiff-dir=${LOCALBASE} --with-mysql=${LOCALBASE} \ --with-pgsql=${LOCALBASE} --with-ldap=${LOCALBASE} \ --with-expat-dir=${LOCALBASE} --with-xmlrpc --enable-xslt \ --with-xslt-sablot --with-gettext=${LOCALBASE} \ --with-iconv=${LOCALBASE} --enable-sockets \ --enable-sysvsem --enable-sysvshmreclassified as apache2 problem, which it really is. I hope you're aware that apache2 itself really isn't ready for serious use..especially if you're not using the very latest version. Here's one note from Apache2 (2.0.35) INSTALL file: * If you are building on FreeBSD, be aware that threads will be disabled and the prefork MPM will be used by default, as threads do not work well with Apache on FreeBSD. If you wish to try a threaded Apache on FreeBSD anyway, use "./configure --enable-threads". I don't know if this is fixed by now. Shouldn't PHP be compiled without ZTS if it's compiled for non-threaded apache2 ??