in reply to Proc::ProcessTable help please

Somewhere, cpanm is picking up a different perl executable than what you think it should be using. It compiles the module using one version of perl and then tries to run the tests using another version of perl. This leads to

t/process.t .. ProcessTable.c: loadable library and perl binaries are +mismatched (got handshake key 7d00000, needed 7f00000)

Look through $ENV{PATH} and restructure it in a way that there is no other perl executable. If that's not possible, first check by manually doing the compilation:

cpanm --look Proc::ProcessTable perl -v # Do we have the correct perl executable? which perl # Still the correct perl executable? perl Makefile.PL make test make install

Replies are listed 'Best First'.
Re^2: Proc::ProcessTable help please
by polarbear125 (Initiate) on Jul 21, 2015 at 17:30 UTC

    First thank you for helping with my issue
    I might of had the system perl first in path, I have updated the PATH after the 'make install' of the perl 5.22.0 build. I still see an issue with Proc::ProcessTable though.


    $ cpanm --look Proc::ProcessTable --> Working on Proc::ProcessTable Fetching http://www.cpan.org/authors/id/J/JW/JWB/Proc-ProcessTable-0.5 +1.tar.gz ... OK Entering /root/.cpanm/work/1437499460.7433/Proc-ProcessTable-0.51 with + /usr/bin/bash root@solokomadm01 [/root/.cpanm/work/1437499460.7433/Proc-ProcessTable +-0.51] $ perl -v This is perl 5, version 22, subversion 0 (v5.22.0) built for sun4-sola +ris Copyright 1987-2015, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge. root@solokomadm01 [/root/.cpanm/work/1437499460.7433/Proc-ProcessTable +-0.51] $ which perl /var/opt/OV/bin/OpC/perl5/bin/perl root@solokomadm01 [/root/.cpanm/work/1437499460.7433/Proc-ProcessTable +-0.51] $ perl Makefile.PL Checking if your kit is complete... Looks good Processing hints file hints/solaris.pl Generating a Unix-style Makefile Writing Makefile for Proc::ProcessTable::Process Writing MYMETA.yml and MYMETA.json Generating a Unix-style Makefile Writing Makefile for Proc::ProcessTable Writing MYMETA.yml and MYMETA.json root@solokomadm01 [/root/.cpanm/work/1437499460.7433/Proc-ProcessTable +-0.51] $ make test cp ProcessTable.pm blib/lib/Proc/ProcessTable.pm cp Killall.pm blib/lib/Proc/Killall.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/au +to/Proc/ProcessTable/Process) Manifying 1 pod document Running Mkbootstrap for Proc::ProcessTable () chmod 644 "ProcessTable.bs" "/var/opt/OV/bin/OpC/perl5/bin/perl" "/var/opt/OV/bin/OpC/perl5/lib/5. +22.0/ExtUtils/xsubpp" -typemap "/var/opt/OV/bin/OpC/perl5/lib/5.22.0 +/ExtUtils/typemap" ProcessTable.xs > ProcessTable.xsc && mv ProcessT +able.xsc ProcessTable.c /opt/solstudio12.2/bin/cc -c -I/usr/gnu/include -DPERL_USE_SAFE_PU +TENV -O -DVERSION=\"0.51\" -DXS_VERSION=\"0.51\" -KPIC "-I/var/op +t/OV/bin/OpC/perl5/lib/5.22.0/sun4-solaris/CORE" -DPROC_FS ProcessTa +ble.c /opt/solstudio12.2/bin/cc -c -I/usr/gnu/include -DPERL_USE_SAFE_PU +TENV -O -DVERSION=\"0.51\" -DXS_VERSION=\"0.51\" -KPIC "-I/var/op +t/OV/bin/OpC/perl5/lib/5.22.0/sun4-solaris/CORE" -DPROC_FS OS.c "OS.c", line 120: warning: implicit function declaration: bless_into_p +roc rm -f blib/arch/auto/Proc/ProcessTable/ProcessTable.so /opt/solstudio12.2/bin/cc -G -L/usr/lib -L/usr/ccs/lib -L/opt/solstud +io12.2/prod/lib/sparc -L/opt/solstudio12.2/prod/lib -L/lib -L/usr/gnu +/lib OS.o ProcessTable.o -o blib/arch/auto/Proc/ProcessTable/Proces +sTable.so \ \ chmod 755 blib/arch/auto/Proc/ProcessTable/ProcessTable.so "/var/opt/OV/bin/OpC/perl5/bin/perl" -MExtUtils::Command::MM -e 'cp_no +nempty' -- ProcessTable.bs blib/arch/auto/Proc/ProcessTable/ProcessTa +ble.bs 644 PERL_DL_NONLAZY=1 "/var/opt/OV/bin/OpC/perl5/bin/perl" "-MExtUtils::Co +mmand::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; te +st_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/process.t .. ProcessTable.c: loadable library and perl binaries are +mismatched (got handshake key 7d00000, needed 7f00000) t/process.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 3/3 subtests Test Summary Report ------------------- t/process.t (Wstat: 256 Tests: 0 Failed: 0) Non-zero exit status: 1 Parse errors: Bad plan. You planned 3 tests but ran 0. Files=1, Tests=0, 0 wallclock secs ( 0.03 usr 0.02 sys + 0.04 cusr + 0.01 csys = 0.10 CPU) Result: FAIL Failed 1/1 test programs. 0/0 subtests failed. *** Error code 1 make: Fatal error: Command failed for target `test_dynamic'

      So I tried to take the system perl out of the equation and renamed /usr/perl5/5.12/bin/perl. I also checked the environment settings and did not see anything that would cause an issue.


      BASH=/usr/bin/bash BASHOPTS=cmdhist:expand_aliases:extquote:force_fignore:hostcomplete:in +teractive_comments:login_shell:progcomp:promptvars:sourcepath:xpg_ech +o BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="4" [1]="1" [2]="17" [3]="1" [4]="release" [5]="spa +rc-sun-solaris2.11") BASH_VERSION='4.1.17(1)-release' COLUMNS=132 DIRSTACK=() EUID=0 GROUPS=() HISTFILE=/root/.bash_history HISTFILESIZE=500 HISTSIZE=500 HOME=/root HOSTNAME=solokomadm01 HOSTTYPE=sparc HZ= IFS=$' \t\n' LANG=en_US.UTF-8 LC_COLLATE= LC_CTYPE= LC_MESSAGES= LC_MONETARY= LC_NUMERIC= LC_TIME= LINES=70 LOGNAME=root MACHTYPE=sparc-sun-solaris2.11 MAIL=/var/mail/root MAILCHECK=60 OLDPWD=/root/.cpan OPTERR=1 OPTIND=1 OSTYPE=solaris2.11 PATH=/usr/sbin:/usr/bin:/var/cfengine/bin PIPESTATUS=([0]="0") PPID=7782 PS1=$'\nroot@solokomadm01 [$PWD]\n$ ' PS2='> ' PS4='+ ' PWD=/root/.cpan/build SHELL=/usr/bin/bash SHELLOPTS=braceexpand:hashall:histexpand:history:interactive-comments: +monitor:vi SHLVL=1 TERM=vt100 TZ=localtime UID=0

      I am trying not to wear out my welcome here but do need help.