Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2002 04:35:22 +0200
From:      "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To:        dirk@freebsd.org
Cc:        ports@freebsd.org, current@freebsd.org
Subject:   php4 -DWITH_APACHE2 breaks on -current
Message-ID:  <20020712043522.2e38dbf2.corecode@corecode.ath.cx>

next in thread | raw e-mail | index | archive | help
--=.T'Jui,//lSWy4a
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

hello,

just wanted to note that php4 breaks with -DWITH_APACHE2 on latest
-CURRENT:

[...]
Making all in apache2filter
/bin/sh /usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/libtool --silent --mode=compile cc  -I. -I/usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/sapi/apache2filter -I/usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/main -I/usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1 -I/usr/local/include/apache2 -I/usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/Zend -I/usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/ext/xml/expat  -D_REENTRANT -D_THREAD_SAFE -I/usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/TSRM -I/usr/local/include/pth -O -pipe -march=athlon -I/usr/local/include -pthread -DZTS -prefer-pic  -c sapi_apache2.c
In file included from /usr/local/include/apache2/apr_portable.h:90,
                 from /usr/local/include/apache2/http_protocol.h:64,
                 from sapi_apache2.c:38:
/usr/local/include/pth/pthread.h:504:1: warning: "fork" redefined
In file included from /usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/TSRM/TSRM.h:40,
                 from /usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/Zend/zend_alloc.h:26,
                 from /usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/Zend/zend.h:154,
                 from /usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/main/php.h:34,
                 from sapi_apache2.c:23:
/usr/local/include/pth/pth.h:507:1: warning: this is the location of the previous definition
[...]
In file included from /usr/local/include/apache2/apr_portable.h:90,
                 from /usr/local/include/apache2/http_protocol.h:64,
                 from sapi_apache2.c:38:
/usr/local/include/pth/pthread.h:521:1: warning: "pwrite" redefined
In file included from /usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/TSRM/TSRM.h:40,
                 from /usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/Zend/zend_alloc.h:26,
                 from /usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/Zend/zend.h:154,
                 from /usr/obj/k7/usr/ports/www/mod_php4/work/php-4.2.1/main/php.h:34,
                 from sapi_apache2.c:23:
/usr/local/include/pth/pth.h:526:1: warning: this is the location of the previous definition
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:287: structure has no member named `__pthread_read'
*** Error code 1

this is because pth's pthread.h re#defines several funtions to
__pthread_funtions but apache's bucket stuff uses a struct with a member
variable called ``read''. so this gets replaced and boom.

cheers
  simon
  
-- 
/"\   http://corecode.ath.cx/#donate
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News

--=.T'Jui,//lSWy4a
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9LkB0r5S+dk6z85oRAo0aAKDmXeEiiBdbDmykU0NqL6iIv3+yEwCgzil/
AagUvVIHJ4/FEgtSvtDgiro=
=ujPF
-----END PGP SIGNATURE-----

--=.T'Jui,//lSWy4a--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020712043522.2e38dbf2.corecode>