php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40310 Compile fails in /main/reentrancy.c too many arguments to function
Submitted: 2007-02-01 22:16 UTC Modified: 2007-02-07 06:37 UTC
From: sjohns at nerfarena dot org Assigned: tony2001 (profile)
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.0 OS: Solaris/SPARC V10
Private report: No CVE-ID: None
 [2007-02-01 22:16 UTC] sjohns at nerfarena dot org
Description:
------------
Compile fails in functions php_ctime_r, php_asctime_r, php_readdir_r too many/too few arguments


Reproduce code:
---------------
Compile using GCC v3.4.6


./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--enable-libgcc \
--with-openssl=yes \
--with-openssl-dir=/usr/local/ssl \
--with-jpeg-dir=/usr/lib \ 
--with-png-dir=/usr/lib \
--with-freetype-dir=/usr/local/lib \
--with-xpm-dir=/usr/lib
--with-mysql-sock=/tmp/mysql.sock \
--enable-ftp \
--with-mysql \
--with-mysql=/usr/local/mysql \
--with-mysqli \
--with-zlib=/usr/include \
--with-zlib \
--disable-ipv6

Expected result:
----------------
Successful compilation.

Actual result:
--------------
/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/mysql/include/mysql
-I/export/sunsource/p
hp-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/main/reentrancy.c -o
main/reentrancy.lo
/export/sunsource/php-5.2.0/main/reentrancy.c: In function `php_ctime_r':
/export/sunsource/php-5.2.0/main/reentrancy.c:67: error: too many arguments to
f
unction `ctime_r'
/export/sunsource/php-5.2.0/main/reentrancy.c: In function `php_asctime_r':
/export/sunsource/php-5.2.0/main/reentrancy.c:74: error: too many arguments to
f
unction `asctime_r'
/export/sunsource/php-5.2.0/main/reentrancy.c: In function `:
/export/sunsource/php-5.2.0/main/reentrancy.c:143: error: too few arguments to
f
unction `readdir_r'
make: *** [main/reentrancy.lo] Error 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-01 22:19 UTC] tony2001@php.net
Is it possible to get an unprivileged account on this machine?

 [2007-02-02 16:09 UTC] sjohns at nerfarena dot org
Hi Tony,

I have setup the account you requested. It can be reached via ssh only.

ssh phpsupport@ns1.nerfarena.org

password: f0RpHP2@

The php source is located at /export/sunsource/php-5.2.0

Regards,

Steve Johns
 [2007-02-02 18:25 UTC] tony2001@php.net
`man actime_r`
char *asctime_r(const struct tm *restrict tm, char *restrict
buf, int buflen);

This is what Solaris documentation says (and PHP uses the same number of arguments).

Also, is it possible to fix the build utils, so I can test the build?
$ make
make: not found

 [2007-02-03 00:41 UTC] sjohns at nerfarena dot org
Hi Tony,

I have duplicated the environment for your login that I used when attempting the build.

Cheers,

Steve Johns
 [2007-02-05 15:53 UTC] tony2001@php.net
Did you copy the sources from some other machine or did you build it on this very machine?
Cos with clean sources from php.net (or after removing config.cache) I can't see any problems there.

 [2007-02-05 19:28 UTC] sjohns at nerfarena dot org
Are you sure that you used the same configuration flags that I did? The source files that I used were downloaded from PHP.net and not moved from from some other machine. However, just to prove the point I deleted the old source files and downloaded them again. The build fails at the same point that it did before, however it is now complaining about symbol referencing errors:

/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/mysql/lib -L/usr/local/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/mysql/lib -R /usr/local/lib/mysql -R /usr/local/ssl/lib ext/libxml/lib
xml.lo ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_charta
bles.lo ext/pcre/pcrelib/pcre_ucp_searchfuncs.lo ext/pcre/pcrelib/pcre_compile.l
o ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/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/pcrel
ib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_stud
y.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_try_flipped.lo ext/pc
re/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/
pcre_xclass.lo ext/pcre/php_pcre.lo ext/zlib/zlib.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/parse_date.lo ext/date/lib/parse_tz.l
o ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.l
o ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler
.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom
/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ex
t/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_ext
end.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementatio
nlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.l
o ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityr
eference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/do
m/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.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/callback_filter.lo ext/ftp/php_ftp.lo
ext/ftp/ftp.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/has
h/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gos
t.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo
 ext/hash/hash_crc32.lo ext/iconv/iconv.lo ext/json/json.lo ext/json/utf8_to_utf
