Re: openbsd, plpython, missing threading symbols

From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: openbsd, plpython, missing threading symbols
Date: 2005-08-04 18:14:51
Message-ID: 42F25B1B.2010402@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>
>>Tom Lane wrote:
>>
>>>The alternative is to say that plpython isn't supported on BSDen unless
>>>you choose to build an unthreaded libpython.
>
>
>>I'm OK with that, but if that's what's done I think we should check for
>>it up front at configure time and not let it fail at run time like we do
>>now.
>
>
> If you can create a suitable configure test, it'd be fine with me.

Not sure if it is of any help but mod_python seems to be using this
configure.in snippet to detect (and reject) a threaded python installation:

# check if python is compiled with threads
AC_MSG_CHECKING(whether Python is compiled with thread support)
PyTHREADS=`$PYTHON_BIN -c "import sys; print \"thread\" in
sys.builtin_module_names"`
if test "$PyTHREADS" = "1"; then
AC_MSG_RESULT(yes)
echo
echo " ****** WARNING ******"
echo " Python is compiled with thread support. Apache 1.3 does not
use threads."
echo " On some systems this will cause problems during compilation,
on others "
echo " it may result in unpredictable behaviour of your Apache
server. Yet on"
echo " others it will work just fine. The recommended approach is to
compile"
echo " Python without thread support in a separate location and
specify it with"
echo " --with-python option to this ./configure script."
echo
else
AC_MSG_RESULT([no threads, good])
fi

Stefan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ron Mayer 2005-08-04 18:41:34 Re: US Census database (Tiger 2004FE) - 4.4G
Previous Message mark 2005-08-04 17:55:04 Re: Solving the OID-collision problem