Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57235 - Crypt-SSLeay fails to merge
Summary: Crypt-SSLeay fails to merge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-15 15:25 UTC by Todor Zviskov
Modified: 2004-07-19 18:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Todor Zviskov 2004-07-15 15:25:46 UTC
Crypt-SSLeay doesn't build properly and therefore fails to merge.

Reproducible: Always
Steps to Reproduce:
1. emerge  dev-perl/Crypt-SSLeay

Actual Results:  
>>> Source unpacked.
Found OpenSSL (version OpenSSL 0.9.7) installed at /usr

================================================
BUILD INFORMATION
================================================

ssl dir:        /usr
libraries:      -lssl -lcrypto -lgcc -lRSAglue -lrsaref
include dir:    /usr/include
ssl header:     openssl/ssl.h
ssl candidate:  /usr; /usr/include/openssl; OpenSSL 0.9.7

================================================

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgcc
Note (probably harmless): No library found for -lRSAglue
Note (probably harmless): No library found for -lrsaref
Writing Makefile for Crypt::SSLeay
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
/usr/bin/perl /usr/lib/perl5/5.8.4/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.8.4/ExtUtils/typemap -typemap typemap  SSLeay.xs > SSLeay.xsc
&& mv SSLeay.xsc SSLeay.c
gcc -c  -I/usr/include -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -march=pentium4 -mfpmath=sse -msse2 -mmmx -O3
-funroll-loops -pipe   -DVERSION=\"0.51\" -DXS_VERSION=\"0.51\" -fPIC
"-I/usr/lib/perl5/5.8.4/i686-linux/CORE"   SSLeay.c
SSLeay.xs: In function `XS_Crypt__SSLeay__Conn_new':
SSLeay.xs:252: warning: passing arg 2 of `SSL_set_info_callback' from
incompatible pointer type
Running Mkbootstrap for Crypt::SSLeay ()
chmod 644 SSLeay.bs
rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so
LD_RUN_PATH="/usr/lib" gcc  -shared -L/usr/local/lib SSLeay.o  -o
blib/arch/auto/Crypt/SSLeay/SSLeay.so   -L/usr/lib -lssl -lcrypto
chmod 755 blib/arch/auto/Crypt/SSLeay/SSLeay.so
cp SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs
chmod 644 blib/arch/auto/Crypt/SSLeay/SSLeay.bs
Manifying blib/man3/Crypt::SSLeay.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/net_ssl........dubious
        Test returned status 0 (wstat 11, 0xb)
t/ssl_context....dubious
        Test returned status 0 (wstat 11, 0xb)
FAILED--2 test scripts could be run, alas--no output ever seen
make: *** [test_dynamic] Error 255

!!! ERROR: dev-perl/Crypt-SSLeay-0.51 failed.
!!! Function perl-module_src_compile, Line 62, Exitcode 2
!!! test failed


Expected Results:  
>>>  dev-perl/Crypt-SSLeay-0.51 merged.

ACCEPT_KEYWORDS="~x86"
CFLAGS="-march=pentium4 -mfpmath=sse -msse2 -mmmx -O3 -funroll-loops -pipe"
Comment 1 Eric Sammer (RETIRED) gentoo-dev 2004-07-18 14:41:14 UTC
Can you try stripping down your CFLAGS to something a bit more conservative (such as -march=pentium4 -O2 -funroll-loops -pipe) and try to rebuild both openssl and Crypt::SSLeay? Additionally, running the tests by hand (i.e. perl <path-to-dir>/t/net_ssl.t) and seeing what kind of output it will yield. If none of this works, please provide the full output of 'emerge info' so we can look into it further.
Comment 2 Todor Zviskov 2004-07-19 10:59:51 UTC
Emerging both openssl and Crypt-SSLeay with CFLAGS="-march=pentium4 -O2 -funroll-loops -pipe" worked. Here's emerge info anyways:
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7-LNX)
=================================================================
System uname: 2.6.7-LNX i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -mfpmath=sse -msse2 -mmmx -O3 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -mfpmath=sse -msse2 -mmmx -O3 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/bmg-main"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb bonobo breakme cdr crypt cups encode esd foomaticdb gdbm gif gimpprint gnome gpm gtk gtk2 gtkhtml imlib java jpeg kde ldap libg++ libwww lirc mad mikmod mmx motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline sdl slang spell sse ssl svga tcltk tcpd tiff truetype wmf x86 xml2 xmms xorg xorg-x11 xv zlib"
Comment 3 Eric Sammer (RETIRED) gentoo-dev 2004-07-19 18:20:02 UTC
Some packages are more sensitive to optimization levels and settings than others so it's usually just a simple case of over-optimization. I'm going to close this bug and just chalk it up to bad CFLAGS. Glad to hear everything is working now...