16.lo ext/json/utf8_decode.lo ext/json/JSON_parser.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/mysqli/mysqli_report.lo ext/mysqli/
mysqli_repl.lo ext/mysqli/mysqli_driver.lo ext/mysqli/mysqli_warning.lo ext/mysq
li/mysqli_exception.lo ext/mysqli/mysqli_embedded.lo ext/pdo/pdo.lo ext/pdo/pdo_
dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.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.lo ext/pdo_sqlite/sqlite/src/auth.
lo ext/pdo_sqlite/sqlite/src/btree.lo ext/pdo_sqlite/sqlite/src/build.lo ext/pdo
_sqlite/sqlite/src/callback.lo ext/pdo_sqlite/sqlite/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 e
xt/pdo_sqlite/sqlite/src/legacy.lo ext/pdo_sqlite/sqlite/src/main.lo ext/pdo_sql
ite/sqlite/src/os_unix.lo ext/pdo_sqlite/sqlite/src/os_win.lo ext/pdo_sqlite/sql
ite/src/os.lo ext/pdo_sqlite/sqlite/src/pager.lo ext/pdo_sqlite/sqlite/src/pragm
a.lo ext/pdo_sqlite/sqlite/src/prepare.lo ext/pdo_sqlite/sqlite/src/printf.lo ex
t/pdo_sqlite/sqlite/src/random.lo ext/pdo_sqlite/sqlite/src/select.lo ext/pdo_sq
lite/sqlite/src/table.lo ext/pdo_sqlite/sqlite/src/tokenize.lo ext/pdo_sqlite/sq
lite/src/analyze.lo ext/pdo_sqlite/sqlite/src/complete.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_sqlite/sqlite/src/vacuum.lo ext/pd
o_sqlite/sqlite/src/vdbeapi.lo ext/pdo_sqlite/sqlite/src/vdbeaux.lo ext/pdo_sqli
te/sqlite/src/vdbe.lo ext/pdo_sqlite/sqlite/src/vdbemem.lo ext/pdo_sqlite/sqlite
/src/where.lo ext/pdo_sqlite/sqlite/src/parse.lo ext/pdo_sqlite/sqlite/src/opcod
es.lo ext/pdo_sqlite/sqlite/src/alter.lo ext/pdo_sqlite/sqlite/src/vdbefifo.lo e
xt/pdo_sqlite/sqlite/src/vtab.lo ext/pdo_sqlite/sqlite/src/loadext.lo ext/posix/
posix.lo ext/reflection/php_reflection.lo ext/session/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 e
xt/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/sqlite/sqlite.lo ext/sqlite
/sess_sqlite.lo ext/sqlite/pdo_sqlite2.lo ext/sqlite/libsqlite/src/opcodes.lo ex
t/sqlite/libsqlite/src/parse.lo ext/sqlite/libsqlite/src/encode.lo ext/sqlite/li
bsqlite/src/auth.lo ext/sqlite/libsqlite/src/btree.lo ext/sqlite/libsqlite/src/b
uild.lo ext/sqlite/libsqlite/src/delete.lo ext/sqlite/libsqlite/src/expr.lo ext/
sqlite/libsqlite/src/func.lo ext/sqlite/libsqlite/src/hash.lo ext/sqlite/libsqli
te/src/insert.lo ext/sqlite/libsqlite/src/main.lo ext/sqlite/libsqlite/src/os.lo
 ext/sqlite/libsqlite/src/pager.lo ext/sqlite/libsqlite/src/printf.lo ext/sqlite
