Skip Menu |

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

Report information
The Basics
Id: 117482
Status: new
Priority: 0/
Queue: Crypt-OpenSSL-Bignum

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Compiliation fails with OpenSSL 1.1

OpenSSL 1.1 is breaking all the things without warning and its a $adjectives{big}[int(rand*1000)] map { $expletives[int(rand*1000)] } 1, 2

Attached is the build log from gentoo building it showing the compile failure ( cf: https://bugs.gentoo.org/show_bug.cgi?id=592532 )

 

Subject: build.log
* Package: dev-perl/Crypt-OpenSSL-Bignum-0.60.0 * Repository: gentoo * Maintainer: perl@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking Crypt-OpenSSL-Bignum-0.06.tar.gz to /var/tmp/portage/dev-perl/Crypt-OpenSSL-Bignum-0.60.0/work >>> Source unpacked in /var/tmp/portage/dev-perl/Crypt-OpenSSL-Bignum-0.60.0/work >>> Preparing source in /var/tmp/portage/dev-perl/Crypt-OpenSSL-Bignum-0.60.0/work/Crypt-OpenSSL-Bignum-0.06 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-perl/Crypt-OpenSSL-Bignum-0.60.0/work/Crypt-OpenSSL-Bignum-0.06 ... * Using ExtUtils::MakeMaker * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/Crypt-OpenSSL-Bignum-0.60.0/image/ Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Crypt::OpenSSL::Bignum Writing MYMETA.yml and MYMETA.json >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-perl/Crypt-OpenSSL-Bignum-0.60.0/work/Crypt-OpenSSL-Bignum-0.06 ... * emake OTHERLDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed make -j1 'OTHERLDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed' cp Bignum/CTX.pm blib/lib/Crypt/OpenSSL/Bignum/CTX.pm cp Bignum.pm blib/lib/Crypt/OpenSSL/Bignum.pm Running Mkbootstrap for Crypt::OpenSSL::Bignum () chmod 644 "Bignum.bs" "/usr/bin/perl" "/usr/lib64/perl5/5.24.0/ExtUtils/xsubpp" -typemap "/usr/lib64/perl5/5.24.0/ExtUtils/typemap" -typemap "typemap" Bignum.xs > Bignum.xsc && mv Bignum.xsc Bignum.c Please specify prototyping behavior for Bignum.xs (see perlxs manual) x86_64-pc-linux-gnu-gcc -c -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=native -mtune=native -O2 -pipe -DVERSION=\"0.06\" -DXS_VERSION=\"0.06\" -fPIC "-I/usr/lib64/perl5/5.24.0/x86_64-linux/CORE" -DPERL5 -DOPENSSL_NO_KRB5 Bignum.c Bignum.xs: In function ‘XS_Crypt__OpenSSL__Bignum_new’: Bignum.xs:95:5: error: invalid use of void expression checkOpenSslCall( BN_zero( bn ) ); ^ Bignum.xs: In function ‘XS_Crypt__OpenSSL__Bignum_zero’: Bignum.xs:106:5: error: invalid use of void expression checkOpenSslCall( BN_zero( bn ) ); ^ Bignum.xs: In function ‘boot_Crypt__OpenSSL__Bignum’: Bignum.xs:32:5: warning: implicit declaration of function ‘ERR_load_crypto_strings’ [-Wimplicit-function-declaration] ERR_load_crypto_strings(); ^ make: *** [Makefile:348: Bignum.o] Error 1 * ERROR: dev-perl/Crypt-OpenSSL-Bignum-0.60.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-perl/Crypt-OpenSSL-Bignum-0.60.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-perl/Crypt-OpenSSL-Bignum-0.60.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-perl/Crypt-OpenSSL-Bignum-0.60.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-perl/Crypt-OpenSSL-Bignum-0.60.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-perl/Crypt-OpenSSL-Bignum-0.60.0/work/Crypt-OpenSSL-Bignum-0.06' * S: '/var/tmp/portage/dev-perl/Crypt-OpenSSL-Bignum-0.60.0/work/Crypt-OpenSSL-Bignum-0.06'
Subject: 0001-Fix-building-with-OpenSSL-1.1.0.patch
From d9ddaa210a1b91deb6ea6fcea4cb274f634e482d Mon Sep 17 00:00:00 2001 From: Mark Wright <gienah@gentoo.org> Date: Tue, 17 Oct 2017 16:50:01 +1100 Subject: Fix building with OpenSSL 1.1.0 Bug: https://bugs.gentoo.org/592532 Bug: https://rt.cpan.org/Ticket/Display.html?id=117482 Bug: https://github.com/kmx/perl-Crypt-OpenSSL-Bignum/pull/7 --- Bignum.xs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Bignum.xs b/Bignum.xs index d39dcff..149fa52 100755 --- a/Bignum.xs +++ b/Bignum.xs @@ -29,7 +29,11 @@ BIGNUM* sv2bn( SV* sv ) MODULE = Crypt::OpenSSL::Bignum PACKAGE = Crypt::OpenSSL::Bignum PREFIX = BN_ BOOT: +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) + OPENSSL_init_crypto(0, NULL); +#else ERR_load_crypto_strings(); +#endif void DESTROY(Crypt::OpenSSL::Bignum self) @@ -92,7 +96,7 @@ BN_new(CLASS) BIGNUM* bn; CODE: checkOpenSslCall( bn = BN_new() ); - checkOpenSslCall( BN_zero( bn ) ); + checkOpenSslCall( BN_set_word( bn, 0 ) ); RETVAL = bn; OUTPUT: RETVAL @@ -103,7 +107,7 @@ BN_zero(CLASS) BIGNUM *bn; CODE: checkOpenSslCall( bn = BN_new() ); - checkOpenSslCall( BN_zero( bn ) ); + checkOpenSslCall( BN_set_word( bn, 0 ) ); RETVAL = bn; OUTPUT: RETVAL -- 2.14.2