Skip to Content.
Sympa Menu

freetds - [freetds] Configuring PHP with MySQL on Mac OS X

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: John Nichel <john AT kegworks.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] Configuring PHP with MySQL on Mac OS X
  • Date: Wed, 31 Mar 2004 13:20:02 -0500

Hi. I'm trying to configure php 4.3.5 with MySQL 4.0.15 on a Mac OS X (10.3.1) box and am running into a bit of a problem. When I run configure, I get this...

checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking size of char... 0
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... 0
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for uid_t in sys/types.h... (cached) yes
checking for type ulong... no
checking for type uchar... no
checking for type uint... no
checking for type ushort... no
checking for int8... no
checking base type of last arg to accept... socklen_t
checking return type of qsort... 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.

config.log contains this....

configure:56042: checking for mysql_close in -lmysqlclient
configure:56061: gcc -o conftest -g -O2 -no-cpp-precomp -L/Library/MySQL/lib/my
sql -L/Library/MySQL/lib/mysql -L/usr/local/php/lib -L/usr/local/php/lib -L/sw/
lib -L/sw/lib conftest.c -lmysqlclient -lsybdb -lmhash -lmcrypt -lltdl -lldap -
llber -liconv -lintl -lt1 -lfreetype -lpng -lz -ljpeg -lexslt -lxsltbreakpoint -
lxml2 -lxslt -lz -lcurl -lz -lssl -lcrypto -lm -lcurl -lz -lssl -lcrypto -lz -l
xml2 -lz -lm 1>&5
ld: table of contents for archive: /usr/local/php/lib/libsybdb.a is out of date;
rerun ranlib(1) (can't load from it)
configure: failed program was:
#line 56050 "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:56266: checking for mysql_error in -lmysqlclient
configure:56285: gcc -o conftest -g -O2 -no-cpp-precomp -L/Library/MySQL/lib/my
sql -L/Library/MySQL/lib/mysql -L/usr/local/php/lib -L/usr/local/php/lib -L/sw/
lib -L/sw/lib -L/usr -L/usr conftest.c -lmysqlclient -lz -lsybdb -lmhash -lmcry
pt -lltdl -lldap -llber -liconv -lintl -lt1 -lfreetype -lpng -lz -ljpeg -lexslt
-lxsltbreakpoint -lxml2 -lxslt -lz -lcurl -lz -lssl -lcrypto -lm -lcurl -lz -ls
sl -lcrypto -lz -lxml2 -lz -lm 1>&5
ld: table of contents for archive: /usr/local/php/lib/libsybdb.a is out of date;
rerun ranlib(1) (can't load from it)
configure: failed program was:
#line 56274 "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; }

I've tried to update libsybdb.a by installing the latest version of FreeTDS, but get this when trying to build FreeTDS....

./.libs/libtds_objects.a(data.o) definition of _tds_set_param_type in section (__TEXT,__text)
make[3]: *** [libtds.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

I installed the latest version of libtool just prior to trying to build FreeTDS. Can anyone shed some light on this? Thank you.




Archive powered by MHonArc 2.6.24.

Top of Page