ID: 40310 User updated by: sjohns at nerfarena dot org Reported By: sjohns at nerfarena dot org Status: Bogus Bug Type: Compile Failure Operating System: Solaris/SPARC V10 PHP Version: 5.2.0 Assigned To: tony2001 New Comment:
I have tried this, but what now results can be seen below at bottom. I did find a reference to this error on Solaris a few years ago, (see immediately below). Is this still an issue with Solaris: http://bugs.php.net/22896 Just fyi, we have made progress on this. It seems the problem arises from a "broken" libintl within solaris that php links against. To solve this, the sybase client brings his own libintl_r but this is not being used by the generated makefile for php. So after running configure, modify the Makefile from -lintl to -lintl_r. Another problem was the "forced" usage of the sybtcl library which i also had to remove / modify from -lsybtcl to -ltcl. My error starts now: /bin/sh /export/sunsource/php-5.2.0/libtool --silent --preserve-dup-deps --mode= compile gcc -Isapi/cli/ -I/export/sunsource/php-5.2.0/sapi/cli/ -DPHP_ATOM_INC -I/export/sunsource/php-5.2.0/include -I/export/sunsource/php-5.2.0/main -I/expo rt/sunsource/php-5.2.0 -I/usr/local/include/libxml2 -I/usr/sfw/include -I/export /sunsource/php-5.2.0/ext/date/lib -I/usr/local/include/mysql -I/export/sunsource /php-5.2.0/TSRM -I/export/sunsource/php-5.2.0/Zend -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -g -O2 -c /export/sunsource/php-5.2.0/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo /bin/sh /export/sunsource/php-5.2.0/libtool --silent --preserve-dup-deps --mode= compile gcc -Isapi/cli/ -I/export/sunsource/php-5.2.0/sapi/cli/ -DPHP_ATOM_INC -I/export/sunsource/php-5.2.0/include -I/export/sunsource/php-5.2.0/main -I/expo rt/sunsource/php-5.2.0 -I/usr/local/include/libxml2 -I/usr/sfw/include -I/export /sunsource/php-5.2.0/ext/date/lib -I/usr/local/include/mysql -I/export/sunsource /php-5.2.0/TSRM -I/export/sunsource/php-5.2.0/Zend -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -g -O2 -c /export/sunsource/php-5.2.0/sapi/cli/php_cli_re adline.c -o sapi/cli/php_cli_readline.lo /bin/sh /export/sunsource/php-5.2.0/libtool --silent --preserve-dup-deps --mode= compile gcc -Isapi/cli/ -I/export/sunsource/php-5.2.0/sapi/cli/ -DPHP_ATOM_INC -I/export/sunsource/php-5.2.0/include -I/export/sunsource/php-5.2.0/main -I/expo rt/sunsource/php-5.2.0 -I/usr/local/include/libxml2 -I/usr/sfw/include -I/export /sunsource/php-5.2.0/ext/date/lib -I/usr/local/include/mysql -I/export/sunsource /php-5.2.0/TSRM -I/export/sunsource/php-5.2.0/Zend -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -g -O2 -c /export/sunsource/php-5.2.0/sapi/cli/getopt.c - o sapi/cli/getopt.lo /bin/sh /export/sunsource/php-5.2.0/libtool --silent --preserve-dup-deps --mode= compile gcc -Imain/ -I/export/sunsource/php-5.2.0/main/ -DPHP_ATOM_INC -I/expor t/sunsource/php-5.2.0/include -I/export/sunsource/php-5.2.0/main -I/export/sunso urce/php-5.2.0 -I/usr/local/include/libxml2 -I/usr/sfw/include -I/export/sunsour ce/php-5.2.0/ext/date/lib -I/usr/local/include/mysql -I/export/sunsource/php-5.2 .0/TSRM -I/export/sunsource/php-5.2.0/Zend -D_POSIX_PTHREAD_SEMANTICS -I/usr/l ocal/include -g -O2 -c main/internal_functions_cli.c -o main/internal_function s_cli.lo /bin/sh /export/sunsource/php-5.2.0/libtool --silent --preserve-dup-deps --mode= link gcc -export-dynamic -I/usr/local/include -g -O2 -L/usr/ucblib -L/usr/local /lib/gcc/sparc-sun-solaris2.10/3.4.6 -L/usr/local/lib -L/usr/sfw/lib -L/usr/loca l/lib/mysql -L/usr/local/ssl/lib -R /usr/ucblib -R /usr/local/lib/gcc/sparc-sun -solaris2.10/3.4.6 -R /usr/local/lib -R /usr/sfw/lib -R /usr/local/lib/mysql -R /usr/local/ssl/lib ext/libxml/libxml.lo ext/openssl/openssl.lo ext/openssl/xp_ss l.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucp_searchfuncs.l o ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcre lib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_info.lo ext/pcre/pcrelib/ pcre_maketables.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refco unt.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/p crelib/pcre_try_flipped.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/ pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/zlib/zl ib.lo ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/ctype/ctype.lo ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/pars e_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixt ime.lo ext/date/lib/unixtime2tm.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/do cument.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexcepti on.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection. lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo e xt/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documen ttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplem entationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.l o ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlo cator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callb ack_filter.lo ext/ftp/php_ftp.lo ext/ftp/ftp.lo ext/hash/hash.lo ext/hash/hash_m d.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/has h/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whir lpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/iconv/iconv.lo ext/ json/json.lo ext/json/utf8_to_utf16.lo ext/json/utf8_decode.lo ext/json/JSON_par ser.lo ext/mysql/php_mysql.lo ext/mysqli/mysqli.lo ext/mysqli/mysqli_api.lo ext/ mysqli/mysqli_prop.lo ext/mysqli/mysqli_nonapi.lo ext/mysqli/mysqli_fe.lo ext/my sqli/mysqli_report.lo ext/mysqli/mysqli_repl.lo ext/mysqli/mysqli_driver.lo ext/ mysqli/mysqli_warning.lo ext/mysqli/mysqli_exception.lo ext/mysqli/mysqli_embedd ed.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_pars er.lo ext/pdo/pdo_sqlstate.lo ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite _driver.lo ext/pdo_sqlite/sqlite_statement.lo ext/pdo_sqlite/sqlite/src/attach.l o ext/pdo_sqlite/sqlite/src/auth.lo ext/pdo_sqlite/sqlite/src/btree.lo ext/pdo_s qlite/sqlite/src/build.lo ext/pdo_sqlite/sqlite/src/callback.lo ext/pdo_sqlite/s qlite/src/date.lo ext/pdo_sqlite/sqlite/src/delete.lo ext/pdo_sqlite/sqlite/src/ expr.lo ext/pdo_sqlite/sqlite/src/func.lo ext/pdo_sqlite/sqlite/src/hash.lo ext/ pdo_sqlite/sqlite/src/insert.lo ext/pdo_sqlite/sqlite/src/legacy.lo ext/pdo_sqli te/sqlite/src/main.lo ext/pdo_sqlite/sqlite/src/os_unix.lo ext/pdo_sqlite/sqlite /src/os_win.lo ext/pdo_sqlite/sqlite/src/os.lo ext/pdo_sqlite/sqlite/src/pager.l o ext/pdo_sqlite/sqlite/src/pragma.lo ext/pdo_sqlite/sqlite/src/prepare.lo ext/p do_sqlite/sqlite/src/printf.lo ext/pdo_sqlite/sqlite/src/random.lo ext/pdo_sqlit e/sqlite/src/select.lo ext/pdo_sqlite/sqlite/src/table.lo ext/pdo_sqlite/sqlite/ src/tokenize.lo ext/pdo_sqlite/sqlite/src/analyze.lo ext/pdo_sqlite/sqlite/src/c omplete.lo ext/pdo_sqlite/sqlite/src/trigger.lo ext/pdo_sqlite/sqlite/src/update .lo ext/pdo_sqlite/sqlite/src/utf.lo ext/pdo_sqlite/sqlite/src/util.lo ext/pdo_s qlite/sqlite/src/vacuum.lo ext/pdo_sqlite/sqlite/src/vdbeapi.lo ext/pdo_sqlite/s qlite/src/vdbeaux.lo ext/pdo_sqlite/sqlite/src/vdbe.lo ext/pdo_sqlite/sqlite/src /vdbemem.lo ext/pdo_sqlite/sqlite/src/where.lo ext/pdo_sqlite/sqlite/src/parse.l o ext/pdo_sqlite/sqlite/src/opcodes.lo ext/pdo_sqlite/sqlite/src/alter.lo ext/pd o_sqlite/sqlite/src/vdbefifo.lo ext/pdo_sqlite/sqlite/src/vtab.lo ext/pdo_sqlite /sqlite/src/loadext.lo ext/posix/posix.lo ext/reflection/php_reflection.lo ext/s ession/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod _user.lo ext/simplexml/simplexml.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_ directory.lo ext/spl/spl_sxe.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.l o ext/sqlite/sqlite.lo ext/sqlite/sess_sqlite.lo ext/sqlite/pdo_sqlite2.lo ext/s qlite/libsqlite/src/opcodes.lo ext/sqlite/libsqlite/src/parse.lo ext/sqlite/libs qlite/src/encode.lo ext/sqlite/libsqlite/src/auth.lo ext/sqlite/libsqlite/src/bt ree.lo ext/sqlite/libsqlite/src/build.lo ext/sqlite/libsqlite/src/delete.lo ext/ sqlite/libsqlite/src/expr.lo ext/sqlite/libsqlite/src/func.lo ext/sqlite/libsqli te/src/hash.lo ext/sqlite/libsqlite/src/insert.lo ext/sqlite/libsqlite/src/main. lo ext/sqlite/libsqlite/src/os.lo ext/sqlite/libsqlite/src/pager.lo ext/sqlite/l ibsqlite/src/printf.lo ext/sqlite/libsqlite/src/random.lo ext/sqlite/libsqlite/s rc/select.lo ext/sqlite/libsqlite/src/table.lo ext/sqlite/libsqlite/src/tokenize .lo ext/sqlite/libsqlite/src/update.lo ext/sqlite/libsqlite/src/util.lo ext/sqli te/libsqlite/src/vdbe.lo ext/sqlite/libsqlite/src/attach.lo ext/sqlite/libsqlite /src/btree_rb.lo ext/sqlite/libsqlite/src/pragma.lo ext/sqlite/libsqlite/src/vac uum.lo ext/sqlite/libsqlite/src/copy.lo ext/sqlite/libsqlite/src/vdbeaux.lo ext/ sqlite/libsqlite/src/date.lo ext/sqlite/libsqlite/src/where.lo ext/sqlite/libsql ite/src/trigger.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/reg free.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_function s.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/st andard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/ dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard /filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/st andard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link. lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/me taphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo. lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/stand ard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog. lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/ url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/asser t.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomple te_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext /standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/c redits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok .lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo e xt/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ex t/standard/http.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/compat.lo e xt/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo TSRM/TSRM.lo TSRM/t srm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/sppr intf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca .lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_co ntent_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy .lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_tempor ary_file.lo main/php_logos.lo main/output.lo main/streams/streams.lo main/stream s/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapp er.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socke t.lo main/streams/mmap.lo Zend/zend_language_parser.lo Zend/zend_language_scanne r.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/ze nd_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execut e_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend _operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Z end/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend _list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_ex ceptions.lo Zend/zend_strtod.lo Zend/zend_objects.lo Zend/zend_object_handlers.l o Zend/zend_objects_API.lo Zend/zend_mm.lo Zend/zend_default_classes.lo Zend/zen d_execute.lo sapi/cli/php_cli.lo sapi/cli/php_cli_readline.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lrt -lmysqlclient -liconv -lz -lresolv -lm -lns l -lsocket -lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl -lssl -lcrypto -lsocket - lnsl -ldl -lxml2 -lz -liconv -lm -lsocket -lnsl -lssl -lcrypto -lsocket -lnsl -l dl -lmysqlclient -lz -lposix4 -lgen -lsocket -lnsl -lm -lssl -lcrypto -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -li conv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -o sapi/cli/php Undefined first referenced symbol in file mysql_stmt_param_count ext/mysqli/.libs/mysqli_api.o mysql_set_character_set ext/mysqli/.libs/mysqli_nonapi.o mysql_stmt_send_long_data ext/mysqli/.libs/mysqli_api.o mysql_stmt_data_seek ext/mysqli/.libs/mysqli_api.o mysql_stmt_insert_id ext/mysqli/.libs/mysqli_api.o mysql_stmt_store_result ext/mysqli/.libs/mysqli_api.o mysql_stmt_reset ext/mysqli/.libs/mysqli_api.o mysql_stmt_close ext/mysqli/.libs/mysqli.o mysql_stmt_fetch ext/mysqli/.libs/mysqli_api.o mysql_stmt_error ext/mysqli/.libs/mysqli_api.o mysql_stmt_errno ext/mysqli/.libs/mysqli_api.o mysql_commit ext/mysqli/.libs/mysqli_api.o mysql_get_server_version ext/mysqli/.libs/mysqli_api.o mysql_stmt_attr_set ext/mysqli/.libs/mysqli_api.o mysql_stmt_attr_get ext/mysqli/.libs/mysqli_api.o mysql_next_result ext/mysqli/.libs/mysqli_api.o mysql_stmt_free_result ext/mysqli/.libs/mysqli_api.o mysql_stmt_bind_result ext/mysqli/.libs/mysqli_api.o mysql_stmt_num_rows ext/mysqli/.libs/mysqli_api.o mysql_warning_count ext/mysqli/.libs/mysqli_api.o mysql_stmt_prepare ext/mysqli/.libs/mysqli.o mysql_rollback ext/mysqli/.libs/mysqli_api.o mysql_stmt_bind_param ext/mysqli/.libs/mysqli_api.o mysql_sqlstate ext/mysqli/.libs/mysqli_api.o mysql_stmt_sqlstate ext/mysqli/.libs/mysqli_api.o mysql_get_character_set_info ext/mysqli/.libs/mysqli_nonapi.o mysql_more_results ext/mysqli/.libs/mysqli_api.o mysql_stmt_field_count ext/mysqli/.libs/mysqli_api.o mysql_get_client_version ext/mysqli/.libs/mysqli_api.o mysql_stmt_execute ext/mysqli/.libs/mysqli_api.o mysql_stmt_affected_rows ext/mysqli/.libs/mysqli_api.o mysql_stmt_result_metadata ext/mysqli/.libs/mysqli_api.o mysql_autocommit ext/mysqli/.libs/mysqli_api.o mysql_stmt_init ext/mysqli/.libs/mysqli.o mysql_set_local_infile_handler ext/mysqli/.libs/mysqli.o mysql_set_server_option ext/mysqli/.libs/mysqli_api.o ld: fatal: Symbol referencing errors. No output written to sapi/cli/php collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 Previous Comments: ------------------------------------------------------------------------ [2007-02-06 00:13:33] [EMAIL PROTECTED] The error message states that v4 libraries are used instead of v5 (ext/mysql compiles/works fine because it does not user these new functions used in ext/mysqli). Try to specify full path to mysql_config in --with-mysqli or move v5 libraries to some other place, so they won't be mixed with v4. ------------------------------------------------------------------------ [2007-02-06 00:05:15] sjohns at nerfarena dot org The reason for the duplication of the mysql libraries is that Solaris includes a v4 but I need V5 and have installed these. However I was prevented from immediately removing the old version since there are some apps which are linked to these old libraries. None the less, the path that I passed to configure is for the v5 mysql libraries so I don't see why this should be a problem. ------------------------------------------------------------------------ [2007-02-05 22:43:19] [EMAIL PROTECTED] See my previous comment =) ------------------------------------------------------------------------ [2007-02-05 22:39:51] sjohns at nerfarena dot org My suspicion was correct, it will build if I do not enable mysqli support. ------------------------------------------------------------------------ [2007-02-05 22:39:09] [EMAIL PROTECTED] You have some mess with mysql libraries in your system Some of them are in /usr/local/mysq/lib, the others are in in /usr/local/lib/mysql. For some reason there are two xml2-config's and probably two libxml2.so etc. So it looks to me that the linking problems are not PHP issues. Feel free to reopen the report, though, if you have some more information about it (or if you make the machine to run a bit faster - waiting for PHP build for 3 hours is a _pain_). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/40310 -- Edit this bug report at http://bugs.php.net/?id=40310&edit=1
