Building mysql client on Mac
Posted by: Todd Baker
Date: February 09, 2011 09:31AM

Hi There,

I am trying to build a mysqlclient application and I haven't been able to use XTools to compile without getting a boatlaod of errors, but after using xcodebuild I was able to compile/link without link erros for the mysql calls. Now however I am getting an error that I am unsure about and wondered if anyone knows what this means. Output is below:...

Ld "build/ Static/" normal i386
cd /Users/bakert/audacity-1.3.13-alpha/mac
/Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk "-L/Users/bakert/audacity-1.3.13-alpha/mac/build/Debug Static" -L/Developer/SDKs/MacOSX10.5.sdk/usr/local/lib/mysql "-L/Users/bakert/audacity-1.3.13-alpha/mac/build/Debug Static" "-F/Users/bakert/audacity-1.3.13-alpha/mac/build/Debug Static" -filelist "/Users/bakert/audacity-1.3.13-alpha/mac/build/ Static/" -mmacosx-version-min=10.5 -keep_private_externs -L/usr/local/lib /usr/local/lib/libwx_macud_xrc-2.8.a /usr/local/lib/libwx_macud_qa-2.8.a /usr/local/lib/libwx_macud_html-2.8.a /usr/local/lib/libwx_macud_adv-2.8.a /usr/local/lib/libwx_macud_core-2.8.a /usr/local/lib/libwx_base_carbonud_xml-2.8.a /usr/local/lib/libwx_base_carbonud_net-2.8.a /usr/local/lib/libwx_base_carbonud-2.8.a /usr/local/lib/libwxregexud-2.8.a /usr/local/lib/libwxexpatd-2.8.a /usr/local/lib/libwxtiffd-2.8.a /usr/local/lib/libwxjpegd-2.8.a /usr/local/lib/libwxpngd-2.8.a /usr/local/lib/mysql -framework OpenGL -framework QuickTime -framework IOKit -framework Carbon -framework Cocoa -framework System -framework WebKit -framework CoreAudio -framework CoreMIDI -framework AudioUnit -framework AudioToolbox -lz -lpthread -liconv -lFLAC++ -lFLAC -lvorbis -lportsmf -lid3tag -lmad -lnyquist -logg -lportmixer -lresample -lsndfile -lsoundtouch -lFLAC++ -lFLAC -lportaudio -ltwolame -lvamp -lscorealign -llibsbsms -lportmidi -prebind -o "/Users/bakert/audacity-1.3.13-alpha/mac/build/ Static/"

ld: in /Developer/SDKs/MacOSX10.5.sdk/usr/local/lib/mysql, can't map file, errno=22
collect2: ld returned 1 exit status
Command /Developer/usr/bin/g++-4.0 failed with exit code 1
Command /Developer/usr/bin/g++-4.0 failed with exit code 1

Any idea what is going on here? I have tried with different MacOSX sdk's (10.4 ,10.6 - but they give different errors..)


Todd Baker

Options: ReplyQuote

Written By
Building mysql client on Mac
February 09, 2011 09:31AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.