Brendon Colby wrote: > Greetings, > > I just wanted to post this for posterity (since I didn't see anything in > the archives yet). Upon trying to install mysql-python-py25 I received > this error: > > running build > running build_py > copying MySQLdb/release.py -> build/lib.macosx-10.5-i386-2.5/MySQLdb > running build_ext > building '_mysql' extension > gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp > -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall > -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -pipe > -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 > -I/usr/local/mysql/include > -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 > -c _mysql.c -o build/temp.macosx-10.5-i386-2.5/_mysql.o -Os -arch i386 > -fno-common > In file included from /usr/local/mysql/include/mysql.h:43, > from _mysql.c:40: > /usr/include/sys/types.h:92: error: duplicate 'unsigned' > /usr/include/sys/types.h:92: error: two or more data types in > declaration specifiers
It is only by chance that this built on Tiger. On Leopard, <sys/types.h> is included by mysql.h, and this only after uint is defined as a macro in _mysql.c. On Tiger, <sys/types.h> was included already earlier indirectly, so that the bad definition in _mysql.c was not immediately destructive. > error: command 'gcc' failed with exit status 1 > > What fixed this for me per: > > http://forums.mysql.com/read.php?50,175059,185003#msg-185003 > <http://forums.mysql.com/read.php?50,175059,185003#msg-185003> > > was simply editing /usr/include/sys/types.h line 92, commenting it out > and re-running the install (uncomment after install). Everything appears > to work fine. This is bad advice. You shouldn't destroy system header files in order to work around broken software. Better fix that _mysql.c file. In any case, I fixed it on cvs. The new version mysql-python-py25-1.2.2-1001 builds on Tiger and on Leopard. -- Martin ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
