This appears to be a problem with the 'mysqlclient' and the fact that the PHP configure script does not either understand something new in 'mysqlclient' or PHP 4.3.8 just isn't compatable with MySQL 4.0.20.
Does anyone have a way of getting this to work?
TIA,
Chad.
When attempting to run configure for PHP 4.3.8 as:
./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs
I get the following error:
checking for type ushort... (cached) yes
checking for int8... (cached) no
checking base type of last arg to accept... (cached) socklen_t
checking return type of qsort... (cached) void
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
And in config.log I have:
configure:52508: checking for mSQL support
configure:52947: checking for MSSQL support via FreeTDS
configure:53561: checking for MySQL support
configure:53607: checking for specified location of the MySQL UNIX socket
configure:53664: checking for MySQL UNIX socket location
configure:55286: checking size of char
configure:55326: checking size of int
configure:55365: checking size of long
configure:55404: checking size of long long
configure:55443: checking for size_t
configure:55476: checking whether time.h and sys/time.h may both be included
configure:55511: checking for uid_t in sys/types.h
configure:55546: checking for type ulong
configure:55589: checking for type uchar
configure:55632: checking for type uint
configure:55675: checking for type ushort
configure:55718: checking for int8
configure:55774: checking base type of last arg to accept
configure:55851: checking return type of qsort
configure:56221: checking for mysql_close in -lmysqlclient
configure:56240: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/local/mysql/lib -L/usr/local/mysql/lib -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1 -L/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1 conftest.c -lmysqlclient -lz -lresolv -lm -ldl -lnsl -lsocket -lgcc 1>&5
ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64
Undefined first referenced
symbol in file
mysql_close /var/tmp//ccWoOvyb.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 56229 "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:56445: checking for mysql_error in -lmysqlclient
configure:56464: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/local/mysql/lib -L/usr/local/mysql/lib -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1 -L/usr/local/mysql/lib -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1 -L/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.1 -R/usr -L/usr conftest.c -lmysqlclient -lz -lz -lresolv -lm -ldl -lnsl -lsocket -lgcc 1>&5
ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64
Undefined first referenced
symbol in file
mysql_error /var/tmp//cc4LMGjA.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 56453 "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; }