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
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.
I think that would be a very simple fix to the bootstrap_wget function. I thought we already did this, though...
Oh yeah, grobian is right. please check /etc/make.profile/make.defaults, there should be something like USE='-ssl'
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
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.
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.
Works for me too. Thanks a ton for the fast turnaround!
Jeremy, were you able to bootstrap prefix in your 11.10 ? I'm still struggling with Bug 400839 ...