Re: Threaded python on FreeBSD - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: Threaded python on FreeBSD
Date
Msg-id 20061015211642.GF381@nasby.net
Whole thread Raw
In response to Re: Threaded python on FreeBSD  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Threaded python on FreeBSD
List 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@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Threaded python on FreeBSD
Next
From: Shane Ambler
Date:
Subject: Re: Postgresql Caching