jiaoz / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

installation fails on CentOS 5.5 #336

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I downloaded pyodbc-3.0.7 , it fails with this error:

sudo python setup.py build
running build
running build_ext
building 'pyodbc' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC 
-DPYODBC_VERSION=3.0.7 -I/usr/include/python2.4 -c 
/opt/home/hyelluas/pyodbc-3.0.7/src/params.cpp -o 
build/temp.linux-x86_64-2.4/opt/home/hyelluas/pyodbc-3.0.7/src/params.o 
-Wno-write-strings
/opt/home/hyelluas/pyodbc-3.0.7/src/connection.h:27: error: âuintptr_tâ does 
not name a type
error: command 'gcc' failed with exit status 1

looks like stdin is not defined .

thank you.
Helen

Original issue reported on code.google.com by hyell...@gmail.com on 12 Sep 2013 at 12:24

GoogleCodeExporter commented 8 years ago
here is more for the error : src/connection.h:27: error: ‘uintptr_t’ does 
not name a type

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

GoogleCodeExporter commented 8 years ago
I faced the same issue while building pyodbc using gcc-4.1.2 and python2.4 on a 
centOS 5 box.
For me the following packages worked:
python27
python27-devel
gcc44
gcc44-c++

After installing the above packages, I ran: sudo python2.7 setup.py build

Original comment by pratik.k...@gmail.com on 20 Nov 2013 at 5:08

GoogleCodeExporter commented 8 years ago
The 'uintptr_t' error is because the older versions of gcc-c++ don't define 
'uintptr_t' type.

Original comment by pratik.k...@gmail.com on 20 Nov 2013 at 5:11