Closed GoogleCodeExporter closed 8 years ago
Forgot to mention Python version:
Python 2.4.3 (#1, May 24 2008, 13:57:05)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
Original comment by maxim.ch...@gmail.com
on 11 Nov 2009 at 6:17
What is happening is the Python distutils library, which is responsible for
generating the compilation command line is passing two values that GCC 4.1.2
doesn't
recognize:
cc1plus: error: unrecognized command line option "-fstack-protector"
cc1plus: error: invalid parameter `ssp-buffer-size'
If I am thinking about this correctly, I believe it means that Python was
compiled
with these flags by CentOS, but the version of GCC provided does not recognize
them.
It is also possible that Python's distutils generated incorrect flags and that
Python
*wasn't* compiled that way.
The versions look correct. Can you compile any Python C extensions? I would
expect
them all to fail the same way (since pyodbc isn't generating the command line).
Also, try asking on the CentOS forums also. Perhaps someone has seen this
before.
Original comment by mkleehammer
on 11 Nov 2009 at 7:34
Thank you for prompt reply - you're right, other packages don't too.
- python and gcc were not compiled but were installed with "yum install". I'll
try to
get the latest versions now.
I've doublechecked I have the latest gcc and python:
[root@hashed ~]# yum update python
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: mirror.rackspace.com
* updates: pubmirrors.reflected.net
* addons: mirrors.netdna.com
* extras: www.muug.mb.ca
Setting up Update Process
Could not find update match for python
No Packages marked for Update
[root@hashed ~]# yum update gcc
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: mirror.rackspace.com
* updates: pubmirrors.reflected.net
* addons: mirrors.netdna.com
* extras: mirrors.cmich.edu
Setting up Update Process
Could not find update match for gcc
No Packages marked for Update
Google gives no answers so far.
Thank you for help
Original comment by maxim.ch...@gmail.com
on 11 Nov 2009 at 7:51
Got it working on clean Ubuntu 9.04 after installing unixodbc-dev, gcc and some
development stuff.
Thank you,
Will try a clean CentOS 5.3
Original comment by maxim.ch...@gmail.com
on 12 Nov 2009 at 4:51
compiled it after uninstalling/reinstalling "gcc-c++" package. Thank you.
Original comment by maxim.ch...@gmail.com
on 15 Nov 2009 at 4:14
Original comment by mkleehammer
on 31 Dec 2009 at 6:38
Original comment by mkleehammer
on 21 Nov 2010 at 4:43
Original issue reported on code.google.com by
maxim.ch...@gmail.com
on 11 Nov 2009 at 6:16