Hi -

I've spent a couple days banging my head on this one, but I'm no
expert when it comes to compiling libraries for python.

First (and possibly the easiest solution) - is there a win64 binary
distribution that someone's built? http://www.pygresql.org/readme.html
only has win32 binaries, which don't seem to read the registry
properly for the location of the python installation (I'm using 2.6.5,
btw).

Second, barring that, is it possible to compile a version for win64? I
tried originally compiling it with MSVC9 (2008) but ran into a python
bug related to the environment variables. Not wanting to go down that
route (yet) of fixing the bug, I tried getting mingw's gcc for win 64,
pexports.exe, and compiling my own version. Unfortunately, it seems
that it's bombing on some data structures with 2 errors (shown below).
Anyone have quick fixes for these? Thanks in advance.

cd

---------


C:\Users\Chris\Desktop\PyGreSQL-4.0>python setup.py build
running build
running build_py
running build_ext
building '_pg' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Iinclude
-IC:/PROGRA~2/POSTGR~1/8.4/include
-IC:/PROGRA~2/POSTGR~1/8.4/include/server
-IC:/PROGRA~2/POSTGR~1/8.4/include/server\port/win32
-IC:\Python26\include -IC:\Python26\PC -c pgmodule.c -o
build\temp.win-amd64-2.6\Release\pgmodule.o -O2

<snip>

In file included from
c:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.4.5/../../../../x86_64-w64-mingw32/include/stdio.h:9,
                 from include/c.h:67,
                 from include/postgres.h:47,
                 from pgmodule.c:32:
c:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.4.5/../../../../x86_64-w64-mingw32/include/_mingw.h:384:2:
error: #error You cannot use 32-bit time_t (_USE_32BIT_TIME_T) with
_WIN64

<snip>

In file included from C:\Python26\include/pyport.h:248,
                 from C:\Python26\include/Python.h:58,
                 from pgmodule.c:43:
c:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.4.5/../../../../x86_64-w64-mingw32/include/time.h:260:
error: redefinition of 'struct timezone'

<snip>

error: command 'gcc' failed with exit status 1
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to