pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lang/php5 broken under Darwin (Mac OS X 10.6)



The following patch makes lang/php5 build under darwin (Mac OS X 10.6).

Without it you get

.o Zend/zend_default_classes.o Zend/zend_execute.o sapi/cgi/cgi_main.o sapi/cgi/getopt.o main/internal_functions.o -lssl -lcrypto -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 - lz -liconv -lm -lxml2 -lz -liconv -lm -o sapi/cgi/php-cgi
Undefined symbols:
  "_res_9_search", referenced from:
      _zif_dns_get_mx in dns.o
      _zif_dns_check_record in dns.o
  "_res_9_dn_expand", referenced from:
      _zif_dns_get_mx in dns.o
  "_res_9_dn_skipname", referenced from:
      _zif_dns_get_mx in dns.o
      _zif_dns_get_mx in dns.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
gnumake: *** [sapi/cgi/php-cgi] Error 1
*** Error code 2


Apple have pretty much broken everything with 10.6. (lot's of software that once built fine, no longer does. sigh.... This is just one).

Do we need to check the darwin version here?

Ian McWilliam

===================================================================
RCS file: /cvsroot/pkgsrc/lang/php5/Makefile,v
retrieving revision 1.72
diff -u -r1.72 Makefile
--- Makefile    9 Jun 2009 15:15:07 -0000       1.72
+++ Makefile    13 Sep 2009 06:23:09 -0000
@@ -45,6 +45,7 @@
 # Make sure modules can link correctly
 .if ${OPSYS} == "Darwin"
 INSTALL_UNSTRIPPED=    yes
+LDFLAGS+=-lresolv
 .endif

 pre-install:




Home | Main Index | Thread Index | Old Index