Error while compiling php

Joined
Feb 19, 2009
Messages
1
Reaction score
0
Points
1
Hello.
I'm receiving the following output in config.log while trying to run a ./configure for php on Leopard (the configure command says "configure: error: mysql configure failed. Please check config.log for more information."):
Code:
configure:59985: checking for mysql_close in -lmysqlclient
configure:60004: gcc -o conftest -I/usr/include  -gstabs  -no-cpp-precomp -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/lib  -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lmysqlclient  -liconv -liconv -lpng -lz -lssl -lcrypto -lcurl -lz -lssl -lcrypto -lm  -lxml2 -lz -licucore -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -licucore -lm 1>&5
ld: warning in /usr/local/mysql/lib/libmysqlclient.dylib, file is not of required architecture
Undefined symbols:
  "_mysql_close", referenced from:
      _main in ccr5qPfh.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure: failed program was:
#line 59993 "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:60227: checking for mysql_error in -lmysqlclient
configure:60246: gcc -o conftest -I/usr/include  -gstabs  -no-cpp-precomp -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/lib  -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient  -lz -liconv -liconv -lpng -lz -lssl -lcrypto -lcurl -lz -lssl -lcrypto -lm  -lxml2 -lz -licucore -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -licucore -lm 1>&5
ld: warning in /usr/local/mysql/lib/libmysqlclient.dylib, file is not of required architecture
Undefined symbols:
  "_mysql_error", referenced from:
      _main in ccJ9z17C.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
configure: failed program was:
#line 60235 "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; }

Mac OS X 10.5.6, Intel Macbook 2.4


Anybody knows what's going on ?

Thanx
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Not an expert but this caught my eye: file is not of required architecture
I would check that .dylib file and see if it's for intel mac.

Also I've had "Undefined symbol" errors before but they never stopped the process.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top