Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 172827

Summary: net-p2p/createtorrent-1.1.3 fails at openssl check when using --as-needed
Product: Gentoo Linux Reporter: Maarten Maathuis <madman2003>
Component: Current packagesAssignee: Gentoo net-p2p team <net-p2p>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    

Description Maarten Maathuis 2007-03-30 20:04:29 UTC
It's a linking problem with the test code, i don't know how to fix this properly.
An autoreconf didn't fix it.

Reproducible: Always

Steps to Reproduce:
1.Turn the ldflag -Wl,--as-needed on.
2.emerge createtorrent

Actual Results:  
checking for SHA1 in -lssl... no
configure: error: error, OpenSSL required

It fails at openssl check, this is a snippet from config.log:

configure:3325: x86_64-pc-linux-gnu-gcc -o conftest -march=k8 -Os -pipe -msse3  -Wl,-O1 -Wl,--as-needed conftest.c -lssl   >&5
/var/tmp/portage/net-p2p/createtorrent-1.1.3/temp//ccx6uvw3.o: In function `main':
conftest.c:(.text+0x7): undefined reference to `SHA1'
collect2: ld returned 1 exit status



Portage 2.1.2.3 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r1, 2.6.20-rt8 x86_64)
=================================================================
System uname: 2.6.20-rt8 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.9
Timestamp of tree: Fri, 30 Mar 2007 08:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4, 2.5-r1
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.19.2-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -Os -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -Os -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/"
INSTALL_MASK="/usr/bin/emerge"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en nl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pro-audio /usr/local/portage /usr/local/nouveau /usr/local/portage /usr/local/nouveau /usr/portage/local/layman/sunrise /usr/portage/local/layman/pro-audio /usr/portage/local/layman/science"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="X accessibility alsa amd64 aotuv berkdb bitmap-fonts cairo caps cdr cli cracklib crypt cups curl dbus dhcp dri dvd dvdr eds emboss encode fam firefox flac fortran gdbm gif gimpprint gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jack jpeg ldap libg++ mad midi mikmod minimal mp3 mpeg musepack ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse3 ssl svg tcpd theora truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis xml xorg xv xvmc zlib" ALSA_CARDS="ice1724" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl" USERLAND="GNU" VIDEO_CARDS="nv nouveau"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2007-04-13 19:16:45 UTC
Fixed, thanks for reporting.