Re: Threaded python on FreeBSD

From: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Threaded python on FreeBSD
Date: 2006-10-15 21:16:43
Message-ID: 20061015211642.GF381@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Oct 15, 2006 at 10:39:49PM +0200, Peter Eisentraut wrote:
> Jim C. Nasby wrote:
> > Currently, the FreeBSD ports make the following change when building
> > python:
> >
> > --- src/pl/plpython/Makefile.orig Fri Nov 19 20:23:01 2004
> > +++ src/pl/plpython/Makefile Tue Dec 28 23:32:16 2004
> > @@ -9,7 +9,7 @@
> > # shared library. Since there is no official way to determine this
> > # (at least not in pre-2.3 Python), we see if there is a file that
> > is # named like a shared library.
> > -ifneq (,$(wildcard $(python_libdir)/libpython*$(DLSUFFIX)*))
> > +ifneq (,$(wildcard $(python_libdir)/../../libpython*$(DLSUFFIX)*))
> > shared_libpython = yes
> > endif
>
> Since python_libdir is /usr/local/lib on this platform, this would look
> for libpython in /usr, which makes no sense.

Take a look at the failure output...

ERROR: could not load library
"/home/buildfarm/buildfarm/HEAD/inst/lib/postgresql/plpython.so": dlopen
(/home/buildfarm/buildfarm/HEAD/inst/lib/postgresql/plpython.so) failed:
/usr/local/lib/python2.5/config/libpython2.5.so: Undefined symbol
"pthread_attr_destroy"

For some reason, it's thinking that the lib directory is
/usr/local/lib/python2.5/config (there's a symlink of libpython2.5.so in
there). Looking at the python port, I don't see anything that indicates
this is a FreeBSD-ism, either...
--
Jim Nasby jim(at)nasby(dot)net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Shane Ambler 2006-10-15 21:30:20 Re: Postgresql Caching
Previous Message Greg Sabino Mullane 2006-10-15 21:04:31 Re: BUG #2683: spi_exec_query in plperl returns column names which are not marked as UTF8