postgres pgmodule compiling problem
Benny Shomer
bshomer at yahoo.com
Thu Aug 3 23:07:23 EDT 2000
Hi there,
I'm trying to establish the python postgres API. I tried compiling
pgmodule.c either as a dynamically loadable module or as a python
built-in through Modules/Setup configuration.
With wither method, I get complaints regarding undefined references to
PyList_SET_ITEM. With the dynamic module python either complains or
dumps core. The builtin doesn't even compile succesfully.
I'm using Linux/RedHat 6.0 with Python 1.5.1
Trying to build: PyGreSQL-3.1-pre000620
- standalone postgres works well.
- python standalone (without pgmodule) builds and runs well
- All include and lib parameters have been confirmed
Here's some of the output: gcc -Xlinker -export-dynamic python.o \
../libpython1.5.a -L/usr/lib/pgsql -lpq -lcrypt -lieee -ldl -lm -o python
../libpython1.5.a(pgmodule.o): In function `pgsource_getattr':
/home/bshomer/Python-1.5.1/Modules/./pgmodule.c:865: undefined reference to
`PyList_SET_ITEM' /home/bshomer/Python-1.5.1/Modules/./pgmodule.c:866:
undefined reference to `PyList_SET_ITEM'
/home/bshomer/Python-1.5.1/Modules/./pgmodule.c:867: undefined reference to
`PyList_SET_ITEM' /home/bshomer/Python-1.5.1/Modules/./pgmodule.c:868:
undefined reference to `PyList_SET_ITEM'
/home/bshomer/Python-1.5.1/Modules/./pgmodule.c:869: undefined reference to
`PyList_SET_ITEM'
../libpython1.5.a(pgmodule.o):/home/bshomer/Python-1.5.1/Modules/./pgmodule.c
:1370: more undefined references to `PyList_SET_ITEM' follow collect2: ld
returned 1 exit status make[1]: *** [link] Error 1
I _must_ have that API for many projects. I hope to find a good sole
who knows what's going on.
Thanks a billion,
Benny.
--
---- E pur si muove! (Galileo) ----
---------------------------------------------------------------------
Benny Shomer, Ph.D. Bioinformatics specialist
Tel# +972 (8) 971-3165 email: bshomer at yahoo.com
Mobile# +972 (54) 655-868 Fax# +972 (15154) 655-868
Public PGP Key (0x3610041C) at URL:
http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=index&search=0x3610041C
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list