RE: Errors when doing 'use Tk::ExecuteCommand'
Ray Gebbie <[email protected]> Tue, 21 Nov 2006 12:16:02 -0800
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <OFCA73FBD1.D726EADD-ON8525722D.006EA338-8825722D.006F5501@FDS.com> |
I had just installed from Proc-ProcessTable-0.41. I did the following:
perl Makefile.PL CC=/usr/local/bin/gcc
Processing hints file hints/aix_5.pl
Writing Makefile for Proc::ProcessTable::Process
Writing Makefile for Proc::ProcessTable
Then I do 'make':
/usr/local/bin/gcc -c -D_ALL_SOURCE -D_ANSI_C_SOURCE
-D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN
-I/usr/local/include -q32 -D_LARGE_FILES -qlonglong -O
-DVERSION=\"0.41\" -DXS_VERSION=\"0.41\" "-I/usr/local/lib/perl5/5.8.8
/aix/CORE" ProcessTable.c
gcc: unrecognized option '-qmaxmem=-1'
gcc: unrecognized option '-qnoansialias'
gcc: unrecognized option '-q32'
gcc: unrecognized option '-qlonglong'
/usr/local/bin/gcc -c -D_ALL_SOURCE -D_ANSI_C_SOURCE
-D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN
-I/usr/local/include -q32 -D_LARGE_FILES -qlonglong -O
-DVERSION=\"0.41\" -DXS_VERSION=\"0.41\" "-I/usr/local/lib/perl5/5.8.8
/aix/CORE" OS.c
gcc: unrecognized option '-qmaxmem=-1'
gcc: unrecognized option '-qnoansialias'
gcc: unrecognized option '-q32'
gcc: unrecognized option '-qlonglong'
Running Mkbootstrap for Proc::ProcessTable ()
chmod 644 ProcessTable.bs
rm -f blib/arch/auto/Proc/ProcessTable/ProcessTable.so
ld -bhalt:4 -bexpall -G -bnoentry -lc -L/usr/local/lib OS.o
ProcessTable.o -o blib/arch/auto/Proc/ProcessTable/ProcessTable.so
-lodm -lcfg
chmod 755 blib/arch/auto/Proc/ProcessTable/ProcessTable.so
cp ProcessTable.bs
blib/arch/auto/Proc/ProcessTable/ProcessTable.bs
chmod 644 blib/arch/auto/Proc/ProcessTable/ProcessTable.bs
Manifying ../blib/man3/Proc::ProcessTable::Process.3
Manifying blib/man3/Proc::ProcessTable.3
Manifying blib/man3/Proc::Killall.3
Manifying blib/man3/Proc::Killfam.3
Then I do 'make test'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/process....Can't load '/home/b06reg/sources/Proc-ProcessTable-0.41
/blib/arch/auto/Proc/ProcessTable/ProcessTable.so' for module
Proc::ProcessTable: rtld: 0712-001 Symbol __floatdidf was referenced
from module /home/b06reg/sources/Proc-ProcessTable-0.41
/blib/arch/auto/Proc/ProcessTable/ProcessTable.so(), but a runtime
definition
of the symbol was not found.
rtld: 0712-001 Symbol __cmpdi2 was referenced
from module /home/b06reg/sources/Proc-ProcessTable-0.41
/blib/arch/auto/Proc/ProcessTable/ProcessTable.so(), but a runtime
definition
of the symbol was not found.
rtld: 0712-001 Symbol __floatdisf was referenced
from module /home/b06reg/sources/Proc-ProcessTable-0.41
/blib/arch/auto/Proc/ProcessTable/ProcessTable.so(), but a runtime
definition
of the symbol was not found. at /usr/local/lib/perl5/5.8.8
/aix/DynaLoader.pm line 230.
at t/process.t line 9
Compilation failed in require at t/process.t line 9.
BEGIN failed--compilation aborted at t/process.t line 9.
t/process....dubious
Test returned status 8 (wstat 2048, 0x800)
DIED. FAILED tests 1-3
Failed 3/3 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/process.t 8 2048 3 6 200.00% 1-3
Failed 1/1 test scripts, 0.00% okay. 3/3 subtests failed, 0.00% okay.
make: 1254-004 The error code from the last command is 8.
Stop.
At this point I have no idea what to do. I assume that I need to do more
configuration on the 'perl Makefile.PL' command, but I have no idea what.
Ray Gebbie
Federated Systems Group
San Francisco, CA 94102
415-422-1662
<marek.rouchal@in
fineon.com>
To
11/21/2006 12:06 <[email protected]>
AM cc
<[email protected]>
Subject
RE: Errors when doing 'use
Tk::ExecuteCommand'
Hmmm, try get the latest Proc::ProcessTable, and make sure
it builds and tests OK (perl Makefile.PL, make test).
The missing symbols below seem to indicate that either some
shared system lib is not linked, or it is not found by
the dynamic loader (seems to be rtld on AIX).
You may want to check with the "nm" utility, in which
system lib (typically located in /lib and/or /usr/lib)
the missing symbols are located. And check with
ldd
/usr/local/lib/perl5/site_perl/5.8.8/aix/auto/Proc/ProcessTable/ProcessT
able.so
which shared libs are referenced.
With that information you should be able to tweak the
Makefile of Proc::ProcessTable such that it will
build and link the ProcessTable.so correctly.
Good luck!
-Marek
-----Original Message-----
From: Ray Gebbie [mailto:[email protected]]
Sent: Tuesday, November 21, 2006 12:19 AM
To: Rouchal Marek (IFAG COM BTS DF R2G)
Cc: [email protected]
Subject: RE: Errors when doing 'use Tk::ExecuteCommand'
Thanks for the help.
Here is what the installation process shows:
perl Makefile.PL
/home/b06reg/sources/Tk-ExecuteCommand-1.6 does not start with
/usr/local/lib/perl5/site_perl/5.8.8/aix
i.e. building outside Tk itself
Checking if your kit is complete...
Looks good
Writing Makefile for Tk::ExecuteCommand
bash-2.04# make
cp ExecuteCommand.pm blib/lib/Tk/ExecuteCommand.pm
cp Killfam.pm blib/lib/Tk/../Proc/Killfam.pm
Manifying blib/man3/Tk::ExecuteCommand.3
Manifying blib/man3/Tk::Killfam.3
bash-2.04# make install
Writing /usr/local/lib/perl5/site_perl/5.8.8
/aix/auto/Tk/ExecuteCommand/.packlist
Appending installation info to
/usr/local/lib/perl5/5.8.8/aix/perllocal.pod
Here is what I get when I run the short perl command you listed:
Can't load '/usr/local/lib/perl5/site_perl/5.8.8
/aix/auto/Proc/ProcessTable/ProcessTable.so' for module
Proc::ProcessTable:
rtld: 0712-001 Symbol __floatdidf was referenced
from module /usr/local/lib/perl5/site_perl/5.8.8
/aix/auto/Proc/ProcessTable/ProcessTable.so(), but a runtime definition
of the symbol was not found.
rtld: 0712-001 Symbol __cmpdi2 was referenced
from module /usr/local/lib/perl5/site_perl/5.8.8
/aix/auto/Proc/ProcessTable/ProcessTable.so(), but a runtime definition
of the symbol was not found.
rtld: 0712-001 Symbol __floatdisf was referenced
from module /usr/local/lib/perl5/site_perl/5.8.8
/aix/auto/Proc/ProcessTable/ProcessTable.so(), but a runtime definition
of the symbol was not found. at /usr/local/lib/perl5/5.8.8
/aix/DynaLoader.pm line 230.
at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.
Ray Gebbie
Federated Systems Group
San Francisco, CA 94102
415-422-1662
<marek.rouchal@in
fineon.com>
To
11/19/2006 11:11 <[email protected]>
PM
cc
<[email protected]>
Subject
RE: Errors when doing 'use
Tk::ExecuteCommand'
What happens when you run
<your-path-to-perl>/perl -MProc::ProcessTable -e 1
Does this module load OK?
Proc::ProcessTable has some compiled parts in it, are you
sure its entire build process
perl Makefile.PL
make
make test
make install
was OK?
HTH,
Marek
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ray Gebbie
Sent: Saturday, November 18, 2006 1:40 AM
To: [email protected]
Subject: Errors when doing 'use Tk::ExecuteCommand'
I get the following error when my script starts up:
Proc::ProcessTable missing, can't kill sub-children. at
/usr/local/lib/perl5/site_perl/5.8.8/aix/Proc/Killfam.pm line 19.
at /usr/local/lib/perl5/site_perl/5.8.8/aix/Proc/Killfam.pm line 19
Proc::Killfam::BEGIN() called at
/usr/local/lib/perl5/site_perl/5.8.8/aix/Proc/Killfam.pm line 21
eval {...} called at /usr/local/lib/perl5/site_perl/5.8.8
/aix/Proc/Killfam.pm line 21
require Proc/Killfam.pm called at
/usr/local/lib/perl5/site_perl/5.8.8/Tk/ExecuteCommand.pm line 6
Tk::ExecuteCommand::BEGIN() called at
/usr/local/lib/perl5/site_perl/5.8.8/aix/Proc/Killfam.pm line 21
eval {...} called at /usr/local/lib/perl5/site_perl/5.8.8
/aix/Proc/Killfam.pm line 21
require Tk/ExecuteCommand.pm called at
/home/release/scripts/newpromote.pl line 4
main::BEGIN() called at /usr/local/lib/perl5/site_perl/5.8.8
/aix/Proc/Killfam.pm line 21
eval {...} called at /usr/local/lib/perl5/site_perl/5.8.8
/aix/Proc/Killfam.pm line 21
The start of my script is:
#!/usr/bin/perl
use Tk;
use Tk::ExecuteCommand;
use Proc::ProcessTable;
use Tk::MiniCalendar;
use Tk::LabFrame;
use Tk::FBox;
use Tk::LabEntry;
I am running on AIX 5.3 using perl version 5.8.8. I added the following
modules with no errors reported:
Proc-ProcessTable-0.41
Tk-ExecuteCommand-1.6
I seem to be able to ignore the error and continue to run the script.
But
I would like to not have these errors show up.
Anybody know what is happening?
Ray Gebbie
Federated Systems Group
San Francisco, CA 94102
415-422-1662
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk