Subject: php5 on OS X
To: None <tech-pkg@netbsd.org>
From: John Klos <john@ziaspace.com>
List: tech-pkg
Date: 05/09/2006 16:09:06
Hi,

I'm trying to build php5 on Intel OS X (latest), and this is what I get. 
Any ideas?


gcc -pipe -O2 -I/usr/local/include -I/usr/include  -L/usr/local/lib 
-L/usr/local/lib -L/usr/lib -R/usr/local/lib ext/libxml/libxml.o 
ext/openssl/openssl.o ext/openssl/xp_ssl.o 
ext/pcre/pcrelib/pcre_chartables.o ext/pcre/pcrelib/pcre_ucp_searchfuncs.o 
ext/pcre/pcrelib/pcre_compile.o ext/pcre/pcrelib/pcre_config.o 
ext/pcre/pcrelib/pcre_dfa_exec.o ext/pcre/pcrelib/pcre_exec.o 
ext/pcre/pcrelib/pcre_fullinfo.o ext/pcre/pcrelib/pcre_get.o 
ext/pcre/pcrelib/pcre_globals.o ext/pcre/pcrelib/pcre_info.o 
ext/pcre/pcrelib/pcre_maketables.o ext/pcre/pcrelib/pcre_ord2utf8.o 
ext/pcre/pcrelib/pcre_refcount.o ext/pcre/pcrelib/pcre_study.o 
ext/pcre/pcrelib/pcre_tables.o ext/pcre/pcrelib/pcre_try_flipped.o 
ext/pcre/pcrelib/pcre_valid_utf8.o ext/pcre/pcrelib/pcre_version.o 
ext/pcre/pcrelib/pcre_xclass.o ext/pcre/php_pcre.o ext/ctype/ctype.o 
ext/date/php_date.o ext/date/lib/astro.o ext/date/lib/dow.o 
ext/date/lib/parse_date.o ext/date/lib/parse_tz.o ext/date/lib/timelib.o 
ext/date/lib/tm2unixtime.o ext/date/lib/unixtime2tm.o ext/hash/hash.o 
ext/hash/hash_md.o ext/hash/hash_sha.o ext/hash/hash_ripemd.o 
ext/hash/hash_haval.o ext/hash/hash_tiger.o ext/hash/hash_gost.o 
ext/hash/hash_snefru.o ext/hash/hash_whirlpool.o ext/hash/hash_adler32.o 
ext/hash/hash_crc32.o ext/reflection/php_reflection.o 
ext/session/session.o ext/session/mod_files.o ext/session/mod_mm.o 
ext/session/mod_user.o ext/simplexml/simplexml.o ext/spl/php_spl.o 
ext/spl/spl_functions.o ext/spl/spl_engine.o ext/spl/spl_iterators.o 
ext/spl/spl_array.o ext/spl/spl_directory.o ext/spl/spl_sxe.o 
ext/spl/spl_exceptions.o ext/spl/spl_observer.o ext/standard/array.o 
ext/standard/base64.o ext/standard/basic_functions.o 
ext/standard/browscap.o ext/standard/crc32.o ext/standard/crypt.o 
ext/standard/cyr_convert.o ext/standard/datetime.o ext/standard/dir.o 
ext/standard/dl.o ext/standard/dns.o ext/standard/exec.o 
ext/standard/file.o ext/standard/filestat.o ext/standard/flock_compat.o 
ext/standard/formatted_print.o ext/standard/fsock.o ext/standard/head.o 
ext/standard/html.o ext/standard/image.o ext/standard/info.o 
ext/standard/iptc.o ext/standard/lcg.o ext/standard/link.o 
ext/standard/mail.o ext/standard/math.o ext/standard/md5.o 
ext/standard/metaphone.o ext/standard/microtime.o ext/standard/pack.o 
ext/standard/pageinfo.o ext/standard/quot_print.o ext/standard/rand.o 
ext/standard/reg.o ext/standard/soundex.o ext/standard/string.o 
ext/standard/scanf.o ext/standard/syslog.o ext/standard/type.o 
ext/standard/uniqid.o ext/standard/url.o ext/standard/url_scanner.o 
ext/standard/var.o ext/standard/versioning.o ext/standard/assert.o 
ext/standard/strnatcmp.o ext/standard/levenshtein.o 
ext/standard/incomplete_class.o ext/standard/url_scanner_ex.o 
ext/standard/ftp_fopen_wrapper.o ext/standard/http_fopen_wrapper.o 
ext/standard/php_fopen_wrapper.o ext/standard/credits.o ext/standard/css.o 
ext/standard/var_unserializer.o ext/standard/ftok.o ext/standard/sha1.o 
ext/standard/user_filters.o ext/standard/uuencode.o ext/standard/filters.o 
ext/standard/proc_open.o ext/standard/streamsfuncs.o ext/standard/http.o 
ext/tokenizer/tokenizer.o ext/xml/xml.o ext/xml/compat.o 
ext/xmlreader/php_xmlreader.o ext/xmlwriter/php_xmlwriter.o TSRM/TSRM.o 
TSRM/tsrm_strtok_r.o TSRM/tsrm_virtual_cwd.o main/main.o main/snprintf.o 
main/spprintf.o main/php_sprintf.o main/safe_mode.o main/fopen_wrappers.o 
main/alloca.o main/php_scandir.o main/php_ini.o main/SAPI.o main/rfc1867.o 
main/php_content_types.o main/strlcpy.o main/strlcat.o main/mergesort.o 
main/reentrancy.o main/php_variables.o main/php_ticks.o main/network.o 
main/php_open_temporary_file.o main/php_logos.o main/output.o 
main/streams/streams.o main/streams/cast.o main/streams/memory.o 
main/streams/filter.o main/streams/plain_wrapper.o 
main/streams/userspace.o main/streams/transports.o 
main/streams/xp_socket.o main/streams/mmap.o Zend/zend_language_parser.o 
Zend/zend_language_scanner.o Zend/zend_ini_parser.o 
Zend/zend_ini_scanner.o Zend/zend_alloc.o Zend/zend_compile.o 
Zend/zend_constants.o Zend/zend_dynamic_array.o Zend/zend_execute_API.o 
Zend/zend_highlight.o Zend/zend_llist.o Zend/zend_opcode.o 
Zend/zend_operators.o Zend/zend_ptr_stack.o Zend/zend_stack.o 
Zend/zend_variables.o Zend/zend.o Zend/zend_API.o Zend/zend_extensions.o 
Zend/zend_hash.o Zend/zend_list.o Zend/zend_indent.o 
Zend/zend_builtin_functions.o Zend/zend_sprintf.o Zend/zend_ini.o 
Zend/zend_qsort.o Zend/zend_multibyte.o Zend/zend_ts_hash.o 
Zend/zend_stream.o Zend/zend_iterators.o Zend/zend_interfaces.o 
Zend/zend_exceptions.o Zend/zend_strtod.o Zend/zend_objects.o 
Zend/zend_object_handlers.o Zend/zend_objects_API.o Zend/zend_mm.o 
Zend/zend_default_classes.o Zend/zend_execute.o sapi/cgi/cgi_main.o 
sapi/cgi/getopt.o main/internal_functions.o  -lbind -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
/usr/bin/ld: warning multiple definitions of symbol ___putshort
/usr/local/lib/libbind.dylib(res_comp.o) definition of ___putshort
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_comp.o) 
definition of ___putshort
/usr/bin/ld: warning multiple definitions of symbol ___putlong
/usr/local/lib/libbind.dylib(res_comp.o) definition of ___putlong
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_comp.o) 
definition of ___putlong
/usr/bin/ld: warning multiple definitions of symbol ___dn_skipname
/usr/local/lib/libbind.dylib(res_comp.o) definition of ___dn_skipname
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_comp.o) 
definition of ___dn_skipname
/usr/bin/ld: warning multiple definitions of symbol __getlong
/usr/local/lib/libbind.dylib(res_comp.o) definition of __getlong
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_comp.o) 
definition of __getlong
/usr/bin/ld: warning multiple definitions of symbol __getshort
/usr/local/lib/libbind.dylib(res_comp.o) definition of __getshort
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_comp.o) 
definition of __getshort
/usr/bin/ld: warning multiple definitions of symbol _gethostbyaddr
/usr/local/lib/libbind.dylib(gethostent.o) definition of _gethostbyaddr
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(lu_host.o) 
definition of _gethostbyaddr
/usr/bin/ld: warning multiple definitions of symbol _sethostent
/usr/local/lib/libbind.dylib(gethostent.o) definition of _sethostent
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(lu_host.o) 
definition of _sethostent
/usr/bin/ld: warning multiple definitions of symbol _getipnodebyaddr
/usr/local/lib/libbind.dylib(gethostent.o) definition of _getipnodebyaddr
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(lu_host.o) 
definition of _getipnodebyaddr
/usr/bin/ld: warning multiple definitions of symbol _gethostent
/usr/local/lib/libbind.dylib(gethostent.o) definition of _gethostent
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(lu_host.o) 
definition of _gethostent
/usr/bin/ld: warning multiple definitions of symbol _endhostent
/usr/local/lib/libbind.dylib(gethostent.o) definition of _endhostent
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(lu_host.o) 
definition of _endhostent
/usr/bin/ld: warning multiple definitions of symbol _gethostbyname2
/usr/local/lib/libbind.dylib(gethostent.o) definition of _gethostbyname2
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(lu_host.o) 
definition of _gethostbyname2
/usr/bin/ld: warning multiple definitions of symbol _freehostent
/usr/local/lib/libbind.dylib(gethostent.o) definition of _freehostent
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(lu_host.o) 
definition of _freehostent
/usr/bin/ld: warning multiple definitions of symbol _gethostbyname
/usr/local/lib/libbind.dylib(gethostent.o) definition of _gethostbyname
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(lu_host.o) 
definition of _gethostbyname
/usr/bin/ld: warning multiple definitions of symbol _getipnodebyname
/usr/local/lib/libbind.dylib(gethostent.o) definition of _getipnodebyname
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(lu_host.o) 
definition of _getipnodebyname
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may 
result in errors or different symbols being used
symbol ___res_close used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(inet_ntop.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_data.o)
symbol ___hostalias used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_query.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_data.o)
symbol _MD5_Init used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libcrypto.dylib(md5_dgst.o) 
not from earlier dynamic library 
/usr/local/lib/libbind.3.dylib(md5_dgst.o)
symbol _MD5_Update used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libcrypto.dylib(md5_dgst.o) 
not from earlier dynamic library 
/usr/local/lib/libbind.3.dylib(md5_dgst.o)
symbol _MD5_version used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libcrypto.dylib(md5_dgst.o) 
not from earlier dynamic library 
/usr/local/lib/libbind.3.dylib(md5_dgst.o)
symbol _MD5_Final used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libcrypto.dylib(md5_dgst.o) 
not from earlier dynamic library 
/usr/local/lib/libbind.3.dylib(md5_dgst.o)
symbol __res used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_data.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_data.o)
symbol _hstrerror used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(herror.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(herror.o)
symbol _h_errno used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(herror.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(herror.o)
symbol _h_errlist used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(herror.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(herror.o)
symbol _h_nerr used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(herror.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(herror.o)
symbol _herror used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(herror.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(herror.o)
symbol ___res_randomid used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_init.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_init.o)
symbol ___res_queriesmatch used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_send.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_send.o)
symbol ___res_nameinquery used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_send.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_send.o)
symbol ___res_isourserver used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_send.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_data.o)
symbol __res_opcodes used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_debug.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_data.o)
symbol ___p_query used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_debug.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_data.o)
symbol ___p_time used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_debug.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_debug.o)
symbol ___p_class used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_debug.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_debug.o)
symbol ___p_type used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_debug.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_debug.o)
symbol ___p_fqname used from dynamic library 
/usr/lib/gcc/i686-apple-dar/usr/bin/ld: Undefined symbols:
_res_nclose
_res_ninit
_res_nmkquery
_res_nsend
win8/4.0.1/../../../libm.dylib(res_debug.o) not from earlier dynamic 
library /usr/local/lib/libbind.3.dylib(res_debug.o)
symbol ___p_cdnname used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_debug.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_debug.o)
symbol ___p_cdname used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_debug.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_debug.o)
symbol ___fp_resstat used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_debug.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_debug.o)
symbol ___fp_query used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_debug.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_data.o)
symbol ___fp_nquery used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_debug.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_data.o)
symbol ___p_option used from dynamic library 
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib(res_debug.o) not 
from earlier dynamic library /usr/local/lib/libbind.3.dylib(res_debug.o)
collect2: ld returned 1 exit status
gnumake: *** [sapi/cgi/php] Error 1
*** Error code 2



-- 
Today is the day that my destiny calls me!
   Meowth