Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637984 - net-misc/openssh-7.5_p1-r3[X509]: build failure: version.h:5:46: error: expected ‘)’ before ‘SSH_X509’
Summary: net-misc/openssh-7.5_p1-r3[X509]: build failure: version.h:5:46: error: expec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-18 08:17 UTC by Rolf Eike Beer
Modified: 2018-01-24 22:45 UTC (History)
3 users (show)

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 Rolf Eike Beer archtester 2017-11-18 08:17:39 UTC
FEATURES=test USE='X X509 -audit -bindist -hpn -kerberos -ldap ldns -libressl livecd pam pie -sctp -skey -ssh1 ssl -static' emerge -1 =net-misc/openssh-7.5_p1-r3

Results in:

In file included from ssh.c:123:0:
ssh.c: In function ‘main’:
version.h:5:46: error: expected ‘)’ before ‘SSH_X509’
 #define SSH_RELEASE SSH_VERSION SSH_PORTABLE SSH_X509
                                              ^
ssh.c:811:8: note: in expansion of macro ‘SSH_RELEASE’
        SSH_RELEASE,
        ^
ssh.c:810:20: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
    fprintf(stderr, "%s, %s\n",
                    ^
In file included from ssh.c:123:0:
version.h:5:46: error: expected ‘)’ before ‘SSH_X509’
 #define SSH_RELEASE SSH_VERSION SSH_PORTABLE SSH_X509
                                              ^
ssh.c:1068:19: note: in expansion of macro ‘SSH_RELEASE’
   logit("%s, %s", SSH_RELEASE,
                   ^
ssh.c:1068:9: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
   logit("%s, %s", SSH_RELEASE,
         ^


Reproducible: Always
Comment 1 Agostino Sarubbo gentoo-dev 2017-11-18 09:36:56 UTC
Reproducible here with: 
USE='-* X509 ssl' emerge =net-misc/openssh-7.5_p1-r3

This is not a regression, reproducible also with net-misc/openssh-7.5_p1-r1
Comment 2 Adrian Nievergelt 2017-11-19 08:48:55 UTC
Same behaviour here on openssh-7.6_p1-r1.
Comment 3 Daniel J. 2017-11-22 19:20:57 UTC
I am not able to find a macro defined as SSH_X509 anywhere in the code, but it is the name of a struct defined in sshkey.h.
Comment 4 Nathan Zachary (RETIRED) gentoo-dev 2017-12-21 04:28:48 UTC
Same problem seen on ~arch with =net-misc/openssh-7.6_p1-r1 and USE="X509".
Comment 5 Robin Bankhead 2018-01-24 20:51:19 UTC
Me too on ~amd64 with openssh-7.6_p1-r3.

[ebuild     U  ] net-misc/openssh-7.6_p1-r3::gentoo [7.2_p2::gentoo] USE="X509 pam pie ssl -X -audit% -bindist -debug (-hpn) -kerberos -ldap -ldns -libedit -libressl -livecd% -sctp (-selinux) -skey -static {-test%} (-ssh1%)" 0 KiB

emerge --info
Portage 2.3.8 (python 3.4.6-final-0, default/linux/amd64/17.0, gcc-7.2.0, glibc-2.26-r5, 4.13.1-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.13.1-gentoo-r1-x86_64-AMD_Turion-tm-_II_Neo_N40L_Dual-Core_Processor-with-gentoo-2.4.1
KiB Mem:     3899260 total,    994672 free
KiB Swap:    6141692 total,   5471876 free
Timestamp of repository gentoo: Tue, 23 Jan 2018 20:15:01 +0000
Head commit of repository gentoo: 8aa81d44d8b771e7c6a67d5ee47700167df84c4f
sh bash 4.4_p12-r1
ld GNU ld (Gentoo 2.29 p1.0) 2.29
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.9.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.31.1::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.2.0-r1::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r5::gentoo
Repositories:

gentoo
    location: /mnt/media/portage
    sync-type: rsync
    sync-uri: rsync://rsync.uk.gentoo.org/gentoo-portage
    priority: -1000

squeezebox
    location: /var/lib/layman/squeezebox
    masters: gentoo
    priority: 0

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/make.conf /usr/bin/vncserver /usr/lib/X11/xdm/Xsetup_0 /usr/share/config /usr/share/easy-rsa /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/hp/hplip.conf /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/mnt/media/cache/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --quiet-build=n --verbose-conflicts"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fail-clean fixlafiles merge-sync multilib-strict news preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.leaseweb.com/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://mirror.netcologne.de/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j10 -l2"
PKGDIR="/mnt/media/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 --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="3dnow 3dnowext X509 a52 aac accessibility acl acpi alsa amd64 apache2 bash-completion berkdb bzip2 clamav cli consolekit crypt curl curlwrappers cxx dbm dbus dbx dri dv enca encode exif fam fastcgi fat ffmpeg flac foomaticdb fortran ftp gd gd-external gdbm gnutls gudev hardened hwdb iconv imagemagick imap imlib innodb java javascript jpeg lcms libkms libwww lzo mad matroska mdadm minimal mmx mmxext modules mp3 multilib mysql ncurses network nls nptl nsplugin ntfs offensive ogg openmp optimized-qmake pam pcre php png policykit posix qt4 raw readline rtmp samba scanner seccomp session sharedmem snmp soap sse sse2 sse4a ssl startup-notification tcpd theora threads tidy tiff tokenizer tordns udev unicode usb vdpau vhosts win32codecs x264 xattr xinetd xmlrpc xsl xv xvid xvmc xz zip zlib" ABI_X86="64" APACHE2_MODULES="access_compat actions alias auth_basic auth_digest authn_core authn_anon authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" L10N="en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="radeon r600 vesa" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Not sure if significant but error is similar to Bug 593704