[MacPorts] #34430: Php4 @4.4.9_12 -apache2 +mysql5 build fails in linking phase
MacPorts
noreply at macports.org
Sun May 13 00:41:08 PDT 2012
#34430: Php4 @4.4.9_12 -apache2 +mysql5 build fails in linking phase
------------------------------+---------------------------------------------
Reporter: exile@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: php4 | Port: php4
------------------------------+---------------------------------------------
Hi,
I know PHP4 has been dead for a long time but it still comes handy time to
time when you need to be able to run legacy PHP applications prior to
porting, as such I find it really useful for Macports to keep the legacy
php4 port alive.
Currently when trying to install (it seems the variants don't play role
when trying to build php4 on Lion Server 10.7.3):
sudo port -v install php4 -apache2 +mysql5
On building I get the following error on linking:
===
sapi/cgi/php
Undefined symbols for architecture x86_64:
"_res_9_search", referenced from:
_zif_getmxrr in dns.o
_zif_checkdnsrr in dns.o
"_res_9_dn_skipname", referenced from:
_zif_getmxrr in dns.o
"_res_9_dn_expand", referenced from:
_zif_getmxrr in dns.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
===
This seems to be a an old PHP bug where -lresolv is missing from the
EXTRA_LIBS in generated Makefile. Adding the -lresolv to Makefile fixes
the issue and php installs successfully. Would be nice if this is included
as a patch after the configuration phase.
Regards,
Sten
--
Ticket URL: <https://trac.macports.org/ticket/34430>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list