ID: 17534 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Compile Failure Operating System: FreeBSD 4.6-RC PHP Version: 4.2.1 New Comment:
You should read carefully the compiler error message. I will send every requested file to this list, f.e. /usr/local/include/pth/pthread.h. In my expirience those kind of errors happen on wrong order of including files. This may or may not be an error of PHP, because usually an library should be able to handle this, but it seems to be a special case :-) I just ask for review that part under a FreeBSD system at you or requesting access to mine by a developer from php.net. Jens Previous Comments: ------------------------------------------------------------------------ [2002-05-31 03:13:49] [EMAIL PROTECTED] A FreeBSD port is just a makefile, a dependency tree for required libraries and applications and a package tool. I think a quick read what FreeBSD port mean could be guessed at http://www.freebsd.org/ports/ The FreeBSD port www/mod_php4 works with the source from php.net, Mr. mfisher! ------------------------------------------------------------------------ [2002-05-30 18:31:52] [EMAIL PROTECTED] supposed -> support ------------------------------------------------------------------------ [2002-05-30 18:31:36] [EMAIL PROTECTED] We don't supposed any "ports", only sources from php.net Anyway, a quick guess is that something between pth/apache2 is out of sync or doesn't like each other (but it's certainly not PHP). ------------------------------------------------------------------------ [2002-05-30 18:12:52] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17534&edit=1