New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Error while compiling php


Post Reply New Thread Subscribe

 
Thread Tools
gshockoman

 
Member Since: Feb 19, 2009
Posts: 1
gshockoman is on a distinguished road

gshockoman is offline
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
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,394
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
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.

Craig Domingue - resident redneck.
“Never argue with an idiot. He will only bring you down to his level and beat you with experience.”, George Carlin
QUOTE Thanks

Post Reply New Thread Subscribe


« Xcode and dylib problem | How to write a program on a Mac »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Apache works, but PHP will not Mac4Work Web Design and Hosting 5 12-23-2008 12:07 PM
php won't send to email? reholmes OS X - Development and Darwin 0 07-16-2007 05:13 AM
PHP email form won't work reholmes OS X - Operating System 0 07-15-2007 04:39 PM
my local host and php are not playing nice? este Web Design and Hosting 2 07-26-2005 07:08 PM
Setting up PHP and PHP Nuke EvoMac Web Design and Hosting 2 02-18-2005 01:38 PM

All times are GMT -4. The time now is 10:40 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?