Announcement

Collapse
No announcement yet.

ActEncrypt1024 make fails

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ActEncrypt1024 make fails

    Trying to compile Sellerdecks ActEncrypt1024 perl module for a client of ours, but its failing to compile:

    Code:
    perl Makefile.PL
    Checking if your kit is complete...
    Looks good
    Writing Makefile for ActEncrypt1024
    Writing MYMETA.yml and MYMETA.json
    First stage works fine, but then when running make...

    Code:
    make
    cp ActEncrypt1024.pm blib/lib/ActEncrypt1024.pm
    AutoSplitting blib/lib/ActEncrypt1024.pm (blib/lib/auto/ActEncrypt1024)
    /usr/bin/perl /usr/share/perl5/vendor_perl/ExtUtils/xsubpp -typemap
    /usr/share/perl5/ExtUtils/typemap ActEncrypt1024.xs >
    ActEncrypt1024.xsc && mv ActEncrypt1024.xsc ActEncrypt1024.c
    Please specify prototyping behavior for ActEncrypt1024.xs (see perlxs
    manual)
    gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
    -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
    -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
    -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
    -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.0\"
    -DXS_VERSION=\"1.0\" -fPIC "-I/usr/lib64/perl5/CORE" -DPERL_POLLUTE
    ActEncrypt1024.c
    In file included from /usr/lib64/perl5/CORE/perl.h:5071:0,
    from ActEncrypt1024.xs:5:
    ActEncrypt1024.xs: In function 'XS_ActEncrypt1024_EncryptData':
    ActEncrypt1024.xs:25:31: error: 'sv_undef' undeclared (first use in this
    function)
    SV* svOutData = newSVsv(&sv_undef);
    ^
    /usr/lib64/perl5/CORE/embed.h:372:40: note: in definition of macro 'newSVsv'
    #define newSVsv(a) Perl_newSVsv(aTHX_ a)
    ^
    ActEncrypt1024.xs:25:31: note: each undeclared identifier is reported
    only once for each function it appears in
    SV* svOutData = newSVsv(&sv_undef);
    ^
    /usr/lib64/perl5/CORE/embed.h:372:40: note: in definition of macro 'newSVsv'
    #define newSVsv(a) Perl_newSVsv(aTHX_ a)
    ^
    ActEncrypt1024.xs:48:3: warning: pointer targets in passing argument 3
    of 'Perl_sv_setpvn' differ in signedness [-Wpointer-sign]
    sv_setpvn(svOutData, pBuffer, nOutDataLen);
    ^
    In file included from /usr/lib64/perl5/CORE/perl.h:5030:0,
    from ActEncrypt1024.xs:5:
    /usr/lib64/perl5/CORE/proto.h:4188:20: note: expected 'const char *
    const' but argument is of type 'unsigned char *'
    PERL_CALLCONV void Perl_sv_setpvn(pTHX_ SV *const sv, const char
    *const ptr, const STRLEN len)
    ^
    ActEncrypt1024.xs:56:3: warning: passing argument 3 of
    'Perl_sv_2pv_flags' from incompatible pointer type [enabled by default]
    pOutData = (unsigned char*)SvPV(svOutData, nOutDataLen);
    ^
    In file included from /usr/lib64/perl5/CORE/perl.h:5030:0,
    from ActEncrypt1024.xs:5:
    /usr/lib64/perl5/CORE/proto.h:3713:21: note: expected 'STRLEN * const'
    but argument is of type 'unsigned int *'
    PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN
    *const lp, const I32 flags);
    ^
    In file included from ActEncrypt1024.xs:6:0:
    /usr/lib64/perl5/CORE/XSUB.h:175:28: warning: unused variable 'targ'
    [-Wunused-variable]
    #define dXSTARG SV * const targ = ((PL_op->op_private &
    OPpENTERSUB_HASTARG) \
    ^
    ActEncrypt1024.c:187:2: note: in expansion of macro 'dXSTARG'
    dXSTARG;
    ^
    In file included from /usr/lib64/perl5/CORE/perl.h:5071:0,
    from ActEncrypt1024.xs:5:
    ActEncrypt1024.xs: In function 'XS_ActEncrypt1024_DecryptData':
    ActEncrypt1024.xs:101:33: error: 'sv_undef' undeclared (first use in
    this function)
    SV* svHeavyData = newSVsv(&sv_undef);
    ^
    /usr/lib64/perl5/CORE/embed.h:372:40: note: in definition of macro 'newSVsv'
    #define newSVsv(a) Perl_newSVsv(aTHX_ a)
    ^
    ActEncrypt1024.xs:106:2: warning: implicit declaration of function
    'DecryptData' [-Wimplicit-function-declaration]
    RETVAL = DecryptData(pRemoteKey,
    ^
    ActEncrypt1024.xs:126:3: warning: pointer targets in passing argument 3
    of 'Perl_sv_setpvn' differ in signedness [-Wpointer-sign]
    sv_setpvn(svHeavyData, pBuffer, nHeavyDataLen);
    ^
    In file included from /usr/lib64/perl5/CORE/perl.h:5030:0,
    from ActEncrypt1024.xs:5:
    /usr/lib64/perl5/CORE/proto.h:4188:20: note: expected 'const char *
    const' but argument is of type 'unsigned char *'
    PERL_CALLCONV void Perl_sv_setpvn(pTHX_ SV *const sv, const char
    *const ptr, const STRLEN len)
    ^
    ActEncrypt1024.xs:136:3: warning: pointer targets in passing argument 3
    of 'Perl_sv_setpvn' differ in signedness [-Wpointer-sign]
    sv_setpvn(svLightData, pBuffer, nLightDataLen);
    ^
    In file included from /usr/lib64/perl5/CORE/perl.h:5030:0,
    from ActEncrypt1024.xs:5:
    /usr/lib64/perl5/CORE/proto.h:4188:20: note: expected 'const char *
    const' but argument is of type 'unsigned char *'
    PERL_CALLCONV void Perl_sv_setpvn(pTHX_ SV *const sv, const char
    *const ptr, const STRLEN len)
    ^
    ActEncrypt1024.xs:141:3: warning: passing argument 3 of
    'Perl_sv_2pv_flags' from incompatible pointer type [enabled by default]
    pHeavyData = (unsigned char*)SvPV(svHeavyData, nHeavyDataLen);
    ^
    In file included from /usr/lib64/perl5/CORE/perl.h:5030:0,
    from ActEncrypt1024.xs:5:
    /usr/lib64/perl5/CORE/proto.h:3713:21: note: expected 'STRLEN * const'
    but argument is of type 'unsigned int *'
    PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN
    *const lp, const I32 flags);
    ^
    ActEncrypt1024.xs:142:3: warning: passing argument 3 of
    'Perl_sv_2pv_flags' from incompatible pointer type [enabled by default]
    pLightData = (unsigned char*)SvPV(svLightData, nLightDataLen);
    ^
    In file included from /usr/lib64/perl5/CORE/perl.h:5030:0,
    from ActEncrypt1024.xs:5:
    /usr/lib64/perl5/CORE/proto.h:3713:21: note: expected 'STRLEN * const'
    but argument is of type 'unsigned int *'
    PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN
    *const lp, const I32 flags);
    ^
    In file included from ActEncrypt1024.xs:6:0:
    /usr/lib64/perl5/CORE/XSUB.h:175:28: warning: unused variable 'targ'
    [-Wunused-variable]
    #define dXSTARG SV * const targ = ((PL_op->op_private &
    OPpENTERSUB_HASTARG) \
    ^
    ActEncrypt1024.c:277:2: note: in expansion of macro 'dXSTARG'
    dXSTARG;
    ^
    make: *** [ActEncrypt1024.o] Error 1
    There is a ticket open with Sellerdeck from the client, but its now a week later and have not heard anything. Clients website is down for taking orders so hoping someone in the forums may know how to resolve this.

    Forgot to add:

    Centos 7
    Code:
    uname -a
    Linux hostname.domainname 3.10.0-042stab116.1 #1 SMP Wed May 4 16:21:02 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux
    
    perl -v
    
    This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
    (with 29 registered patches, see perl -V for more detail)
Working...
X