I was wondering if any one can help. I am trying to build MySQL for python on a Solaris 2.9 machine (SunOS 5.9). The MySQL version on the machine is 4.1.12-standard and the Python version is 2.4.2. When I try to build I get the following error:
building 'mysql' extension
creating build/temp.solaris-2.9-sun4u-2.4
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/
local/mysql/include -I/usr/local/include/python2.4 -c _mysql.c -o build/temp.sol
aris-2.9-sun4u-2.4/_mysql.o -Xa -xstrconst -mt -D_FORTEC -xarch=v9 -Dversion_in
fo="(1,2,1,'final',2)" -Dversion="1.2.1_p2"
gcc: warning: -x arch=v9' after last input file has no effect
gcc: unrecognized option-Xa'
cc1: error: invalid option `t'
error: command 'gcc' failed with exit status 1
bash-2.05
-Xa is not a gcc option (from online man pages). Do I need a later version of gcc? Any ideas?
A
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You have a compiler mismatch: MySQL and Python were compiled with different compilers. I suspect MySQL was compiled with Sun's compiler and Python with GCC.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was wondering if any one can help. I am trying to build MySQL for python on a Solaris 2.9 machine (SunOS 5.9). The MySQL version on the machine is 4.1.12-standard and the Python version is 2.4.2. When I try to build I get the following error:
building 'mysql' extension
creating build/temp.solaris-2.9-sun4u-2.4
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/
local/mysql/include -I/usr/local/include/python2.4 -c _mysql.c -o build/temp.sol
aris-2.9-sun4u-2.4/_mysql.o -Xa -xstrconst -mt -D_FORTEC -xarch=v9 -Dversion_in
fo="(1,2,1,'final',2)" -Dversion="1.2.1_p2"
gcc: warning:
-x arch=v9' after last input file has no effect gcc: unrecognized option
-Xa'cc1: error: invalid option `t'
error: command 'gcc' failed with exit status 1
bash-2.05
-Xa is not a gcc option (from online man pages). Do I need a later version of gcc? Any ideas?
A
You have a compiler mismatch: MySQL and Python were compiled with different compilers. I suspect MySQL was compiled with Sun's compiler and Python with GCC.