GoogleCodeArchives / pyodbc

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

Build failure of 2.1 on Linux #229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by GunjanSh...@gmail.com on 11 Jan 2012 at 8:52

GoogleCodeExporter commented 9 years ago
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: http://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)

Original comment by dkleeham...@gmail.com on 12 Jun 2012 at 8:46

GoogleCodeExporter commented 9 years ago
I would first recommend you get the latest source.  Version 3.0.5 or later.  
Thanks.

Original comment by mkleehammer on 23 Jun 2012 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by mkleehammer on 23 Jun 2012 at 9:46

GoogleCodeExporter commented 9 years ago
Assuming builds are working with latest source.   Closing

Original comment by mkleehammer on 27 Sep 2012 at 8:36