MySQL Forums
Forum List  »  Connector/Python

Re: MySQL Connector/Python: MySQLdb to work on OSX 10.6
Posted by: Paul Morel
Date: September 22, 2009 11:39PM

OK...I have an update. No luck yet but I'm getting a hard failure which I can't seem to resolve. I'd appreciate any insight into this. Running OSX 10.6, Python 2.6.2, and trying to build MySQLdb 1.2.3c1. I started with the normal setup.py route but the gcc statement was referencing the 10.4u SDK. I've restored the 10.4u SDK and tried the build again but I get the same error. So I modified the gcc command to remove the -arch ppc and the use of the 10.4u SDK. I also modified the output destination to reflect Snow Leopard 10.6 versus the 10.3 specified.

This is the original gcc:

gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info=(1,2,3,'gamma',1) -D__version__=1.2.3c1 -I/opt/local/include/mysql5/mysql -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _mysql.c -o build/temp.macosx-10.3-fat-2.6/_mysql.o -arch x86_64 -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT

This is the modified gcc:

sudo gcc -isysroot /Developer/SDKs/MacOSX10.6.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info="(1,2,3,'gamma',1)" -D__version__=1.2.3c1 -I/Applications/xampp/xamppfiles/include/mysql -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _mysql.c -o build/temp.macosx-10.6-fat-2.6/_mysql.so -arch i386 -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT

This is the resulting output:

In file included from _mysql.c:36:
/opt/local/include/mysql5/mysql/my_config.h:1060:1: warning: "SIZEOF_LONG" redefined
In file included from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:9,
from pymemcompat.h:10,
from _mysql.c:29:
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pymacconfig.h:46:1: warning: this is the location of the previous definition
/var/tmp//ccuwwAE5.s:unknown:FATAL:can't create output file: build/temp.macosx-10.6-fat-2.6/_mysql.so


Thanks in advance...



Edited 2 time(s). Last edit at 09/23/2009 09:58AM by Paul Morel.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL Connector/Python: MySQLdb to work on OSX 10.6
September 22, 2009 11:39PM
September 23, 2009 01:01PM
September 24, 2009 01:21AM
September 24, 2009 12:20PM
October 17, 2009 10:34AM


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.