php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23287 php4.3.1 fails to compile agains apache2 worker mpm
Submitted: 2003-04-20 10:38 UTC Modified: 2003-04-22 04:29 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: sty at iki dot fi Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.1 OS: FreeBSD 5.0-CURRENT
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sty at iki dot fi
New email:
PHP Version: OS:

 

 [2003-04-20 10:38 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-21 13:59 UTC] 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-22 01:25 UTC] 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-22 01:45 UTC] sty at iki dot fi
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.
 [2003-04-22 02:37 UTC] rasmus@php.net
That may be, but many 3rd-party things that are commonly used with PHP are not thread-safe, especially on FreeBSD.  If you want to use Apache2, which at this point is a bad idea, use the prefork mpm.  If you just want a fast and working server to use with PHP, stick with Apache 1.3.x.
 [2003-04-22 04:29 UTC] sty at iki dot fi
Ok, compiled the newest Apache13. I'll see tonight how it handles the traffic.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 05:01:28 2025 UTC