Attempting to build 1.2.2 on Solaris 10/x86 using a binary download of mysql (such as 5.0.27) fails with:
building '_mysql' extension
cc -DNDEBUG -O -xcode=pic32 -Dversion_info=(1,2,2,'final',0) -Dversion=1.2.2 -I/usr/local/mysql/include -I/usr/local/include/python2.5 -c _mysql.c -o build/temp.solaris-2.10-i86pc-2.5/_mysql.o -mt -fsimple=1 -ftrap=%%none -nofstore -xbuiltin=%%all -xlibmil -xlibmopt -xtarget=generic
cc: Warning: illegal option -xcode=pic32
illegal option -ftrap=%%none
error: command 'cc' failed with exit status 1
I get the same error with both the python 2.3 bundled with Solaris and a locally built python 2.5.
mysql_config --cflags returns:
-I/usr/local/mysql/include -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=generic
The problem is caused by the fix for 1602592. (As the build still fails, the fix clearly doesn't work.)
Reversing the fix for 1602592 allows the module to build successfully for python 2.5. (It still fails for python 2.3, as reported in 1602592, but that looks like a bug in python itself rather than anything that can be fixed by this module.)
I suggest that the % escaping be removed from setup_posix.py.
Log in to post a comment.