Hello all,
I just pulled a fresh copy from github, and when I run setup.py, I get
the following errors:
dan@dan-netbook:/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc-3d7ddc4$
python setup.py build install
fatal: No names found, cannot describe anything.
WARNING: git describe failed with: 32768
WARNING: Unable to determine version. Using 3.1.0.0
running build
running build_ext
building 'pyodbc' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPYODBC_VERSION=3.1.0-unsupported
-I/usr/include/python2.6 -c
/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc-3d7ddc4/src/pyodbcdbg.cp p
-o
build/temp.linux-i686-2.6/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc -3d7ddc4/src/pyodbcdbg.o
-Wno-write-strings
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
In file included from
/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc-3d7ddc4/src/pyodbcdbg.cp p:2:
/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc-3d7ddc4/src/pyodbc.h:73: 17:
error: sql.h: No such file or directory
/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc-3d7ddc4/src/pyodbc.h:74: 20:
error: sqlext.h: No such file or directory
In file included from
/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc-3d7ddc4/src/pyodbcdbg.cp p:2:
/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc-3d7ddc4/src/pyodbc.h:90:
error: ‘IsSet’ declared as an ‘inline’ variable
/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc-3d7ddc4/src/pyodbc.h:90:
error: ‘DWORD’ was not declared in this scope
/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc-3d7ddc4/src/pyodbc.h:90:
error: ‘DWORD’ was not declared in this scope
/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc-3d7ddc4/src/pyodbc.h:90:
error: initializer expression list treated as compound expression
/opt/lampp/htdocs/ap.py/tempdel/mkleehammer-pyodbc-3d7ddc4/src/pyodbc.h:91:
error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/include/python2.6/datetime.h:186: warning: ‘PyDateTimeAPI’ defined but
not used
error: command 'gcc' failed with exit status 1
Any idea what could be causing these?