My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 336: installation fails on CentOS 5.5
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by hyell...@gmail.com, Sep 11, 2013
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

Sep 11, 2013
#1 hyell...@gmail.com
here is more for the error : src/connection.h:27: error: ‘uintptr_t’ does not name a type

Nov 20, 2013
#2 pratik.k...@gmail.com
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
Nov 20, 2013
#3 pratik.k...@gmail.com
The 'uintptr_t' error is because the older versions of gcc-c++ don't define 'uintptr_t' type.

Powered by Google Project Hosting