Results 1 to 2 of 2
Thread: Error while compiling php
-
02-19-2009, 10:08 AM #1
- Member Since
- Feb 19, 2009
- Posts
- 1
Error while compiling phpHello.
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; }
Anybody knows what's going on ?
Thanx
-
02-19-2009, 10:44 PM #2
- Member Since
- Feb 14, 2004
- Location
- Groves, Texas
- Posts
- 4,778
- Specs:
- 21in. iMac 10.11 --- HP Linux Mint 18
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.Any priest or shaman must be presumed guilty until proved innocent.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Build type error compiling wine
By ehitam in forum macOS - Development and DarwinReplies: 1Last Post: 11-18-2012, 07:37 AM -
Error when compiling artoolkit simplevrml
By rubinho in forum macOS - Development and DarwinReplies: 0Last Post: 03-07-2012, 01:29 PM -
Error Compiling Dolphin
By Gravey in forum macOS - Development and DarwinReplies: 0Last Post: 03-17-2011, 10:51 AM -
Apache PHP Error Handlers
By vtupser in forum Web Design and HostingReplies: 4Last Post: 04-15-2005, 01:37 AM -
Setting up PHP and PHP Nuke
By EvoMac in forum Web Design and HostingReplies: 2Last Post: 02-18-2005, 12:38 PM