[Zope-it] problemi con ZPyGreSQLDA

Giuseppe Pagano giuseppe.pagano@nekhem.com
Tue, 23 Oct 2001 12:56:56 +0200


Ciao, nella directory /usr/local/pgsql/include hai un file del tipo:
libpq.so.2 ?
Se non lo hai li ma da un'altra parte aggiungi l'opzione -I/altra/parte/ la
libpq dovrebbe essere una libreria di postgres 7.0 che serve per la
compilazione corretta di  ZPyGreSQLDA
Ciao
Giuseppe
giuseppe.pagano@nekhem.com


On 2001.10.23 11:49 Giorgio Andreoletti - mentelocale wrote:
> buongiorno a tutta la lista !

> I dolori vengono nell'installare questo benedetto ZPyGreSQLDA:
> lo spacchetto, edito src/Setup.in in modo da includere la directory
> /usr/local/pgsql/include
> 
> primo problema quando do il 'make':
> 
> gcc -fPIC -g -O2 -Wall -Wstrict-prototypes -I/usr/local/include/python2.1
> -I
> /usr/local/include/python2.1 -DHAVE_CONFIG_H  -I/usr/local/pgsql/include
> -c
> ././pgmodule.c -o ./pgmodule.o
> ././pgmodule.c: In function `pgconnect':
> ././pgmodule.c:694: warning: passing arg 4 of
> `PyArg_ParseTupleAndKeywords'
> from incompatible pointer type
> gcc -shared  ./pgmodule.o  -lpq -lcrypt  -o ./_pgmodule.so


> /usr/i386-slackware-linux/bin/ld: cannot find -lpq
> collect2: ld returned 1 exit status
> make: *** [_pgmodule.so] Error 1
> 
> 
> allora provo a levare lo switch '-lpq' da Setup.in, rimuovo Setup, faccio
> un
> 'make clean' che non guasta mai, e riprovo:
> 
> questa volta il modulo viene creato, ma ho cmq questo warning:
> 
> gcc -fPIC -g -O2 -Wall -Wstrict-prototypes -I/usr/local/include/python2.1
> -I
> /usr/local/include/python2.1 -DHAVE_CONFIG_H  -I/usr/local/pgsql/include
> -c
> ././pgmodule.c -o ./pgmodule.o
> ././pgmodule.c: In function `pgconnect':
> ././pgmodule.c:694: warning: passing arg 4 of
> `PyArg_ParseTupleAndKeywords'
> from incompatible pointer type
> gcc -shared  ./pgmodule.o  -lcrypt  -o ./_pgmodule.so
> 
> copio _pgmodule.so su di un livello, restarto zope, ed ecco qui cosa mi
> dice
> se clicco sul prodotto ZPygreSQLDA:
> 
> Traceback (most recent call last):
>   File "/home/zope/Zope-2.4.1-src/lib/python/OFS/Application.py", line
> 558,
> in import_product
>     product=__import__(pname, global_dict, global_dict, silly)
>   File "/home/zope/zope/lib/python/Products/ZPyGreSQLDA/__init__.py",
> line
> 89, in ?
>     import sys, os, Globals, DA
>   File "/home/zope/zope/lib/python/Products/ZPyGreSQLDA/DA.py", line 91,
> in
> ?
>     from db import DB
>   File "/home/zope/zope/lib/python/Products/ZPyGreSQLDA/db.py", line 89,
> in
> ?
>     import _pg, regex, sys, types
> ImportError: /home/zope/zope/lib/python/Products/ZPyGreSQLDA/_pgmodule.so:
> undefined symbol: lo_export
> 
> come ne esco ?
> dove sto sbagliando ?
> 
> grazie mille per l'aiuto
> Giorgio.
> 
> ============================
> Giorgio Andreoletti - mentelocale S.r.l.
> responsabile hardware e networking
> responsabile sviluppo web
> www.mentelocale.it
> giorgio.andreoletti@mentelocale.it
> ============================
> 
> 
> 
> 
> _______________________________________________
> Zope-it maillist  -  Zope-it@zope.org
> http://lists.zope.org/mailman/listinfo/zope-it
>