Results 1 to 2 of 2
  1. #1


    Member Since
    Feb 19, 2009
    Posts
    1
    Error while compiling php
    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

  2. #2

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,549
    Specs:
    21in. iMac 10.11 --- HP win 10
    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.
    Delusions are often functional. A motherís opinions about her childrenís beauty, intelligence, goodness, et cetera ad nauseam, keep her from drowning them at birth.
    -Lazarus Long

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Build type error compiling wine
    By ehitam in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 11-18-2012, 07:37 AM
  2. Error when compiling artoolkit simplevrml
    By rubinho in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 03-07-2012, 01:29 PM
  3. Error Compiling Dolphin
    By Gravey in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 03-17-2011, 10:51 AM
  4. Apache PHP Error Handlers
    By vtupser in forum Web Design and Hosting
    Replies: 4
    Last Post: 04-15-2005, 01:37 AM
  5. Setting up PHP and PHP Nuke
    By EvoMac in forum Web Design and Hosting
    Replies: 2
    Last Post: 02-18-2005, 12:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •