Skip Menu |

This queue is for tickets about the Crypt-OpenSSL-EC CPAN distribution.

Report information
The Basics
Id: 89649
Status: resolved
Worked: 2 hours (120 min)
Priority: 0/
Queue: Crypt-OpenSSL-EC

People
Owner: MIKEM [...] cpan.org
Requestors: rwfranks [...] acm.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.4
Fixed in: 0.4



Subject: Fails to compile on Fedora19
Attempt to install using cpan reports compilation errors and fails pre-installation tests. This is a different issue from long-standing gripe about missing EC support in openssl library, which RH claims to be resolved. Please find attached install.log Show quoted text
> cpan |& tee install.log
perl 5.16 Your help would be greatly appreciated Dick F
Subject: install.log
Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v2.00) Enter 'h' for help. Reading '/home/rwf/.cpan/Metadata' Database was generated on Sun, 20 Oct 2013 23:41:03 GMT Running install for module 'Crypt::OpenSSL::EC' Running make for M/MI/MIKEM/Crypt-OpenSSL-EC-0.4.tar.gz Checksum for /home/rwf/.cpan/sources/authors/id/M/MI/MIKEM/Crypt-OpenSSL-EC-0.4.tar.gz ok Scanning cache /home/rwf/.cpan/build for sizes ............................................................................DONE CPAN.pm: Building M/MI/MIKEM/Crypt-OpenSSL-EC-0.4.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Crypt::OpenSSL::EC Writing MYMETA.yml and MYMETA.json cp lib/Crypt/OpenSSL/EC.pm blib/lib/Crypt/OpenSSL/EC.pm AutoSplitting blib/lib/Crypt/OpenSSL/EC.pm (blib/lib/auto/Crypt/OpenSSL/EC) /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap -typemap typemap EC.xs > EC.xsc && mv EC.xsc EC.c gcc -c -I. -I/usr/include -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 --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DVERSION=\"0.4\" -DXS_VERSION=\"0.4\" -fPIC "-I/usr/lib/perl5/CORE" -DPERL5 -DOPENSSL_NO_KRB5 EC.c EC.c: In function ‘XS_Crypt__OpenSSL__EC_EC_GF2m_simple_method’: EC.c:337:2: warning: implicit declaration of function ‘EC_GF2m_simple_method’ [-Wimplicit-function-declaration] RETVAL = EC_GF2m_simple_method(); ^ EC.c:337:9: warning: assignment makes pointer from integer without a cast [enabled by default] RETVAL = EC_GF2m_simple_method(); ^ EC.c: In function ‘XS_Crypt__OpenSSL__EC__EC_GROUP_set_curve_GF2m’: EC.c:1222:2: warning: implicit declaration of function ‘EC_GROUP_set_curve_GF2m’ [-Wimplicit-function-declaration] RETVAL = EC_GROUP_set_curve_GF2m(group, p, a, b, ctx); ^ EC.c: In function ‘XS_Crypt__OpenSSL__EC__EC_GROUP_get_curve_GF2m’: EC.c:1288:2: warning: implicit declaration of function ‘EC_GROUP_get_curve_GF2m’ [-Wimplicit-function-declaration] RETVAL = EC_GROUP_get_curve_GF2m(group, p, a, b, ctx); ^ EC.c: In function ‘XS_Crypt__OpenSSL__EC__EC_GROUP_new_curve_GF2m’: EC.c:1535:2: warning: implicit declaration of function ‘EC_GROUP_new_curve_GF2m’ [-Wimplicit-function-declaration] RETVAL = EC_GROUP_new_curve_GF2m(p, a, b, ctx); ^ EC.c:1535:9: warning: assignment makes pointer from integer without a cast [enabled by default] RETVAL = EC_GROUP_new_curve_GF2m(p, a, b, ctx); ^ EC.xs: In function ‘XS_Crypt__OpenSSL__EC__EC_GROUP_get_trinomial_basis’: EC.xs:184:3: warning: implicit declaration of function ‘EC_GROUP_get_trinomial_basis’ [-Wimplicit-function-declaration] RETVAL = EC_GROUP_get_trinomial_basis(group, &k); ^ EC.xs: In function ‘XS_Crypt__OpenSSL__EC__EC_GROUP_get_pentanomial_basis’: EC.xs:192:3: warning: implicit declaration of function ‘EC_GROUP_get_pentanomial_basis’ [-Wimplicit-function-declaration] RETVAL = EC_GROUP_get_pentanomial_basis(group, &k1, &k2, &k3); ^ EC.c: In function ‘XS_Crypt__OpenSSL__EC__EC_POINT_set_affine_coordinates_GF2m’: EC.c:2251:2: warning: implicit declaration of function ‘EC_POINT_set_affine_coordinates_GF2m’ [-Wimplicit-function-declaration] RETVAL = EC_POINT_set_affine_coordinates_GF2m(group, p, x, y, ctx); ^ EC.c: In function ‘XS_Crypt__OpenSSL__EC__EC_POINT_get_affine_coordinates_GF2m’: EC.c:2311:2: warning: implicit declaration of function ‘EC_POINT_get_affine_coordinates_GF2m’ [-Wimplicit-function-declaration] RETVAL = EC_POINT_get_affine_coordinates_GF2m(group, p, x, y, ctx); ^ EC.c: In function ‘XS_Crypt__OpenSSL__EC__EC_POINT_set_compressed_coordinates_GF2m’: EC.c:2362:2: warning: implicit declaration of function ‘EC_POINT_set_compressed_coordinates_GF2m’ [-Wimplicit-function-declaration] RETVAL = EC_POINT_set_compressed_coordinates_GF2m(group, p, x, y_bit, ctx); ^ EC.c: In function ‘XS_Crypt__OpenSSL__EC_constant’: ./const-xs.inc:38:34: warning: ‘iv’ may be used uninitialized in this function [-Wmaybe-uninitialized] PUSHi(iv); ^ ./const-xs.inc:11:5: note: ‘iv’ was declared here IV iv; ^ Running Mkbootstrap for Crypt::OpenSSL::EC () chmod 644 EC.bs rm -f blib/arch/auto/Crypt/OpenSSL/EC/EC.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -Wl,-z,relro -L/usr/local/lib EC.o -o blib/arch/auto/Crypt/OpenSSL/EC/EC.so \ -L/usr/lib -lcrypto \ chmod 755 blib/arch/auto/Crypt/OpenSSL/EC/EC.so cp EC.bs blib/arch/auto/Crypt/OpenSSL/EC/EC.bs chmod 644 blib/arch/auto/Crypt/OpenSSL/EC/EC.bs Manifying blib/man3/Crypt::OpenSSL::EC.3pm MIKEM/Crypt-OpenSSL-EC-0.4.tar.gz /usr/bin/make -- OK 'YAML' not installed, will not store persistent state Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # Failed test 'use Crypt::OpenSSL::EC;' # at t/Crypt-OpenSSL-EC.t line 12. # Tried to use 'Crypt::OpenSSL::EC'. # Error: Can't load '/home/rwf/.cpan/build/Crypt-OpenSSL-EC-0.4-WGjbqb/blib/arch/auto/Crypt/OpenSSL/EC/EC.so' for module Crypt::OpenSSL::EC: /home/rwf/.cpan/build/Crypt-OpenSSL-EC-0.4-WGjbqb/blib/arch/auto/Crypt/OpenSSL/EC/EC.so: undefined symbol: EC_GROUP_new_curve_GF2m at /usr/lib/perl5/DynaLoader.pm line 190. # at (eval 4) line 2. # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. # Failed test 'Constants' # at t/Crypt-OpenSSL-EC.t line 113. &Crypt::OpenSSL::EC::constant not defined at t/Crypt-OpenSSL-EC.t line 121. # Looks like you planned 9 tests but ran 2. # Looks like you failed 2 tests of 2 run. # Looks like your test exited with 255 just after 2. t/Crypt-OpenSSL-EC.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 9/9 subtests Subroutine Crypt::OpenSSL::Bignum::_free_BN redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::new_from_word redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::new_from_decimal redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::new_from_hex redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::new_from_bin redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::zero redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::one redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::to_decimal redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::to_hex redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::to_bin redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::get_word redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::add redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::sub redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::mul redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::div redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::sqr redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::mod redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::mod_mul redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::exp redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::mod_exp redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::mod_inverse redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::gcd redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::cmp redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::is_zero redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::is_one redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::is_odd redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::copy redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::pointer_copy redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::CTX::new redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. Subroutine Crypt::OpenSSL::Bignum::CTX::_free_BN_CTX redefined at /usr/lib/perl5/vendor_perl/Crypt/OpenSSL/Bignum/CTX.pm line 14. # Failed test 'use Crypt::OpenSSL::EC;' # at t/prime-field.t line 8. # Tried to use 'Crypt::OpenSSL::EC'. # Error: Can't load '/home/rwf/.cpan/build/Crypt-OpenSSL-EC-0.4-WGjbqb/blib/arch/auto/Crypt/OpenSSL/EC/EC.so' for module Crypt::OpenSSL::EC: /home/rwf/.cpan/build/Crypt-OpenSSL-EC-0.4-WGjbqb/blib/arch/auto/Crypt/OpenSSL/EC/EC.so: undefined symbol: EC_GROUP_new_curve_GF2m at /usr/lib/perl5/DynaLoader.pm line 190. # at (eval 4) line 2. # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. &Crypt::OpenSSL::EC::constant not defined at t/prime-field.t line 29. # Looks like you planned 263 tests but ran 8. # Looks like you failed 1 test of 8 run. # Looks like your test exited with 255 just after 8. t/prime-field.t ....... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 256/263 subtests Test Summary Report ------------------- t/Crypt-OpenSSL-EC.t (Wstat: 65280 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 255 Parse errors: Bad plan. You planned 9 tests but ran 2. t/prime-field.t (Wstat: 65280 Tests: 8 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 263 tests but ran 8. Files=2, Tests=10, 0 wallclock secs ( 0.05 usr 0.00 sys + 0.09 cusr 0.01 csys = 0.15 CPU) Result: FAIL Failed 2/2 test programs. 3/10 subtests failed. make: *** [test_dynamic] Error 255 MIKEM/Crypt-OpenSSL-EC-0.4.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports MIKEM/Crypt-OpenSSL-EC-0.4.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: MIKEM/Crypt-OpenSSL-EC-0.4.tar.gz : make_test NO Terminal does not support GetHistory. Lockfile removed.
Hi Dick, Thanks for your report. New version 0.5 should now allow it to build on openssls that do not have certain EC2M functions such as the default one on Fedora 19. However you should note that some parts of the test suite for this module will fail because of unsupported curves on the default openssl on Fedora 19. Cheers. On Mon Oct 21 08:26:27 2013, rwfranks@acm.org wrote: Show quoted text
> Attempt to install using cpan reports compilation errors and fails > pre-installation tests. > > This is a different issue from long-standing gripe about missing EC > support in openssl library, which RH claims to be resolved. > > > Please find attached install.log >
> > cpan |& tee install.log
> > > perl 5.16 > > > Your help would be greatly appreciated > > Dick F
Subject: Re: [rt.cpan.org #89649] Fails to compile on Fedora19
Date: Wed, 23 Oct 2013 21:12:37 +0100
To: bug-Crypt-OpenSSL-EC [...] rt.cpan.org
From: Dick Franks <rwfranks [...] acm.org>
Mike, Thanks your prompt response. I will see where that gets me. It is more than a little annoying that RH sees fit to screw about with upstream developers' work. Dick Dick Franks Show quoted text
________________________ On 23 October 2013 06:17, Mike McCauley via RT < bug-Crypt-OpenSSL-EC@rt.cpan.org> wrote:
> <URL: https://rt.cpan.org/Ticket/Display.html?id=89649 > > > Hi Dick, > > Thanks for your report. > > New version 0.5 should now allow it to build on openssls that do not have > certain EC2M functions such as the default one on Fedora 19. > > However you should note that some parts of the test suite for this module > will fail because of unsupported curves on the default openssl on Fedora 19. > > Cheers. > > > On Mon Oct 21 08:26:27 2013, rwfranks@acm.org wrote:
> > Attempt to install using cpan reports compilation errors and fails > > pre-installation tests. > > > > This is a different issue from long-standing gripe about missing EC > > support in openssl library, which RH claims to be resolved. > > > > > > Please find attached install.log > >
> > > cpan |& tee install.log
> > > > > > perl 5.16 > > > > > > Your help would be greatly appreciated > > > > Dick F
> > > >