thegooglecodearchive / pymssql

Automatically exported from code.google.com/p/pymssql
GNU Lesser General Public License v2.1
0 stars 0 forks source link

error: unrecognized command line option "-Wno-parentheses-equality" #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
skipping '_mssql.c' Cython extension (up-to-date)
building '_mssql' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -fPIC 
-I/root/pymssql-2.0.0b1-dev-20130403/freetds/nix_64/include 
-I/usr/local/include/python2.7 -c _mssql.c -o 
build/temp.linux-x86_64-2.7/_mssql.o -Wno-parentheses-equality -DMSDBLIB
cc1: error: unrecognized command line option "-Wno-parentheses-equality"

Original issue reported on code.google.com by jinyinq...@gmail.com on 6 Jun 2013 at 9:40

GoogleCodeExporter commented 9 years ago
I have resolved the issue.

change FREETDS in setup.py as below

_extra_compile_args = [
    #'-Wno-parentheses-equality',
    '-DMSDBLIB'
]

Original comment by jinyinq...@gmail.com on 8 Jun 2013 at 8:18

GoogleCodeExporter commented 9 years ago
Please respect the issue template and provide some actual information, or don't 
use the template but write that info using your own format

For example: What are your plaform? architecture? gcc version?

In its current form this issue deserves no attention.

Original comment by cra...@gmail.com on 12 Jun 2013 at 1:46

GoogleCodeExporter commented 9 years ago
Hi

I have the same problem.

I'm using red hat [1] with GCC [2] 4.1.2

[1] Linux 2.6.18-194.el5 x86_64
[2] gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)

Original comment by rbr...@gmail.com on 24 Jun 2013 at 12:57

GoogleCodeExporter commented 9 years ago
Ah that option only exists on some versions of clang and not gcc. I'll remove 
it. Thanks for the report!

Original comment by msabr...@gmail.com on 15 Jul 2013 at 3:21

GoogleCodeExporter commented 9 years ago
This should fix the issue:

https://code.google.com/p/pymssql/source/detail?r=60c4ec7c4fb2ae48898c65e8685ae7
8a4a1fc09f

If folks who had the problem could verify, that would be great.

Original comment by msabr...@gmail.com on 15 Jul 2013 at 3:39

GoogleCodeExporter commented 9 years ago
Tested on Mac OSX 10.7.5, i686-apple-darwin11-llvm-gcc-4.2. It works! Thank you 
for the fix.

Original comment by yin...@miao.fm on 26 Sep 2013 at 12:39

GoogleCodeExporter commented 9 years ago

Original comment by msabr...@gmail.com on 26 Sep 2013 at 3:07

GoogleCodeExporter commented 9 years ago
Marked this verified. Note that this issue was migrated to GitHub as:

https://github.com/pymssql/pymssql/issues/126

Original comment by msabr...@gmail.com on 26 Sep 2013 at 3:12