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();

int main() {
mysql_close()
; return 0; }
configure:59248: checking for mysql_error in -lmysqlclient
configure:59267: /openpkg/bin/cc -o conftest -fvisibility=hidden -I/openpkg/include -D_POSIX_PTHREAD_SEMANTICS -R/openpkg/lib/mysql -L/openpkg/lib/mysql -R/openpkg/lib -L/openpkg/lib -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 -R/openpkg -L/openpkg conftest.c -lmysqlclient -lz -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 59256 "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_error();

int main() {
mysql_error()
; return 0; }


But freeradius compiled just fine with mysql support...
______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to