/libsqlite/src/random.lo ext/sqlite/libsqlite/src/select.lo ext/sqlite/libsqlite
/src/table.lo ext/sqlite/libsqlite/src/tokenize.lo ext/sqlite/libsqlite/src/upda
te.lo ext/sqlite/libsqlite/src/util.lo ext/sqlite/libsqlite/src/vdbe.lo ext/sqli
te/libsqlite/src/attach.lo ext/sqlite/libsqlite/src/btree_rb.lo ext/sqlite/libsq
lite/src/pragma.lo ext/sqlite/libsqlite/src/vacuum.lo ext/sqlite/libsqlite/src/c
opy.lo ext/sqlite/libsqlite/src/vdbeaux.lo ext/sqlite/libsqlite/src/date.lo ext/
sqlite/libsqlite/src/where.lo ext/sqlite/libsqlite/src/trigger.lo regex/regcomp.
lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo ext
/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext
/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standar
d/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/sta
ndard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_c
ompat.lo ext/standard/formatted_print.lo ext/standard/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/stand
ard/math.lo ext/standard/md5.lo ext/standard/metaphone.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/standard/soundex.lo ext/standard/strin
g.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/stand
ard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.l
o ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ex
t/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scan
ner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo e
xt/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext
/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/stan
dard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standa
rd/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/tokenizer/
tokenizer.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext
/xmlwriter/php_xmlwriter.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual
_cwd.lo main/main.lo main/snprintf.lo main/spprintf.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_content_types.lo main/strlcpy.lo ma
in/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/ph
p_ticks.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo mai
n/output.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo
main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo m
ain/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo Zend/ze
nd_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend
/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants
.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Z
end/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack
.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/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_it
erators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Z
end/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/z
end_mm.lo Zend/zend_default_classes.lo Zend/zend_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 -lnsl -lsocket -lgcc -lxml2 -lz -lico
nv -lm -lsocket -lnsl -lssl -lcrypto -lsocket -lnsl -ldl -lxml2 -lz -liconv -lm
-lsocket -lnsl -lssl -lcrypto -lsocket -lnsl -ldl -lmysqlclient -lz -lposix4 -lg
en -lsocket -lnsl -lm -lssl -lcrypto -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml
2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -l
z -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
#
 [2007-02-05 19:34 UTC] tony2001@php.net
>Are you sure that you used the same configuration flags that I did? 

I'm sure I used different options, because you were using just "./configure". That apparently would not work, because the libxml2 version available on this machine is lower than the required one.

>The build fails at the same point that it did before

"at the same point"?!
It's completely different point.

>however it is now complaining about symbol referencing errors:

Looks like a problem with libmysqlclient to me.
 [2007-02-05 19:47 UTC] sjohns at nerfarena dot org
>you were using just"./configure"??

As per the original bug report, my configuration is as below. This is considerably more than just running configure with no options.

./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--enable-libgcc \
--with-openssl=yes \
--with-openssl-dir=/usr/local/ssl \
--with-jpeg-dir=/usr/lib \ 
--with-png-dir=/usr/lib \
--with-freetype-dir=/usr/local/lib \
--with-xpm-dir=/usr/lib
--with-mysql-sock=/tmp/mysql.sock \
--enable-ftp \
--with-mysql \
--with-mysql=/usr/local/mysql \
--with-mysqli \
--with-zlib \
--with-zlib=/usr/include \
--disable-ipv6
 [2007-02-05 20:09 UTC] tony2001@php.net
But the config.nice file in php-5.2.0 contained just "./configure".

 [2007-02-05 21:28 UTC] sjohns at nerfarena dot org
Hi Tony,

I have no clue how that could have happened. I have never attempted to build without using the option flags that I have listed in the original bug report. Believe me, it won't build. Also, there appears to be nothing that I can do about libxml2 at the moment since the project website is down so I cannot obtain the source. I have a suspicion that the problem lies with enabling mysqli support, so I am attempting to build without enabling this option. So far the build looks good, and has already gone well past the point where it failed before. However, I need the new extensions that mysqli provides so I need a solution to this. Do you have any insite into what could be the problem?
 [2007-02-05 22:39 UTC] tony2001@php.net
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_).
 [2007-02-05 22:39 UTC] sjohns at nerfarena dot org
My suspicion was correct, it will build if I do not enable mysqli support.
 [2007-02-05 22:43 UTC] tony2001@php.net
See my previous comment =)
 [2007-02-06 00:05 UTC] 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-06 00:13 UTC] tony2001@php.net
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-07 06:37 UTC] sjohns at nerfarena dot org
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 13:01:32 2024 UTC