Kamal Ahmed - 2011-02-28

When trying to compile on Mac OSX 10.6.4 i get an error regarding architecture

copying MySQLdb/times.copying MySQLdb/times.copying MySQLdb/times.copying
MySQLdb/times.copying MySQLdb/times.copying MySQLdb/times.copying
MySQLdb/times.copying MySQLdb/times.copying MySQLdb/times.copying
MySQLdb/times.copying MySQLdb/times.py ->
build/lib.macosx-10.5-i386-2.6/MySQLdb

creating build/lib.macosx-10.5-i386-2.6/MySQLdb/constants

copying MySQLdb/constants/init.py ->
build/lib.macosx-10.5-i386-2.6/MySQLdb/constants

copying MySQLdb/constants/CR.py ->
build/lib.macosx-10.5-i386-2.6/MySQLdb/constants

copying MySQLdb/constants/FIELD_TYPE.py ->
build/lib.macosx-10.5-i386-2.6/MySQLdb/constants

copying MySQLdb/constants/ER.py ->
build/lib.macosx-10.5-i386-2.6/MySQLdb/constants

copying MySQLdb/constants/FLAG.py ->
build/lib.macosx-10.5-i386-2.6/MySQLdb/constants

copying MySQLdb/constants/REFRESH.py ->
build/lib.macosx-10.5-i386-2.6/MySQLdb/constants

copying MySQLdb/constants/CLIENT.py ->
build/lib.macosx-10.5-i386-2.6/MySQLdb/constants

running build_ext

building '_mysql' extension

creating build/temp.macosx-10.5-i386-2.6

gcc -fno-strict-aliasing -fno-common -dynamic -arch i386 -isysroot
/Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -O3 -arch i386 -isysroot
/Developer/SDKs/MacOSX10.5.sdk
-I/Library/Frameworks/Python.framework/Versions/6.3/include
-Dversion_info=(1,2,3,'final',0) -Dversion=1.2.3
-I/usr/local/Cellar/mysql/5.1.51/include/mysql
-I/Library/Frameworks/Python.framework/Versions/6.3/include/python2.6 -c
_mysql.c -o build/temp.macosx-10.5-i386-2.6/_mysql.o -D_P1003_1B_VISIBLE
-DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT
-DDONT_DECLARE_CXA_PURE_VIRTUAL

In file included from _mysql.c:36:

/usr/local/Cellar/mysql/5.1.51/include/mysql/my_config.h:1062:1: warning:
"HAVE_WCSCOLL" redefined

In file included from /Library/Frameworks/Python.framework/Versions/6.3/includ
e/python2.6/Python.h:8,

from pymemcompat.h:10,

from _mysql.c:29:

/Library/Frameworks/Python.framework/Versions/6.3/include/python2.6/pyconfig.h
:808:1: warning: this is the location of the previous definition

In file included from _mysql.c:36:

/usr/local/Cellar/mysql/5.1.51/include/mysql/my_config.h:1180:1: warning:
"SIZEOF_LONG" redefined

In file included from /Library/Frameworks/Python.framework/Versions/6.3/includ
e/python2.6/Python.h:9,

from pymemcompat.h:10,

from _mysql.c:29:

/Library/Frameworks/Python.framework/Versions/6.3/include/python2.6/pymacconfi
g.h:46:1: warning: this is the location of the previous definition

In file included from _mysql.c:36:

/usr/local/Cellar/mysql/5.1.51/include/mysql/my_config.h:1189:1: warning:
"SIZEOF_PTHREAD_T" redefined

In file included from /Library/Frameworks/Python.framework/Versions/6.3/includ
e/python2.6/Python.h:9,

from pymemcompat.h:10,

from _mysql.c:29:

/Library/Frameworks/Python.framework/Versions/6.3/include/python2.6/pymacconfi
g.h:47:1: warning: this is the location of the previous definition

gcc -g -L/usr/local/lib
-L/Library/Frameworks/Python.framework/Versions/6.3/lib -bundle -undefined
dynamic_lookup -arch i386 build/temp.macosx-10.5-i386-2.6/_mysql.o
-L/usr/local/Cellar/readline/6.1/lib
-L/usr/local/Cellar/mysql/5.1.51/lib/mysql -lmysqlclient_r -lz -lm -o
build/lib.macosx-10.5-i386-2.6/_mysql.so

ld: warning: in
/usr/local/Cellar/mysql/5.1.51/lib/mysql/libmysqlclient_r.dylib, file is not
of required architecture