Skip Menu |
 

This queue is for tickets about the Net-SSLeay CPAN distribution.

Report information
The Basics
Id: 48916
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Net-SSLeay

People
Owner: MIKEM [...] cpan.org
Requestors: paul [...] city-fan.org
Cc:
AdminCc:

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



Subject: No MD2 in openssl 1.0
Download (untitled) / with headers
text/plain 2.9k
There's no MD2 support by default in openssl 1.0 (see http://www.openssl.org/docs/crypto/EVP_DigestInit.html#HISTORY), which leads to build failures (see attached): gcc -c -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.35\" -DXS_VERSION=\"1.35\" -fPIC "-I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE" SSLeay.c SSLeay.xs:98:25: error: openssl/md2.h: No such file or directory SSLeay.xs: In function 'ssleay_ctx_passwd_cb_new': SSLeay.xs:230: warning: value computed is not used SSLeay.xs: In function 'ssleay_ctx_cert_verify_cb_new': SSLeay.xs:364: warning: operation on 'cb' may be undefined SSLeay.xs:384: warning: value computed is not used SSLeay.xs: In function 'XS_Net__SSLeay_CTX_set_verify': SSLeay.xs:811: warning: value computed is not used SSLeay.xs:814: warning: value computed is not used SSLeay.xs: In function 'XS_Net__SSLeay_set_verify': SSLeay.xs:1144: warning: value computed is not used SSLeay.xs:1147: warning: value computed is not used SSLeay.c: In function 'XS_Net__SSLeay_get_session': SSLeay.c:2578: warning: unused variable 'ix' SSLeay.c: In function 'XS_Net__SSLeay_CTX_sessions': SSLeay.c:2816: error: 'LHASH' undeclared (first use in this function) SSLeay.c:2816: error: (Each undeclared identifier is reported only once SSLeay.c:2816: error: for each function it appears in.) SSLeay.c:2816: error: 'RETVAL' undeclared (first use in this function) SSLeay.c: In function 'XS_Net__SSLeay_library_init': SSLeay.c:3403: warning: unused variable 'ix' SSLeay.xs: In function 'XS_Net__SSLeay_X509_NAME_oneline': SSLeay.xs:1498: warning: suggest parentheses around assignment used as truth value SSLeay.xs: In function 'XS_Net__SSLeay_MD2': SSLeay.xs:1736: error: 'MD2_DIGEST_LENGTH' undeclared (first use in this function) SSLeay.xs:1741: warning: implicit declaration of function 'MD2' SSLeay.xs:1741: warning: assignment makes pointer from integer without a cast SSLeay.xs:1736: warning: unused variable 'md' SSLeay.c: In function 'XS_Net__SSLeay_SSLv2_method': SSLeay.c:4740: warning: assignment discards qualifiers from pointer target type SSLeay.c: In function 'XS_Net__SSLeay_SSLv3_method': SSLeay.c:4762: warning: assignment discards qualifiers from pointer target type SSLeay.c: In function 'XS_Net__SSLeay_TLSv1_method': SSLeay.c:4784: warning: assignment discards qualifiers from pointer target type SSLeay.c: In function 'XS_Net__SSLeay_get_ssl_method': SSLeay.c:4831: warning: assignment discards qualifiers from pointer target type SSLeay.c: In function 'XS_Net__SSLeay_get_current_cipher': SSLeay.c:6076: warning: assignment discards qualifiers from pointer target type SSLeay.c: In function 'XS_Net__SSLeay_SESSION_cmp': SSLeay.c:6335: warning: implicit declaration of function 'SSL_SESSION_cmp' make: *** [SSLeay.o] Error 1
Subject: netssleay.txt
Download netssleay.txt
text/plain 9.9k
Mock Version: 0.9.14 Mock Version: 0.9.14 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/perl-Net-SSLeay.spec'], False, '/var/lib/mock/dist-f12-openssl-572138-82942/root/', None, 86400, True, 0, 427, 102, None, logger=<mock.trace_decorator.getLog object at 0x2ba1208a8c10>) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/perl-Net-SSLeay.spec'] warning: Could not canonicalize hostname: x86-1.fedora.phx.redhat.com Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/perl-Net-SSLeay-1.35-6.fc12.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-Net-SSLeay.spec'], False, '/var/lib/mock/dist-f12-openssl-572138-82942/root/', None, 86400, True, 0, 427, 102, None, logger=<mock.trace_decorator.getLog object at 0x2ba1208a8c10>) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-Net-SSLeay.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LnJhjD + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf Net-SSLeay-1.35 + /usr/bin/gzip -dc /builddir/build/SOURCES/Net-SSLeay-1.35.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd Net-SSLeay-1.35 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + /bin/chmod -c 644 examples/bio.pl examples/bulk.pl examples/callback.pl examples/cb-testi.pl examples/cli-cert.pl examples/ephemeral.pl examples/get_authenticated_page.pl examples/get_page.pl examples/get_page_cert.pl examples/https-proxy-snif.pl examples/makecert.pl examples/minicli.pl examples/passwd-cb.pl examples/req.conf examples/server_key.pem examples/ssl-inetd-serv.pl examples/ssl_diff.pl examples/sslcat.pl examples/sslecho.pl examples/stdio_bulk.pl examples/tcpcat.pl examples/tcpecho.pl mode of `examples/bulk.pl' changed to 0644 (rw-r--r--) mode of `examples/callback.pl' changed to 0644 (rw-r--r--) mode of `examples/get_authenticated_page.pl' changed to 0644 (rw-r--r--) mode of `examples/get_page.pl' changed to 0644 (rw-r--r--) mode of `examples/https-proxy-snif.pl' changed to 0644 (rw-r--r--) mode of `examples/makecert.pl' changed to 0644 (rw-r--r--) mode of `examples/minicli.pl' changed to 0644 (rw-r--r--) mode of `examples/ssl-inetd-serv.pl' changed to 0644 (rw-r--r--) mode of `examples/ssl_diff.pl' changed to 0644 (rw-r--r--) mode of `examples/sslcat.pl' changed to 0644 (rw-r--r--) mode of `examples/sslecho.pl' changed to 0644 (rw-r--r--) mode of `examples/stdio_bulk.pl' changed to 0644 (rw-r--r--) mode of `examples/tcpcat.pl' changed to 0644 (rw-r--r--) mode of `examples/tcpecho.pl' changed to 0644 (rw-r--r--) + /usr/bin/perl -pi -e 's|/usr/local/bin/perl|/usr/bin/perl|' examples/bio.pl examples/bulk.pl examples/callback.pl examples/cb-testi.pl examples/cli-cert.pl examples/ephemeral.pl examples/get_authenticated_page.pl examples/get_page.pl examples/get_page_cert.pl examples/https-proxy-snif.pl examples/makecert.pl examples/minicli.pl examples/passwd-cb.pl examples/ssl-inetd-serv.pl examples/ssl_diff.pl examples/sslcat.pl examples/sslecho.pl examples/stdio_bulk.pl examples/tcpcat.pl examples/tcpecho.pl + for f in Credits lib/Net/SSLeay.pm + /usr/bin/iconv -f iso-8859-1 -t utf-8 Credits + /bin/mv Credits.utf8 Credits + for f in Credits lib/Net/SSLeay.pm + /usr/bin/iconv -f iso-8859-1 -t utf-8 lib/Net/SSLeay.pm + /bin/mv lib/Net/SSLeay.pm.utf8 lib/Net/SSLeay.pm + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hNfxAY + umask 022 + cd /builddir/build/BUILD + cd Net-SSLeay-1.35 + LANG=C + export LANG + unset DISPLAY ++ /usr/bin/pkg-config --cflags-only-I openssl ++ /usr/bin/pkg-config --libs openssl + PERL_MM_USE_DEFAULT=1 + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor 'INC= ' 'LIBS=-lssl -lcrypto -ldl -lz ' 'OPTIMIZE=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' Cannot determine perl version info from lib/Net/SSLeay.pm Cannot determine license info from lib/Net/SSLeay.pm *** Found OpenSSL-1.0.0 installed in /usr *** That's newer than what this module was tested with You should consider checking if there is a newer release of this module available. Everything will probably work OK, though. *** Be sure to use the same compiler and options to compile your OpenSSL, perl, and Net::SSLeay. Mixing and matching compilers is not supported. Do you want to run external tests? These tests *will* *fail* if you do not have network connectivity. [n] n Checking if your kit is complete... Looks good Writing Makefile for Net::SSLeay + /usr/bin/make -j4 /usr/bin/perl "-Iinc" /usr/lib/perl5/5.10.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.10.0/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c Running Mkbootstrap for Net::SSLeay () chmod 644 SSLeay.bs cp SSLeay.bs blib/arch/auto/Net/SSLeay/SSLeay.bs chmod 644 blib/arch/auto/Net/SSLeay/SSLeay.bs cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay) blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters: directory blib/lib/auto/Net/SSLeay: do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https do_httpx3.al, do_httpx2.al, do_httpx4.al truncate to do_httpx get_https.al, get_https3.al, get_https4.al, get_http.al, get_http3.al, get_http4.al, get_httpx.al, get_httpx3.al, get_httpx4.al truncate to get_http head_https.al, head_https3.al, head_https4.al, head_http.al, head_http3.al, head_http4.al, head_httpx.al, head_httpx3.al, head_httpx4.al truncate to head_htt post_https.al, post_https3.al, post_https4.al, post_http.al, post_http3.al, post_http4.al, post_httpx.al, post_httpx3.al, post_httpx4.al truncate to post_htt put_https.al, put_https3.al, put_https4.al, put_http.al, put_http3.al, put_http4.al, put_httpx.al, put_httpx3.al, put_httpx4.al truncate to put_http ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ tcp_read_all.al, tcp_read_until.al, tcp_read_CRLF.al truncate to tcp_read tcp_write_all.al, tcp_write_CRLF.al truncate to tcp_writ cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm gcc -c -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.35\" -DXS_VERSION=\"1.35\" -fPIC "-I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE" SSLeay.c SSLeay.xs:98:25: error: openssl/md2.h: No such file or directory SSLeay.xs: In function 'ssleay_ctx_passwd_cb_new': SSLeay.xs:230: warning: value computed is not used SSLeay.xs: In function 'ssleay_ctx_cert_verify_cb_new': SSLeay.xs:364: warning: operation on 'cb' may be undefined SSLeay.xs:384: warning: value computed is not used SSLeay.xs: In function 'XS_Net__SSLeay_CTX_set_verify': SSLeay.xs:811: warning: value computed is not used SSLeay.xs:814: warning: value computed is not used SSLeay.xs: In function 'XS_Net__SSLeay_set_verify': SSLeay.xs:1144: warning: value computed is not used SSLeay.xs:1147: warning: value computed is not used SSLeay.c: In function 'XS_Net__SSLeay_get_session': SSLeay.c:2578: warning: unused variable 'ix' SSLeay.c: In function 'XS_Net__SSLeay_CTX_sessions': SSLeay.c:2816: error: 'LHASH' undeclared (first use in this function) SSLeay.c:2816: error: (Each undeclared identifier is reported only once SSLeay.c:2816: error: for each function it appears in.) SSLeay.c:2816: error: 'RETVAL' undeclared (first use in this function) SSLeay.c: In function 'XS_Net__SSLeay_library_init': SSLeay.c:3403: warning: unused variable 'ix' SSLeay.xs: In function 'XS_Net__SSLeay_X509_NAME_oneline': SSLeay.xs:1498: warning: suggest parentheses around assignment used as truth value SSLeay.xs: In function 'XS_Net__SSLeay_MD2': SSLeay.xs:1736: error: 'MD2_DIGEST_LENGTH' undeclared (first use in this function) SSLeay.xs:1741: warning: implicit declaration of function 'MD2' SSLeay.xs:1741: warning: assignment makes pointer from integer without a cast SSLeay.xs:1736: warning: unused variable 'md' SSLeay.c: In function 'XS_Net__SSLeay_SSLv2_method': SSLeay.c:4740: warning: assignment discards qualifiers from pointer target type SSLeay.c: In function 'XS_Net__SSLeay_SSLv3_method': SSLeay.c:4762: warning: assignment discards qualifiers from pointer target type SSLeay.c: In function 'XS_Net__SSLeay_TLSv1_method': SSLeay.c:4784: warning: assignment discards qualifiers from pointer target type SSLeay.c: In function 'XS_Net__SSLeay_get_ssl_method': SSLeay.c:4831: warning: assignment discards qualifiers from pointer target type SSLeay.c: In function 'XS_Net__SSLeay_get_current_cipher': SSLeay.c:6076: warning: assignment discards qualifiers from pointer target type SSLeay.c: In function 'XS_Net__SSLeay_SESSION_cmp': SSLeay.c:6335: warning: implicit declaration of function 'SSL_SESSION_cmp' make: *** [SSLeay.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.hNfxAY (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.hNfxAY (%build) Child returncode was: 1 EXCEPTION: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-Net-SSLeay.spec'] Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.4/site-packages/mock/util.py", line 324, in do raise mock.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-Net-SSLeay.spec'] LEAVE do --> EXCEPTION RAISED
Download (untitled) / with headers
text/plain 107b
Hi, thanks for reporting this. I have uploaded to SVN a new version that should fix this problem. Cheers.
Download (untitled) / with headers
text/plain 478b
On Fri Aug 21 21:15:48 2009, MIKEM wrote: Show quoted text
> Hi, > thanks for reporting this. > I have uploaded to SVN a new version that should fix this problem.
Current version in svn resolves the MD2 problem - thanks. However, when building the same version on older systems with openssl prior to 0.9.8, the test suite fails due to the missing symbol EVP_sha256; it's not really sufficient to check for OPENSSL_NO_SHA256 because old releases neither define this macro nor have the symbol.
Thanks Paul, the new version in SVN fixes this problem too. Cheers.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.