Menu

problem building on Solaris 2.9 (SunOS 5.9)

Help
amadain
2006-09-18
2012-09-19
  • amadain

    amadain - 2006-09-18

    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

     
    • Andy Dustman

      Andy Dustman - 2006-09-30

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.