Skip to content

Instantly share code, notes, and snippets.

@directmeasure
Created February 23, 2012 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save directmeasure/1895235 to your computer and use it in GitHub Desktop.
Save directmeasure/1895235 to your computer and use it in GitHub Desktop.
$ sudo ln -s `which clang` /usr/bin/gcc-4.2
Password:
Bryan@Bryans-MacBook-Pro Thu Feb 23 16:42:07 ~/Downloads/MySQL-python-1.2.3
$ source .bash_profile
Thu Feb 23 16:42:15 ~/Downloads/MySQL-python-1.2.3
$ python setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.6-intel-2.7/MySQLdb
running build_ext
building '_mysql' extension
clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/mysql/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.6-intel-2.7/_mysql.o -Os -g -fno-common -fno-strict-aliasing -arch x86_64
In file included from _mysql.c:36:
/usr/local/mysql/include/my_config.h:329:11: warning: 'SIZEOF_SIZE_T' macro redefined
#define SIZEOF_SIZE_T SIZEOF_LONG
^
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:43:17: note: previous definition is here
# define SIZEOF_SIZE_T 8
^
In file included from _mysql.c:36:
/usr/local/mysql/include/my_config.h:422:9: warning: 'HAVE_WCSCOLL' macro redefined
#define HAVE_WCSCOLL
^
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h:887:9: note: previous definition is here
#define HAVE_WCSCOLL 1
^
_mysql.c:1421:10: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if (how < 0 || how >= sizeof(row_converters)) {
~~~ ^ ~
3 warnings generated.
gcc-4.2 -bundle -undefined dynamic_lookup -g build/temp.macosx-10.6-intel-2.7/_mysql.o -L/usr/local/mysql/lib -lmysqlclient_r -lpthread -o build/lib.macosx-10.6-intel-2.7/_mysql.so -arch x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment