Running the test for Proc::ProcessTable 0.45 gives the error:
[root@clover Proc-ProcessTable-0.45]# perl -Mblib t/process.t
1..3
# Running under perl version 5.008007 for linux
# Current time local: Wed Dec 3 10:16:47 2008
# Current time GMT: Wed Dec 3 09:16:47 2008
# Using Test.pm version 1.25
perl: relocation error:
/root/.cpan/build/Proc-ProcessTable-0.45/blib/arch/auto/Proc/ProcessTable/ProcessTable.so:
undefined symbol: pthread_once
when using a non-threaded perl on linux.
This seems to be the cause of many (most?) of the fail reports for
linux-perls.
Version 0.44 does not have this problem.

By the way, this patch also fixed it for me on my 5.10.0 custom compiled
Perl, running on RedHat EL5. I custom compiled non threaded Perl. Any
chance of this patch making it's way into a release?
On Wed Jan 07 05:12:55 2009, BOBTFISH wrote:
Show quoted text

In the README.solaris file:
One can enable thread support by adding -DPROCESSTABLE_THREAD to the
DEFINE line in Makefile.PL.
It seems the expected behavior is to explicity set the
PROCESSTABLE_THREAD flag if you want thread support. Please apply the
aforementioned patch so that non-threaded perl users can use this module.

If a perl on Linux is compiled without threads, using Proc::ProcessTable
fails with the following error message:
/usr/local/bin/perl: symbol lookup
error:/home/y/lib/perl5/site_perl/5.10/i686-lc
essTable.so: undefined symbol: pthread_once
The problem is that -lpthreads isn't available in perl itself, but it's
available on the system and it's used in Proc::ProcessTable.
The attached patch provides a remedy by checking if perl was compiled
with threading enabled, and if not, adds -lpthreads to the link options.
Would be great if you could add it in the next revision, thanks!
-- Mike

The P::PT code is grown - and I want to rewrite it instead of fixing symptoms.
The final prerequisite I'm missing is a nice ExtUtils::CBuilder successor.
As far as I know, Leon Timmermann working on such a thing, but I'm unsure if
it fits my needs. Anyway - I hope I can find a tuit soon ...
/Jens