Opened 19 years ago

Last modified 15 years ago

#2750 closed defect

portfiles for php4 and php5 produce "garbled" mod_php for Apache, and a tentative fix — at Initial Version

Reported by: lukhnos@… Owned by: darwinports-bugs@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: php4 php5

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

Change History (0)

Note: See TracTickets for help on using tickets.