The module compiles and installs ok,
"which perl" says /Users/niels/GOFFICE/Software/bin/perl
seed-mac-1:niels)
~/GOFFICE/Software/Package_sources/perl-modules/Proc-ProcessTable-0.39>
perl Makefile.PL
Writing Makefile for Proc::ProcessTable::Process
Writing Makefile for Proc::ProcessTable
(seed-mac-1:niels)
~/GOFFICE/Software/Package_sources/perl-modules/Proc-ProcessTable-0.39>
make
make[1]: Entering directory
`/Users/niels/GOFFICE/Software/Package_sources/perl-modules/Proc-ProcessTable-0.39/Process'
Manifying ../blib/man3/Proc::ProcessTable::Process.3
make[1]: Leaving directory
`/Users/niels/GOFFICE/Software/Package_sources/perl-modules/Proc-ProcessTable-0.39/Process'
cc -c -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -Os -DVERSION=\"0.39\"
-DXS_VERSION=\"0.39\"
"-I/Users/niels/GOFFICE/Software/Package_installs/Perl/lib/perl5/5.8.6/darwin-2level/CORE"
ProcessTable.c
Running Mkbootstrap for Proc::ProcessTable ()
chmod 644 ProcessTable.bs
rm -f blib/arch/auto/Proc/ProcessTable/ProcessTable.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc
-bundle -undefined dynamic_lookup ProcessTable.o -o
blib/arch/auto/Proc/ProcessTable/ProcessTable.bundle
chmod 755
blib/arch/auto/Proc/ProcessTable/ProcessTable.bundle
cp ProcessTable.bs
blib/arch/auto/Proc/ProcessTable/ProcessTable.bs
chmod 644 blib/arch/auto/Proc/ProcessTable/ProcessTable.bs
Manifying blib/man3/Proc::ProcessTable.3
Manifying blib/man3/Proc::Killall.3
Manifying blib/man3/Proc::Killfam.3
(seed-mac-1:niels)
~/GOFFICE/Software/Package_sources/perl-modules/Proc-ProcessTable-0.39>
make install
make[1]: Entering directory
`/Users/niels/GOFFICE/Software/Package_sources/perl-modules/Proc-ProcessTable-0.39/Process'
make[1]: Leaving directory
`/Users/niels/GOFFICE/Software/Package_sources/perl-modules/Proc-ProcessTable-0.39/Process'
rm -f blib/arch/auto/Proc/ProcessTable/ProcessTable.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc
-bundle -undefined dynamic_lookup ProcessTable.o -o
blib/arch/auto/Proc/ProcessTable/ProcessTable.bundle
chmod 755
blib/arch/auto/Proc/ProcessTable/ProcessTable.bundle
Files found in blib/arch: installing files in blib/lib
into architecture dependent library tree
Writing
/Users/niels/GOFFICE/Software/Package_installs/Perl/lib/perl5/site_perl/5.8.6/darwin-2level/auto/Proc/ProcessTable/.packlist
Appending installation info to
/Users/niels/GOFFICE/Software/Package_installs/Perl/lib/perl5/5.8.6/darwin-2level/perllocal.pod
(seed-mac-1:niels)
~/GOFFICE/Software/Package_sources/perl-modules/Proc-ProcessTable-0.39>
but this program:
#!/usr/bin/env perl
use Proc::ProcessTable;
my ( $procs, $proc, $running, $line );
$procs = new Proc::ProcessTable;
foreach $proc ( @{ $procs->table } )
{
if ( $proc->cmndline =~ m|httpd| ) {
$running = 1;
}
}
fails with this message
(seed-mac-1:niels) ~> tst
dyld: perl Undefined symbols:
/Users/niels/GOFFICE/Software/Package_installs/Perl/lib/perl5/site_perl/5.8.6/darwin-2level/auto/Proc/ProcessTable/ProcessTable.b\
undle undefined reference to _OS_get_table expected to
be defined in a dynamic image
/Users/niels/GOFFICE/Software/Package_installs/Perl/lib/perl5/site_perl/5.8.6/darwin-2level/auto/Proc/ProcessTable/ProcessTable.b\
undle undefined reference to _OS_initialize expected to
be defined in a dynamic image
Trace/BPT trap
on this system,
(seed-mac-1:niels) ~> uname -a
Darwin seed-mac-1.mcs.anl.gov 7.8.0 Darwin Kernel
Version 7.8.0: Wed Dec 22 14:26:17 PST 2004;
root:xnu/xnu-517.11.1.obj~1/RELEAS\
E_PPC Power Macintosh powerpc
(seed-mac-1:niels) ~>
Logged In: NO
Hmmm ...
What does "make test" do?
Is this Jaguar? My Panther system claims to be Darwin 7.9.0.
Are you sure you have a good kit? The Darwin files didn't
make it into the manifest for Proc::ProcessTable 0.39. You
need to download the patch and overlay the files on the
expanded Proc::ProcessTable kit before you build. I would
have expeced a more gruesome error if you didn't do this,
but I also note that when I ran Makefile.PL I got told that
hints/darwin.pl was being processed, and that's missing from
your output. Also when I installed I got a bunch more
output. The error suggests that the binary is missing.
Herewith the gory details of my install, for comparison.
Don't worry about the sudo on the install - I'm putting mine
in /usr/local.
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Processing hints file hints/darwin.pl
Writing Makefile for Proc::ProcessTable::Process
Writing Makefile for Proc::ProcessTable
$ make
cp Killall.pm blib/lib/Proc/Killall.pm
cp ProcessTable.pm blib/lib/Proc/ProcessTable.pm
cp example.pl blib/lib/Proc/example.pl
cp Killfam.pm blib/lib/Proc/Killfam.pm
cp Process.pm ../blib/lib/Proc/ProcessTable/Process.pm
AutoSplitting ../blib/lib/Proc/ProcessTable/Process.pm
(../blib/lib/auto/Proc/ProcessTable/Process)
Manifying ../blib/man3/Proc::ProcessTable::Process.3
/usr/local/bin/perl
/usr/local/lib/perl5/5.8.6/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/5.8.6/ExtUtils/typemap ProcessTable.xs
> ProcessTable.xsc && mv ProcessTable.xsc ProcessTable.c
cc -c -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include -Os
-DVERSION=\"0.39\" -DXS_VERSION=\"0.39\"
"-I/usr/local/lib/perl5/5.8.6/darwin-2level/CORE"
ProcessTable.c
cc -c -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include -Os
-DVERSION=\"0.39\" -DXS_VERSION=\"0.39\"
"-I/usr/local/lib/perl5/5.8.6/darwin-2level/CORE" OS.c
Running Mkbootstrap for Proc::ProcessTable ()
chmod 644 ProcessTable.bs
rm -f blib/arch/auto/Proc/ProcessTable/ProcessTable.bundle
env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined
dynamic_lookup -L/usr/local/lib OS.o ProcessTable.o -o
blib/arch/auto/Proc/ProcessTable/ProcessTable.bundle \
\
chmod 755 blib/arch/auto/Proc/ProcessTable/ProcessTable.bundle
cp ProcessTable.bs
blib/arch/auto/Proc/ProcessTable/ProcessTable.bs
chmod 644 blib/arch/auto/Proc/ProcessTable/ProcessTable.bs
Manifying blib/man3/Proc::ProcessTable.3
Manifying blib/man3/Proc::Killall.3
Manifying blib/man3/Proc::Killfam.3
$ sudo make install
Password:
Installing
/usr/local/lib/perl5/site_perl/5.8.6/darwin-2level/auto/Proc/ProcessTable/ProcessTable.bs
Installing
/usr/local/lib/perl5/site_perl/5.8.6/darwin-2level/auto/Proc/ProcessTable/ProcessTable.bundle
Files found in blib/arch: installing files in blib/lib into
architecture dependent library tree
Installing
/usr/local/lib/perl5/site_perl/5.8.6/darwin-2level/auto/Proc/ProcessTable/Process/autosplit.ix
Installing
/usr/local/lib/perl5/site_perl/5.8.6/darwin-2level/Proc/example.pl
Installing
/usr/local/lib/perl5/site_perl/5.8.6/darwin-2level/Proc/Killall.pm
Installing
/usr/local/lib/perl5/site_perl/5.8.6/darwin-2level/Proc/Killfam.pm
Installing
/usr/local/lib/perl5/site_perl/5.8.6/darwin-2level/Proc/ProcessTable.pm
Installing
/usr/local/lib/perl5/site_perl/5.8.6/darwin-2level/Proc/ProcessTable/Process.pm
Installing /usr/local/share/man/man3/Proc::Killall.3
Installing /usr/local/share/man/man3/Proc::Killfam.3
Installing /usr/local/share/man/man3/Proc::ProcessTable.3
Installing
/usr/local/share/man/man3/Proc::ProcessTable::Process.3
Writing
/usr/local/lib/perl5/site_perl/5.8.6/darwin-2level/auto/Proc/ProcessTable/.packlist
Appending installation info to
/usr/local/lib/perl5/5.8.6/darwin-2level/perllocal.pod