Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302702 - net-misc/wget fails to build with USE="ssl static -kerberos"
Summary: net-misc/wget fails to build with USE="ssl static -kerberos"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 304845 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-28 23:47 UTC by Andy
Modified: 2011-12-23 03:27 UTC (History)
3 users (show)

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


Attachments
emerge --info =net-misc/wget-1.12 (wgetinfo.txt,3.76 KB, text/plain)
2010-01-28 23:50 UTC, Andy
Details
build log (build.log,11.69 KB, text/plain)
2010-01-29 14:22 UTC, Andy
Details
config log (config.log,175.19 KB, text/plain)
2010-01-29 14:24 UTC, Andy
Details
strace -e trace=open,close,read,write,stat -f emerge wget 2>&1 | grep -i ssl (strace1.txt,55.19 KB, text/plain)
2010-01-29 14:37 UTC, Andy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy 2010-01-28 23:47:19 UTC
Very close to 246556, however no kerberos installed and no kerberos use in openssl

configure: error: --with-ssl was given, but SSL is not available.

Reproducible: Always

Steps to Reproduce:
1. echo "net-misc/wget ssl static" >>/etc/portage/package.use
2. emerge wget


Actual Results:  
checking for libssl... no
configure: error: --with-ssl was given, but SSL is not available.


Expected Results:  
glorious emergination

emerge --info
Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 28 Jan 2010 07:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.tera-byte.com"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 berkdb bzip2 cleartype cli cracklib crypt cups cxx divx dri encode fam flac gdbm glitz gpm hal iconv jack jpeg jpeg2k lame libnotify lirc mmx modules mp3 multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python readline reflection session spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora thunar tiff truetype unicode vaapi vdpau x264 xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="remote_wonder_plus" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev vga" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY



I'm not entirely sure march=core2 is perfectly safe on an atom...
cat /proc/cpuinfo
...
processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 28
model name      : Intel(R) Atom(TM) CPU  330   @ 1.60GHz
stepping        : 2
cpu MHz         : 1600.044
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 2
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm
bogomips        : 3199.95
clflush size    : 64
cache_alignment : 64
address sizes   : 32 bits physical, 48 bits virtual
power management:
Comment 1 Andy 2010-01-28 23:50:30 UTC
Created attachment 217774 [details]
emerge --info =net-misc/wget-1.12
Comment 2 Rafał Mużyło 2010-01-29 01:42:45 UTC
With the report phrased this way, the first question is:
what's in config.log ?
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2010-01-29 09:53:31 UTC
and full build.log, just in case.
Comment 4 Andy 2010-01-29 14:22:42 UTC
Created attachment 217834 [details]
build log
Comment 5 Andy 2010-01-29 14:24:23 UTC
Created attachment 217835 [details]
config log
Comment 6 Andy 2010-01-29 14:37:33 UTC
Created attachment 217837 [details]
strace -e trace=open,close,read,write,stat -f emerge wget 2>&1 | grep -i ssl
Comment 7 Andy 2010-01-29 15:34:56 UTC
emerge -vp openssl

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-libs/openssl-0.9.8l-r2  USE="(sse2) zlib -bindist -gmp -kerberos -test" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 8 Rafał Mużyło 2010-01-29 20:32:51 UTC
Well:
configure:27945: x86_64-pc-linux-gnu-gcc -o conftest -march=core2 -O2 -pipe -fomit-frame-pointer  -Wl,-O1 -static conftest.c -ldl -lrt  /usr/lib64/libssl.so /usr/lib64/libcrypto.so >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: attempted static link of dynamic object `/usr/lib64/libssl.so'
so indeed 'static' doesn't work.
Comment 9 SpanKY gentoo-dev 2010-03-06 22:41:35 UTC
*** Bug 304845 has been marked as a duplicate of this bug. ***
Comment 10 Arsen Shnurkov 2010-09-09 00:47:36 UTC
Might be duplicate of 
http://bugs.gentoo.org/show_bug.cgi?id=246556
Comment 11 SpanKY gentoo-dev 2010-09-09 17:38:46 UTC
last i check, it isnt.  that bug is due to kerberos.
Comment 12 T Chan 2010-12-30 08:32:12 UTC
I appears that USE=zlib is the culprit.

The failing build uses approximately these USE flags (I've removed unnecessary ones, zlib has no USE flags):
 dev-libs/openssl-1.0.0c USE="zlib -bindist -gmp -kerberos -rfc3779 -sse2 -test"
 net-misc/wget-1.12-r3 USE="ssl static -debug -idn -ipv6* -nls* -ntlm"

The build succeeds with USE=-zlib.

My current workaround is FEATURES=-test USE=-zlib emerge openssl; emerge wget; emerge openssl. Good thing it's winter!

Not a dupe of bug #246556, assuming that relates solely to kerberos. Not really related to #216535 or #272076, since libz produces a static lib (I see libz.a anyway); it just somehow isn't working. Is ./configure bailing because it can't link to libssl.a/libcrypto.a because it doesn't also link against libz.a? Who knows.
Comment 13 SpanKY gentoo-dev 2011-12-22 01:18:14 UTC
should be fixed in wget-1.13.4-r1 after converting openssl logic to pkg-config
Comment 14 Andy 2011-12-23 03:27:20 UTC
Glorious emergination at last!  Christmas has come early :P