#23287 [Opn]: php4.3.1 fails to compile agains apache2 worker mpm

From: Date: Tue, 22 Apr 2003 06:45:43 +0000
Subject: #23287 [Opn]: php4.3.1 fails to compile agains apache2 worker mpm
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38042@lists.php.net to get a copy of this message
ID: 23287 User updated by: sty at iki dot fi Reported By: sty at iki dot fi Status: Open Bug Type: Compile Failure Operating System: FreeBSD 5.0-CURRENT PHP Version: 4.3.1 New Comment: Worker is the MPM that supports scalability and multithreading, so I naturally tried to use it on a traffic-heavy site. tsrm-pth is what ports collection forces if you choose to use php4 as an apache2 module. Previous Comments: ------------------------------------------------------------------------ [2003-04-22 01:25:16] rasmus@php.net Why are you using --with-tsrm-pth? Also note that your chances of running PHP under the Worker mpm on UNIX are slim to none even if you do get it to compile. ------------------------------------------------------------------------ [2003-04-21 13:59:39] sty at iki dot fi Sorry, doesn't compile. Complete configuring and compiling log can be found at: http://www.blosphere.net/~sty/compile.log options used: --with-apxs2=/usr/local/sbin/apxs --with-tsrm-pth --with-config-file-path=/usr/local/etc --enable-versioning --with-regex=system --without-gd --with-zlib --with-mysql=/usr/local --prefix=/usr/local ------------------------------------------------------------------------ [2003-04-20 19:26:15] magnus@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-04-20 10:38:28] sty at iki dot fi Configure-state goes nicely thru, but when compiling, stops at the following (from ports): -- snip -- /bin/sh libtool --silent --mode=compile cc -Isapi/apache2filter/ -I/usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/ -DPHP_ATOM_INC -I/usr/ports/www/mod_php4/work/php-4.3.1/include -I/usr/ports/www/mod_php4/work/php-4.3.1/main -I/usr/ports/www/mod_php4/work/php-4.3.1 -I/usr/local/include/apache2 -I/usr/ports/www/mod_php4/work/php-4.3.1/Zend -I/usr/ports/www/mod_php4/work/php-4.3.1/ext/xml/expat -DFREEBSD_THREAD_HACK -D_REENTRANT -D_THREAD_SAFE -I/usr/ports/www/mod_php4/work/php-4.3.1/TSRM -I/usr/local/include/pth -O -pipe -march=pentium3 -I/usr/local/include -pthread -DZTS -prefer-pic -c /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c -o sapi/apache2filter/sapi_apache2.lo In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:517:1: warning: "fork" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:551:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:518:1: warning: "sleep" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:556:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:519:1: warning: "nanosleep" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:554:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:520:1: warning: "usleep" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:555:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:521:1: warning: "system" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:553:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:522:1: warning: "sigwait" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:558:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:523:1: warning: "waitpid" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:552:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:524:1: warning: "connect" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:562:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:525:1: warning: "accept" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:563:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:526:1: warning: "select" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:559:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:527:1: warning: "poll" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:561:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:528:1: warning: "read" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:564:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:529:1: warning: "write" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:565:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:530:1: warning: "readv" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:566:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:531:1: warning: "writev" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:567:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:532:1: warning: "recv" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:568:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:533:1: warning: "send" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:569:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:534:1: warning: "recvfrom" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:570:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:535:1: warning: "sendto" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:571:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:536:1: warning: "pread" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:572:1: warning: this is the location of the previous definition In file included from /usr/local/include/apache2/apr_portable.h:85, from /usr/local/include/apache2/http_protocol.h:64, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:41: /usr/local/include/pth/pthread.h:537:1: warning: "pwrite" redefined In file included from /usr/ports/www/mod_php4/work/php-4.3.1/TSRM/TSRM.h:45, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_alloc.h:26, from /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.h:180, from /usr/ports/www/mod_php4/work/php-4.3.1/main/php.h:34, from /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:25: /usr/local/include/pth/pth.h:573:1: warning: this is the location of the previous definition /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c: In function `php_input_filter': /usr/ports/www/mod_php4/work/php-4.3.1/sapi/apache2filter/sapi_apache2.c:337: structure has no member named `__pthread_read' *** Error code 1 -- snip -- 4.3.2RC1 went thru but had multiple errors like this: -- snip -- In file included from /usr/local/src/php-4.3.2RC1/TSRM/TSRM.h:45, from /usr/local/src/php-4.3.2RC1/Zend/zend_alloc.h:26, from /usr/local/src/php-4.3.2RC1/Zend/zend.h:180, from /usr/local/src/php-4.3.2RC1/main/php.h:34, from /usr/local/src/php-4.3.2RC1/sapi/apache2handler/php_functions.c:21: /usr/local/include/pth/pth.h:559:1: warning: this is the location of the previous definition -- snip -- Is this a problem in pth, apache or php, I don't know. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23287&edit=1

« previous php.bugs (#38042) next »