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=592534 )
Subject: | build.log |
* Package: dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2
* 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-RSA-0.28.tar.gz to /var/tmp/portage/dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2/work
>>> Source unpacked in /var/tmp/portage/dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2/work
>>> Preparing source in /var/tmp/portage/dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2/work/Crypt-OpenSSL-RSA-0.28 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2/work/Crypt-OpenSSL-RSA-0.28 ...
* Using ExtUtils::MakeMaker
* perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2/image/
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Crypt::OpenSSL::RSA
Writing MYMETA.yml and MYMETA.json
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2/work/Crypt-OpenSSL-RSA-0.28 ...
* 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 RSA.pm blib/lib/Crypt/OpenSSL/RSA.pm
AutoSplitting blib/lib/Crypt/OpenSSL/RSA.pm (blib/lib/auto/Crypt/OpenSSL/RSA)
Running Mkbootstrap for Crypt::OpenSSL::RSA ()
chmod 644 "RSA.bs"
"/usr/bin/perl" "/usr/lib64/perl5/5.24.0/ExtUtils/xsubpp" -typemap "/usr/lib64/perl5/5.24.0/ExtUtils/typemap" -typemap "typemap" RSA.xs > RSA.xsc && mv RSA.xsc RSA.c
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.28\" -DXS_VERSION=\"0.28\" -fPIC "-I/usr/lib64/perl5/5.24.0/x86_64-linux/CORE" -DPERL5 -DOPENSSL_NO_KRB5 RSA.c
RSA.xs: In function â_is_privateâ:
RSA.xs:52:22: error: dereferencing pointer to incomplete type âRSA {aka struct rsa_st}â
return(p_rsa->rsa->d != NULL);
^
RSA.xs: In function âXS_Crypt__OpenSSL__RSA_generate_keyâ:
RSA.xs:301:26: warning: implicit declaration of function âRSA_generate_keyâ [-Wimplicit-function-declaration]
CHECK_OPEN_SSL(rsa = RSA_generate_key(SvIV(bitsSV), exponent, NULL, NULL));
^
RSA.xs:41:40: note: in definition of macro âCHECK_OPEN_SSLâ
#define CHECK_OPEN_SSL(p_result) if (!(p_result)) croakSsl(__FILE__, __LINE__);
^
RSA.xs:301:24: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
CHECK_OPEN_SSL(rsa = RSA_generate_key(SvIV(bitsSV), exponent, NULL, NULL));
^
RSA.xs:41:40: note: in definition of macro âCHECK_OPEN_SSLâ
#define CHECK_OPEN_SSL(p_result) if (!(p_result)) croakSsl(__FILE__, __LINE__);
^
RSA.xs: In function âboot_Crypt__OpenSSL__RSAâ:
RSA.xs:214:5: warning: implicit declaration of function âERR_load_crypto_stringsâ [-Wimplicit-function-declaration]
ERR_load_crypto_strings();
^
make: *** [Makefile:349: RSA.o] Error 1
* ERROR: dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2/temp/environment'.
* Working directory: '/var/tmp/portage/dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2/work/Crypt-OpenSSL-RSA-0.28'
* S: '/var/tmp/portage/dev-perl/Crypt-OpenSSL-RSA-0.280.0-r2/work/Crypt-OpenSSL-RSA-0.28'