Ralf S. Engelschall wrote:
On Fri, Nov 27, 2009, Victor G. Bolshakov wrote:Hello, I try to build latest php (php-5.3.1-20091121.src.rpm) with latest mysql (mysql-5.1.41-20091121.src.rpm) on Solaris 10 and got this: checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... /openpkg/var/mysql/mysql.sock checking for MySQL UNIX socket location... /openpkg/var/mysql/mysql.sock checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no end of config.log: configure:59006: checking for mysql_close in -lmysqlclient configure:59025: /openpkg/bin/cc -o conftest -fvisibility=hidden -I/openpkg/include -D_POSIX_PTHREAD_SEMANTICS -R/openpkg/lib/mysql -L/openpkg/lib/mysql -L/openpkg/lib -R/usr/ucblib -L/usr/ucblib -R/openpkg/lib/gcc/sparc-sun-solaris2.10/4.2.4 -L/openpkg/lib/gcc/sparc-sun-solaris2.10/4.2.4 -R/openpkg/lib -L/openpkg/lib conftest.c -lmysqlclient -lz -lpcre -lm -lsocket -lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5 /openpkg/lib/mysql/libmysqlclient.a(my_sync.o): In function `my_sync': my_sync.c:(.text+0x1c): undefined reference to `fdatasync' collect2: ld returned 1 exit status configure: failed program was: #line 59014 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_close();Well, yes, fdatasync(3) is part of librt under Solaris. And PHP seems to not know that it has to link against librt in case of linking against libmysqlclient. We can apply a workaround to the "php" package, but the error actually is that MySQL does not announce that it requires librt or that PHP does not use mysql_config. Can you show me the output of the following command on your platform: $ /openpkg/bin/mysql_config --libs
open...@alpha$ /openpkg/bin/mysql_config --libs -L/openpkg/lib -L/openpkg/lib/mysql -lmysqlclient -lmysys -L/openpkg/lib -lz -lposix4 -lsocket -lnsl -lm -lz ______________________________________________________________________ OpenPKG http://openpkg.org User Communication List [email protected]
