Created attachment 458516 [details] build.log x86_64-pc-linux-gnu-gcc -c -I/usr/include -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -DVERSION=\"1.72\" -DXS_VERSION=\"1.72\" -fPIC "-I/usr/lib64/perl5/5.22.3/x86_64-linux/CORE" SSLeay.c SSLeay.xs: In function 'handler_list_md_fn': SSLeay.xs:398:25: error: 'EVP_MD_FLAG_PKEY_DIGEST' undeclared (first use in this function) if (EVP_MD_flags(m) & EVP_MD_FLAG_PKEY_DIGEST) return; /* Skip clones */ ^ SSLeay.xs:398:25: note: each undeclared identifier is reported only once for each function it appears in SSLeay.xs: In function 'XS_Net__SSLeay_P_X509_REQ_get_attr': SSLeay.xs:2739:16: error: dereferencing pointer to incomplete type if (att->single) { ^ SSLeay.xs:2740:21: error: dereferencing pointer to incomplete type s = (att->value.single->value.asn1_string); ^ SSLeay.xs:2744:41: error: dereferencing pointer to incomplete type count = sk_ASN1_TYPE_num(att->value.set); ^ SSLeay.xs:2746:44: error: dereferencing pointer to incomplete type s = (sk_ASN1_TYPE_value(att->value.set, i)->value.asn1_string); ^ SSLeay.xs: In function 'XS_Net__SSLeay_CTX_need_tmp_RSA': SSLeay.xs:4533:29: error: 'SSL_CTRL_NEED_TMP_RSA' undeclared (first use in this function) RETVAL = SSL_CTX_ctrl(ctx,SSL_CTRL_NEED_TMP_RSA,0,NULL); ^ SSLeay.xs: In function 'XS_Net__SSLeay_set_state': SSLeay.xs:4641:6: error: dereferencing pointer to incomplete type ssl->state = state; ^ SSLeay.xs: In function 'XS_Net__SSLeay_need_tmp_RSA': SSLeay.xs:4648:25: error: 'SSL_CTRL_NEED_TMP_RSA' undeclared (first use in this function) RETVAL = SSL_ctrl(ssl,SSL_CTRL_NEED_TMP_RSA,0,NULL); ^ SSLeay.xs: In function 'XS_Net__SSLeay_session_reused': SSLeay.xs:4672:25: error: 'SSL_CTRL_GET_SESSION_REUSED' undeclared (first use in this function) RETVAL = SSL_ctrl(ssl,SSL_CTRL_GET_SESSION_REUSED,0,NULL); ^ SSLeay.xs: In function 'XS_Net__SSLeay_set_tmp_rsa': SSLeay.xs:4722:25: error: 'SSL_CTRL_SET_TMP_RSA' undeclared (first use in this function) RETVAL = SSL_ctrl(ssl,SSL_CTRL_SET_TMP_RSA,0,(char *)rsa); ^ In file included from /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/perl.h:5552:0, from SSLeay.xs:141: SSLeay.xs: In function 'XS_Net__SSLeay_SESSION_get_master_key': SSLeay.xs:4863:37: error: dereferencing pointer to incomplete type sv_setpvn(ST(0), (const char*)s->master_key, s->master_key_length); ^ /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/embed.h:664:49: note: in definition of macro 'sv_setpvn' #define sv_setpvn(a,b,c) Perl_sv_setpvn(aTHX_ a,b,c) ^ SSLeay.xs:4863:52: error: dereferencing pointer to incomplete type sv_setpvn(ST(0), (const char*)s->master_key, s->master_key_length); ^ /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/embed.h:664:51: note: in definition of macro 'sv_setpvn' #define sv_setpvn(a,b,c) Perl_sv_setpvn(aTHX_ a,b,c) ^ SSLeay.xs: In function 'XS_Net__SSLeay_SESSION_set_master_key': SSLeay.xs:4873:14: error: dereferencing pointer to incomplete type memcpy(s->master_key, key, len); ^ SSLeay.xs:4874:7: error: dereferencing pointer to incomplete type s->master_key_length = len; ^ In file included from /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/perl.h:5552:0, from SSLeay.xs:141: SSLeay.xs: In function 'XS_Net__SSLeay_get_client_random': SSLeay.xs:4881:37: error: dereferencing pointer to incomplete type sv_setpvn(ST(0), (const char*)s->s3->client_random, SSL3_RANDOM_SIZE); ^ /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/embed.h:664:49: note: in definition of macro 'sv_setpvn' #define sv_setpvn(a,b,c) Perl_sv_setpvn(aTHX_ a,b,c) ^ SSLeay.xs: In function 'XS_Net__SSLeay_get_server_random': SSLeay.xs:4888:37: error: dereferencing pointer to incomplete type sv_setpvn(ST(0), (const char*)s->s3->server_random, SSL3_RANDOM_SIZE); ^ /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/embed.h:664:49: note: in definition of macro 'sv_setpvn' #define sv_setpvn(a,b,c) Perl_sv_setpvn(aTHX_ a,b,c) ^ SSLeay.xs: In function 'XS_Net__SSLeay_get_keyblock_size': SSLeay.xs:4895:4: error: dereferencing pointer to incomplete type s->enc_read_ctx == NULL || ^ SSLeay.xs:4896:4: error: dereferencing pointer to incomplete type s->enc_read_ctx->cipher == NULL || ^ SSLeay.xs:4897:4: error: dereferencing pointer to incomplete type s->read_hash == NULL) ^ SSLeay.xs:4906:7: error: dereferencing pointer to incomplete type c = s->enc_read_ctx->cipher; ^ SSLeay.xs:4908:7: error: dereferencing pointer to incomplete type if (s->s3) ^ SSLeay.xs:4909:17: error: dereferencing pointer to incomplete type md_size = s->s3->tmp.new_mac_secret_size; ^ SSLeay.xs: In function 'XS_Net__SSLeay_P_X509_get_signature_alg': SSLeay.xs:5385:20: error: dereferencing pointer to incomplete type RETVAL = (x->cert_info->signature->algorithm); ^ SSLeay.xs: In function 'XS_Net__SSLeay_P_X509_get_pubkey_alg': SSLeay.xs:5393:20: error: dereferencing pointer to incomplete type RETVAL = (x->cert_info->key->algor->algorithm); ^ SSLeay.xs: In function 'XS_Net__SSLeay_OCSP_response_verify': SSLeay.xs:5691:11: error: dereferencing pointer to incomplete type if (!bsr->certs) bsr->certs = sk_X509_new_null(); ^ SSLeay.xs:5691:23: error: dereferencing pointer to incomplete type if (!bsr->certs) bsr->certs = sk_X509_new_null(); ^ SSLeay.xs:5692:19: error: dereferencing pointer to incomplete type sk_X509_push(bsr->certs,X509_dup(sk_X509_value(chain,i))); ^ SSLeay.xs:5704:23: error: dereferencing pointer to incomplete type sk_X509_push(bsr->certs,X509_dup(issuer)); ^ SSLeay.xs: In function 'XS_Net__SSLeay_OCSP_response_results': SSLeay.xs:5730:11: error: dereferencing pointer to incomplete type sks = bsr->tbsResponseData->responses; ^ SSLeay.xs:5754:62: error: dereferencing pointer to incomplete type if (!OCSP_id_cmp(certid,sk_OCSP_SINGLERESP_value(sks,k)->certId)) { ^ SSLeay.xs:5763:41: error: dereferencing pointer to incomplete type } else if (!OCSP_check_validity(sir->thisUpdate,sir->nextUpdate,0,-1)) { ^ SSLeay.xs:5763:57: error: dereferencing pointer to incomplete type } else if (!OCSP_check_validity(sir->thisUpdate,sir->nextUpdate,0,-1)) { ^ SSLeay.xs:5765:20: error: dereferencing pointer to incomplete type } else if (sir->certStatus->type == V_OCSP_CERTSTATUS_REVOKED) { ^ SSLeay.xs:5767:20: error: dereferencing pointer to incomplete type } else if (sir->certStatus->type != V_OCSP_CERTSTATUS_GOOD) { ^ SSLeay.xs:5777:36: error: dereferencing pointer to incomplete type int len = i2d_OCSP_CERTID(sir->certId,NULL); ^ SSLeay.xs:5782:26: error: dereferencing pointer to incomplete type i2d_OCSP_CERTID(sir->certId,&pi); ^ In file included from /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/perl.h:5552:0, from SSLeay.xs:141: SSLeay.xs:5795:15: error: dereferencing pointer to incomplete type newSViv(sir->certStatus->type),0); ^ /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/embed.h:222:77: note: in definition of macro 'hv_common_key_len' define hv_common_key_len(a,b,c,d,e,f) Perl_hv_common_key_len(aTHX_ a,b,c,d,e,f) ^ SSLeay.xs:5794:7: note: in expansion of macro 'hv_store' hv_store(details,"statusType",10, ^ SSLeay.xs:5795:4: note: in expansion of macro 'newSViv' newSViv(sir->certStatus->type),0); ^ SSLeay.xs:5796:14: error: dereferencing pointer to incomplete type if (sir->nextUpdate) hv_store(details,"nextUpdate",10, ^ In file included from /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/perl.h:5552:0, from SSLeay.xs:141: SSLeay.xs:5797:31: error: dereferencing pointer to incomplete type newSViv(ASN1_TIME_timet(sir->nextUpdate)),0); ^ /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/embed.h:222:77: note: in definition of macro 'hv_common_key_len' define hv_common_key_len(a,b,c,d,e,f) Perl_hv_common_key_len(aTHX_ a,b,c,d,e,f) ^ SSLeay.xs:5796:28: note: in expansion of macro 'hv_store' if (sir->nextUpdate) hv_store(details,"nextUpdate",10, ^ SSLeay.xs:5797:4: note: in expansion of macro 'newSViv' newSViv(ASN1_TIME_timet(sir->nextUpdate)),0); ^ SSLeay.xs:5798:14: error: dereferencing pointer to incomplete type if (sir->thisUpdate) hv_store(details,"thisUpdate",10, ^ In file included from /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/perl.h:5552:0, from SSLeay.xs:141: SSLeay.xs:5799:31: error: dereferencing pointer to incomplete type newSViv(ASN1_TIME_timet(sir->thisUpdate)),0); ^ /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/embed.h:222:77: note: in definition of macro 'hv_common_key_len' define hv_common_key_len(a,b,c,d,e,f) Perl_hv_common_key_len(aTHX_ a,b,c,d,e,f) ^ SSLeay.xs:5798:28: note: in expansion of macro 'hv_store' if (sir->thisUpdate) hv_store(details,"thisUpdate",10, ^ SSLeay.xs:5799:4: note: in expansion of macro 'newSViv' newSViv(ASN1_TIME_timet(sir->thisUpdate)),0); ^ SSLeay.xs:5800:14: error: dereferencing pointer to incomplete type if (sir->certStatus->type == V_OCSP_CERTSTATUS_REVOKED) { ^ SSLeay.xs:5801:31: error: dereferencing pointer to incomplete type OCSP_REVOKEDINFO *rev = sir->certStatus->value.revoked; ^ In file included from /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/perl.h:5552:0, from SSLeay.xs:141: SSLeay.xs:5803:27: error: dereferencing pointer to incomplete type ASN1_TIME_timet(rev->revocationTime)),0); ^ /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/embed.h:222:77: note: in definition of macro 'hv_common_key_len' define hv_common_key_len(a,b,c,d,e,f) Perl_hv_common_key_len(aTHX_ a,b,c,d,e,f) ^ SSLeay.xs:5802:4: note: in expansion of macro 'hv_store' hv_store(details,"revocationTime",14,newSViv( ^ SSLeay.xs:5802:41: note: in expansion of macro 'newSViv' hv_store(details,"revocationTime",14,newSViv( ^ SSLeay.xs:5805:31: error: dereferencing pointer to incomplete type ASN1_ENUMERATED_get(rev->revocationReason)),0); ^ /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/embed.h:222:77: note: in definition of macro 'hv_common_key_len' define hv_common_key_len(a,b,c,d,e,f) Perl_hv_common_key_len(aTHX_ a,b,c,d,e,f) ^ SSLeay.xs:5804:4: note: in expansion of macro 'hv_store' hv_store(details,"revocationReason",16,newSViv( ^ SSLeay.xs:5804:43: note: in expansion of macro 'newSViv' hv_store(details,"revocationReason",16,newSViv( ^ SSLeay.xs:5808:11: error: dereferencing pointer to incomplete type rev->revocationReason)),0),0); ^ /usr/lib64/perl5/5.22.3/x86_64-linux/CORE/embed.h:222:77: note: in definition of macro 'hv_common_key_len' define hv_common_key_len(a,b,c,d,e,f) Perl_hv_common_key_len(aTHX_ a,b,c,d,e,f) ^ SSLeay.xs:5806:4: note: in expansion of macro 'hv_store' hv_store(details,"revocationReason_str",20,newSVpv( ^ SSLeay.xs:5806:47: note: in expansion of macro 'newSVpv' hv_store(details,"revocationReason_str",20,newSVpv( ^ SSLeay.xs:5814:34: error: dereferencing pointer to incomplete type time_t nu = ASN1_TIME_timet(sir->nextUpdate); ^ Makefile:359: recipe for target 'SSLeay.o' failed make: *** [SSLeay.o] Error 1 * ERROR: dev-perl/Net-SSLeay-1.720.0-r1::gentoo failed (compile phase): * emake failed
localhost ~ # emerge --info '=dev-perl/Net-SSLeay-1.720.0-r1::gentoo' openssl Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-4.9.4, glibc-2.22-r4, 4.4.6-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.3 KiB Mem: 4043380 total, 3480416 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Tue, 03 Jan 2017 00:45:01 +0000 sh bash 4.3_p48-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p48-r1::gentoo dev-lang/perl: 5.22.3_rc4::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.22.4::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.4::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= dev-perl/Net-SSLeay-1.720.0-r1::gentoo was built with the following: USE="test -examples -libressl -minimal" ABI_X86="64" dev-libs/openssl-1.1.0c::gentoo was built with the following: USE="asm bindist zlib -rfc3779 -sctp -static-libs -test -tls-heartbeat -vanilla" ABI_X86="64 -32 -x32" CPU_FLAGS_X86="sse2" CFLAGS="-O2 -pipe -fno-strict-aliasing -Wa,--noexecstack" CXXFLAGS="-O2 -pipe -fno-strict-aliasing -Wa,--noexecstack" localhost ~ # emerge -pqv '=dev-perl/Net-SSLeay-1.720.0-r1::gentoo' openssl [ebuild R ] dev-libs/openssl-1.1.0c USE="asm bindist zlib -rfc3779 -sctp -static-libs {-test} -tls-heartbeat -vanilla" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="(sse2)" [ebuild R ] dev-perl/Net-SSLeay-1.720.0-r1 USE="{test} -examples -libressl -minimal" * IMPORTANT: 12 news items need reading for repository 'gentoo'. * Use eselect news read to view new items.
Created attachment 458518 [details, diff] 466.patch Upstream has fixed the build issues in svn revision r466 (attached). The tests still fail for me with several errors like: # at t/local/03_use.t line 8. # Tried to use 'Net::SSLeay'. # Error: Can't load '/var/tmp/portage/dev-perl/Net-SSLeay-1.720.0-r1/work/Net-SSLeay-1.72/blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: /var/tmp/portage/dev-perl/Net-SSLeay-1.720.0-r1/work/Net-SSLeay-1.72/blib/arch/auto/Net/SSLeay/SSLeay.so: undefined symbol: TLSv1_method at /usr/lib64/perl5/5.22.3/x86_64-linux/DynaLoader.pm line 193.
Can you confirm if this is fixed in 1.780?
Upstream indicates this bug is fixed in Net-SSLeay >= 1.760.0
Created attachment 523188 [details] build.log (dev-perl/Net-SSLeay-1.820.0) This is not properly fixed. I get lots of warnings like the following in dev-perl/Net-SSLeay-1.820.0: SSLeay.xs:956:9: warning: implicit declaration of function ‘BN_hex2bn’ [-Wimplicit-function-declaration] Later, other packages (namely dev-perl/IO-Socket-SSL-2.52.0) fail to link against dev-perl/Net-SSLeay, due to unresolved symbols.
(In reply to Dennis Schridde from comment #5) > Created attachment 523188 [details] > build.log (dev-perl/Net-SSLeay-1.820.0) > > This is not properly fixed. I get lots of warnings like the following in > dev-perl/Net-SSLeay-1.820.0: > SSLeay.xs:956:9: warning: implicit declaration of function ‘BN_hex2bn’ > [-Wimplicit-function-declaration] > > Later, other packages (namely dev-perl/IO-Socket-SSL-2.52.0) fail to link > against dev-perl/Net-SSLeay, due to unresolved symbols. Note you're using 1.1.0g, which may-or-may-not differ from 1.1.0c See: https://rt.cpan.org/Ticket/Display.html?id=124371 Which would be a new bug.