Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400831 - wget fails to bootstrap: openssl.c:(.text+0x58b): undefined reference to `SSLv2_client_method'
Summary: wget fails to bootstrap: openssl.c:(.text+0x58b): undefined reference to `SSL...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 21:08 UTC by Nicolas Pinto
Modified: 2012-01-27 18:31 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 Nicolas Pinto 2012-01-25 21:08:05 UTC
On Ubuntu 10.10 64bit (with recent openssl):

./bootstrap-prefix.sh ${EPREFIX}/tmp wget

fails with

gcc -O2 -Wall -Wno-implicit  -o wget  cmpt.o connect.o convert.o cookies.o ftp.o ftp-basic.o ftp-ls.o ftp-opie.o  hash.o host.o html-parse.o html-url.o http.o http-ntlm.o init.o log.o main.o gen-md5.o netrc.o progress.o ptimer.o recur.o res.o retr.o safe-ctype.o snprintf.o openssl.o url.o utils.o version.o xmalloc.o  -ldl -lrt  -lssl -lcrypto
openssl.o: In function `ssl_init':
openssl.c:(.text+0x58b): undefined reference to `SSLv2_client_method'
collect2: ld returned 1 exit status
make[2]: *** [wget] Error 1
make[2]: Leaving directory `/root/gentoo/tmp/var/tmp/wget-1.10.2/wget-1.10.2/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/root/gentoo/tmp/var/tmp/wget-1.10.2/wget-1.10.2'
make: *** [install/stage1] Error 1
Comment 1 Benda Xu gentoo-dev 2012-01-27 08:28:06 UTC
I do not think we need ssl for wget here. bootstrap.sh should be hacked to disable ssl for wget. For the moment to circumvent this, remove libssl-dev on your host system if you have root access. Or just jump over this step cuz wget on ubuntu 10.10 is new enough to use. BTW, I couldn't reproduce this bug on Ubuntu 10.04 LTS with libssl-dev installed.
Comment 2 Fabian Groffen gentoo-dev 2012-01-27 08:55:44 UTC
I think that would be a very simple fix to the bootstrap_wget function.  I thought we already did this, though...
Comment 3 Benda Xu gentoo-dev 2012-01-27 13:23:37 UTC
Oh yeah, grobian is right. please check /etc/make.profile/make.defaults, there should be something like USE='-ssl'
Comment 4 Fabian Groffen gentoo-dev 2012-01-27 13:34:21 UTC
the profile doesn't really matter here, right?  we're just using the bootstrap-prefix.sh script, so it's just a matter of telling configure not to attempt to do ssl
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-01-27 13:41:08 UTC
Yup, it is easy to do.

% svn di
Index: bootstrap-prefix.sh
===================================================================
--- bootstrap-prefix.sh	(revision 60323)
+++ bootstrap-prefix.sh	(working copy)
@@ -636,6 +636,9 @@
 		export CPPFLAGS="${CPPFLAGS} -DCHAR_BIT=8"
 	fi
 
+	# Gentoo Bug 400831
+	[[ ${A%-*} == "wget" ]] && myconf="${myconf} --without-ssl"
+
 	einfo "Compiling ${A%-*}"
 	econf ${myconf}
 	if [[ ${A%-*} == "make" && $(type -t $MAKE) != "file" ]]; then

Feel free to insert a better comment, Benda.
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-01-27 18:14:33 UTC
Bingo, reproduced on Ubuntu 11.10 with libssl-dev installed. My workaround in comment #5 worked. Should be safe for all OS's at this stage of the bootstrap. Committed.
Comment 7 Nicolas Pinto 2012-01-27 18:16:18 UTC
Works for me too. Thanks a ton for the fast turnaround!
Comment 8 Nicolas Pinto 2012-01-27 18:31:36 UTC
Jeremy, were you able to bootstrap prefix in your 11.10 ? I'm still struggling with Bug 400839 ...