Re: [MacPorts] #2750: BUG: php4 and php5 produce "garbled" mod_php for Apache
#2750: BUG: php4 and php5 produce "garbled" mod_php for Apache --------------------------------------+------------------------------------- Reporter: lukhnos@openvanilla.org | Owner: bchesneau@mac.com Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: Resolution: | Keywords: Port: php4 php5 | --------------------------------------+------------------------------------- Changes (by devans@macports.org): * port: => php4 php5 Old description:
Tried both the ports for php4 and php5, and both yielded mod_php files that Apache refused to load. Consulted http://www.php.net/manual/en/install.macosx.php and found there is a CFLAG env variable that seems to be missing in the existing portfile (ie. -DEAPI that produces Apache DSO)
Also, both the portfiles for php4 and php5, when variant +apache is set, seem to refer to /usr/sbin/ httpd instead of /opt/local/bin/httpd in one of its configuration settings (which are then used in the linking stage).
After adding the required CFLAG and modified the portfiles a bit, now both php4 and php5 ports work fine now.
Diff for the Portfile of www/php4:
82c82,85 < configure.args-append --with- apxs=/usr/sbin/apxs ---
# configure.args-append --with- apxs=/usr/sbin/apxs configure.env CFLAGS="-DBIND_8_COMPAT=1 -DEAPI -O3" depends_lib-append path:${prefix}/sbin/apxs:apache configure.args-append --with- apxs=${prefix}/sbin/apxs
Whereas the diff for the Portfile of php5:
< configure.args-append --with- apxs=/usr/sbin/apxs ---
# configure.args-append --with- apxs=/usr/sbin/apxs configure.env CFLAGS="-DBIND_8_COMPAT=1 -DEAPI -O3" depends_lib-append path:${prefix}/sbin/apxs:apache configure.args-append --with- apxs=${prefix}/sbin/apxs
New description: Tried both the ports for php4 and php5, and both yielded mod_php files that Apache refused to load. Consulted http://www.php.net/manual/en/install.macosx.php and found there is a CFLAG env variable that seems to be missing in the existing portfile (ie. -DEAPI that produces Apache DSO) Also, both the portfiles for php4 and php5, when variant +apache is set, seem to refer to /usr/sbin/ httpd instead of /opt/local/bin/httpd in one of its configuration settings (which are then used in the linking stage). After adding the required CFLAG and modified the portfiles a bit, now both php4 and php5 ports work fine now. Diff for the Portfile of www/php4: 82c82,85 < configure.args-append --with-apxs=/usr/sbin/apxs ---
# configure.args-append --with-apxs=/usr/sbin/apxs configure.env CFLAGS="-DBIND_8_COMPAT=1 -DEAPI -O3" depends_lib-append path:${prefix}/sbin/apxs:apache configure.args-append --with- apxs=${prefix}/sbin/apxs
Whereas the diff for the Portfile of php5: < configure.args-append --with-apxs=/usr/sbin/apxs ---
# configure.args-append --with-apxs=/usr/sbin/apxs configure.env CFLAGS="-DBIND_8_COMPAT=1 -DEAPI -O3" depends_lib-append path:${prefix}/sbin/apxs:apache configure.args-append --with- apxs=${prefix}/sbin/apxs
-- -- Ticket URL: <http://trac.macports.org/ticket/2750#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts