Issue 229: Build failure of 2.1 on Linux
Status:  NoFix
Owner: ----
Closed:  Sep 2012
Reported by GunjanSh...@gmail.com, Jan 11, 2012
What steps will reproduce the problem?
1.I am trying to install pyodbc for python 2.6 on Linux 32 bit ( i386)
2.tried some of the package none I am able to build
3.not sure what package is good for my need 

What is the expected output? What do you see instead?

gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -DPYODBC_VERSION=2.1.11 -I/usr/include/python2.3 -c utils/pyodbcconf/pyodbcconf.cpp -o build/temp.linux-i686-2.3/utils/pyodbcconf/pyodbcconf.o -Wno-write-strings
utils/pyodbcconf/pyodbcconf.cpp: In function `PyObject* mod_configure(PyObject*)':
utils/pyodbcconf/pyodbcconf.cpp:66: error: `Py_RETURN_NONE' undeclared (first use this function)
utils/pyodbcconf/pyodbcconf.cpp:66: error: (Each undeclared identifier is reported only once for each function it appears in.)
error: command 'gcc' failed with exit status 1


What version of the product are you using? On what operating system?
I tried pyodbc-2.1.11 and pyodbc-2.1.1


Please provide any additional information below.

Jun 12, 2012
#1 dkleeham...@gmail.com
Since I'm unsure your flavor of Linux, this is a generic answer, however, this is common if the unixODBC headers are not available during compilation.

From: https://code.google.com/p/pyodbc/wiki/Building
On Linux, pyodbc is typically built using the unixODBC headers, so you will need unixODBC and its headers installed. On a RedHat/CentOS/Fedora box, this means you would need to install unixODBC-devel.

On the RedHat/CentOS/Fedora Linux boxes, you would need to make sure that unixODBC-devel is installed.  You can install it using:
yum install unixODBC unixODBC-devel (or sudo yum install unixODBC unixODBC-devel, if your user doesn't have proper privileges)

Jun 23, 2012
Project Member #2 mkleehammer
I would first recommend you get the latest source.  Version 3.0.5 or later.  Thanks.

Status: Hold
Jun 23, 2012
Project Member #3 mkleehammer
(No comment was entered for this change.)
Summary: Build failure of 2.1 on Linux
Sep 27, 2012
Project Member #4 mkleehammer
Assuming builds are working with latest source.   Closing

Status: NoFix