build problem

robert ackerman <rdacker-yBeKhBN/[email protected]> Mon, 11 Aug 2003 22:22:45 -0700
Newsgroups gmane.comp.python.db.pypgsql.user,gmane.comp.python.apple
Message-ID <[email protected]>
in setup.py, i set custom include and lib to:
         include_dirs = ["/Library/PostgreSQL/include"]
	library_dirs = ["/Library/PostgreSQL/lib"]

do i need other dirs?

i get errors:
% python setup.py build
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
distutils/dist.py:213: UserWarning: 'licence' distribution option is  
deprecated; use 'license'
   warnings.warn(msg)
running build
running build_py
running build_ext
building 'pyPgSQL.libpq.libpqmodule' extension
gcc -Wl,-x -Wl,-F. -bundle -framework Python  
build/temp.darwin-6.6-Power_Macintosh-2.3/libpqmodule.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/pgboolean.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/pgint2object.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/pgint8object.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/pgversion.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/pglargeobject.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/pgnotify.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/pgconnection.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/pgresult.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/pymemstrdup.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/port/strtoll.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/port/strtoull.o  
build/temp.darwin-6.6-Power_Macintosh-2.3/port/strtok.o  
-L/Library/PostgreSQL/lib -lpq -o  
build/lib.darwin-6.6-Power_Macintosh-2.3/pyPgSQL/libpq/libpqmodule.so
ld: Undefined symbols:
_ERR_get_error
_ERR_reason_error_string
_SSL_CTX_new
_SSL_connect
_SSL_free
_SSL_library_init
_SSL_load_error_strings
_SSL_new
_SSL_set_fd
_SSLv23_method
_SSL_read
_SSL_write
error: command 'gcc' failed with exit status 1



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01