[Pythonmac-SIG] build problem
Bob Ippolito
bob at redivi.com
Tue Aug 12 09:46:14 EDT 2003
You need to link to libcrypto and libssl.. they're in /usr/lib, so you
don't need to add the directories, just the libraries.
Why don't you just use my binary distribution? Use this from Package
Manager:
http://undefined.org/python/pimp/darwin-6.6-Power_Macintosh.plist
On Tuesday, Aug 12, 2003, at 01:22 America/New_York, robert ackerman
wrote:
> 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
>
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
More information about the Pythonmac-SIG
mailing list