Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491102 - =net-analyzer/sslscan-1.8.2 - sslscan.c: In function ‘getCertificate’: sslscan.c:992:52: error: ‘union <anonymous>’ has no member named ‘ec’
Summary: =net-analyzer/sslscan-1.8.2 - sslscan.c: In function ‘getCertificate’: sslsca...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-12 18:01 UTC by georg
Modified: 2013-11-13 07:25 UTC (History)
0 users

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


Attachments
build environment (environment,78.84 KB, text/plain)
2013-11-12 18:08 UTC, georg
Details
build log (build.log,5.63 KB, text/plain)
2013-11-12 18:08 UTC, georg
Details
emerge --info =net-analyzer/sslscan-1.8.2 (emerge.info,4.99 KB, text/plain)
2013-11-12 18:10 UTC, georg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description georg 2013-11-12 18:01:33 UTC
Tried to build net-analyzer/sslscan-1.8.2 with gcc-4.7.3 and it fails to build





Reproducible: Always

Steps to Reproduce:
1. echo net-analyzer/sslscan > /etc/portage/package.accept_keywords/sslscan
2. emerge sslscan

Actual Results:  
emerge sslscan
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-analyzer/sslscan-1.8.2
 * sslscan-1.8.2.tgz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking sslscan-1.8.2.tgz to /var/tmp/portage/net-analyzer/sslscan-1.8.2/work
>>> Source unpacked in /var/tmp/portage/net-analyzer/sslscan-1.8.2/work
>>> Preparing source in /var/tmp/portage/net-analyzer/sslscan-1.8.2/work/sslscan-1.8.2 ...
 * Applying sslscan-1.8.2-makefile.patch ...                                                                                                                                           [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-analyzer/sslscan-1.8.2/work/sslscan-1.8.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-analyzer/sslscan-1.8.2/work/sslscan-1.8.2 ...
make -j12 CC=x86_64-pc-linux-gnu-gcc 
x86_64-pc-linux-gnu-gcc -Wall -Wl,-O1 -Wl,--as-needed -march=corei7-avx -O2 -pipe -o sslscan sslscan.c -lssl -lcrypto 
sslscan.c: In function ‘getCertificate’:
sslscan.c:811:13: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
sslscan.c:992:13: warning: implicit declaration of function ‘EC_KEY_print’ [-Wimplicit-function-declaration]
sslscan.c:992:52: error: ‘union <anonymous>’ has no member named ‘ec’
sslscan.c:995:51: error: ‘union <anonymous>’ has no member named ‘ec’


Expected Results:  
It should build

emerge --info sslscan
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.15-r3, 3.10.7-slim x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.7-slim-x86_64-Intel-R-_Core-TM-_i7-2670QM_CPU_@_2.20GHz-with-gentoo-2.2
KiB Mem:     8078724 total,    516404 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of tree: Sun, 10 Nov 2013 04:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo java x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7-avx -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java /usr/local/portage"
SYNC="rsync://192.168.178.10/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="lvm crypt" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 arm i386" QEMU_USER_TARGETS="x86_64 arm i386" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 georg 2013-11-12 18:08:02 UTC
Created attachment 363138 [details]
build environment
Comment 2 georg 2013-11-12 18:08:52 UTC
Created attachment 363140 [details]
build log
Comment 3 georg 2013-11-12 18:10:19 UTC
Created attachment 363142 [details]
emerge --info =net-analyzer/sslscan-1.8.2
Comment 4 Rafał Mużyło 2013-11-12 18:18:32 UTC
Just a guess: try dev-libs/openssl[-bindist].
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-11-12 19:42:04 UTC
Which version of dev-libs/openssl is installed?
Comment 6 georg 2013-11-12 20:27:51 UTC
=dev-libs/openssl-1.0.1e-r1 is instelled. I'm  mostly on stable.

This are my testing packages

eix --installed-testing --only-names
app-backup/fsarchiver
cross-avr/binutils
cross-avr/gcc
dev-java/icedtea
dev-java/icedtea-web
dev-util/android-ndk
dev-util/android-sdk-update-manager
dev-util/android-tools
dev-util/eclipse-sdk-bin
media-fonts/jsmath
sci-electronics/kicad
sci-mathematics/maxima
sci-mathematics/wxmaxima
sys-kernel/dracut
Comment 7 georg 2013-11-12 20:28:33 UTC
genlop -i dev-libs/openssl
 * dev-libs/openssl


   Total builds: 5
   Global build time: 13 minutes and 41 seconds.
   Average merge time: 2 minutes and 44 seconds.

   Info about currently installed ebuild:

   * dev-libs/openssl-1.0.1e-r1
   Install date: Sat Oct 19 07:10:27 2013
   USE="bindist sse2 zlib -gmp -kerberos -rfc3779 -static-libs -test -+tls-heartbeat -vanilla"
   CFLAGS="-march=corei7-avx -O2 -pipe -fno-strict-aliasing -Wa,--noexecstack"
Comment 8 georg 2013-11-12 20:40:23 UTC
Now i reemerged openssl with -bindist but it did build openssl-0.9.8y with 
emerge -vauDN openssl

and 
cat /etc/portage/package.use/sslscan
dev-libs/openssl -bindist


genlop -i openssl
 * dev-libs/openssl


   Total builds: 6
   Global build time: 15 minutes and 33 seconds.
   Average merge time: 2 minutes and 35 seconds.

   Info about currently installed ebuild:

   * dev-libs/openssl-1.0.1e-r1
   Install date: Sat Oct 19 07:10:27 2013
   USE="bindist sse2 zlib -gmp -kerberos -rfc3779 -static-libs -test -+tls-heartbeat -vanilla"
   CFLAGS="-march=corei7-avx -O2 -pipe -fno-strict-aliasing -Wa,--noexecstack"

   * dev-libs/openssl-0.9.8y
   Install date: Tue Nov 12 21:37:03 2013
   USE="sse2 zlib -bindist -gmp -kerberos -test"
   CFLAGS="-march=corei7-avx -O2 -pipe -fno-strict-aliasing -Wa,--noexecstack"


and i still get the
Comment 9 georg 2013-11-12 20:51:40 UTC
openssl and openssh needs a deactivated -bindist flag that sslscan can build.

Should sslscan's ebuild respect the bindist use flag?
Comment 10 Hans de Graaff gentoo-dev Security 2013-11-13 07:25:49 UTC
It turns out that sslscan unconditionally needs the Elliptic Curve code from openssl, and that is only available with the -bindist USE flag. I've updated the openssl dependency in sslscan to reflect that.

Thanks for the report and for testing the suggestions.