Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 593704 - net-misc/openssh-7.3_p1-r4 - In file included from ssh.c:123:0: ssh.c: In function ‘main’: version.h:5:46: error: expected ‘)’ before ‘SSH_X509’
Summary: net-misc/openssh-7.3_p1-r4 - In file included from ssh.c:123:0: ssh.c: In fun...
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: 2016-09-14 08:15 UTC by Conrad Kostecki
Modified: 2016-09-14 18:52 UTC (History)
1 user (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 Conrad Kostecki gentoo-dev 2016-09-14 08:15:04 UTC
Build without USE="X509" works.

x86_64-pc-linux-gnu-gcc -march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing  -ftrapv -fno-builtin-memset -fstack-protector-strong  -I. -I.   -DSSHDIR=\"/etc/ssh\" -DSSHCADIR=\"/etc/ssh/ca\" -D_PATH_SSH_PROGRAM=\"/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/lib64/misc/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/lib64/misc/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/lib64/misc/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/usr/lib64/misc/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c sshconnect1.c -o sshconnect1.o
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:813:8: note: in expansion of macro ‘SSH_RELEASE’
        SSH_RELEASE,
        ^
ssh.c:812:20: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
    fprintf(stderr, "%s, %s\n",
                    ^
readconf.c: In function ‘process_config_line_depth’:
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:1075:19: note: in expansion of macro ‘SSH_RELEASE’
   logit("%s, %s", SSH_RELEASE,
                   ^
ssh.c:1075:9: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
   logit("%s, %s", SSH_RELEASE,
         ^
readconf.c:1462:1: warning: label ‘parse_keytypes’ defined but not used [-Wunused-label]
 parse_keytypes:
 ^
make: *** [Makefile:173: ssh.o] Error 1
make: *** Waiting for unfinished jobs....
sshconnect.c: In function ‘ssh_connect_direct’:
sshconnect.c:371:5: warning: ‘more_addrs’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (more_addrs) {
     ^
sshconnect.c:307:8: note: ‘more_addrs’ was declared here
  char *more_addrs, *next_addr;
        ^
 * ERROR: net-misc/openssh-7.3_p1-r4::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-misc/openssh-7.3_p1-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/openssh-7.3_p1-r4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/openssh-7.3_p1-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/openssh-7.3_p1-r4/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/openssh-7.3_p1-r4/work/openssh-7.3p1'
 * S: '/var/tmp/portage/net-misc/openssh-7.3_p1-r4/work/openssh-7.3p1'
Comment 1 Conrad Kostecki gentoo-dev 2016-09-14 08:15:30 UTC
Portage 2.3.0 (python 3.5.2-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.23-r2, 4.7.3-gentoo x86_64)
=================================================================
System uname: Linux-4.7.3-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_X_990_@_3.47GHz-with-gentoo-2.3
KiB Mem:     4014648 total,   2524080 free
KiB Swap:    5242876 total,   5235872 free
Timestamp of repository gentoo: Wed, 14 Sep 2016 07:30:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
ccache version 3.2.7 [disabled]
app-shells/bash:          4.3_p46::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/ccache:          3.2.7::gentoo
dev-util/cmake:           3.6.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -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/splash /etc/terminfo"
CXXFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/"
INSTALL_MASK="/etc/systemd/network/* /etc/systemd/system/* /etc/xinetd.d/* /usr/lib64/systemd/system/* /usr/lib64/systemd/system-shutdown/*"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
MAKEOPTS="-j9 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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="/var/tmp"
USE="acl alsa amd64 berkdb bzip2 cairo caps cjk cracklib crypt curl cvs cxx dbus djvu fontconfig ftp gd git gmp gnutls gpm iconv icu idn introspection ipv6 javascript jit jpeg jpeg2k lcms libsamplerate lm_sensors lzma lzo maildir mbox mikmod mime ncurses netgroups nls nntp nptl offensive ogg openal openmp oss pam pcre pdf perl png postscript python readline slang sndfile spell ssl subversion suid svg symlink tcpd threads tiff truetype udev unicode usb vim-syntax xattr xcb xml zlib" ABI_X86="32 64" COLLECTD_PLUGINS="battery cgroups conntrack contextswitch cpu cpufreq df disk dns entropy ethstat exec filecount hddtemp interface irq load logfile memory netlink nginx openvpn ping processes rrdcached sensors serial smart swap tcpconns thermal unixsock uptime users" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="pc" KERNEL="linux" L10N="de de_DE" LINGUAS="de de_DE" NGINX_MODULES_HTTP="access auth_basic autoindex charset fancyindex fastcgi gzip proxy realip rewrite stub_status upstream_keepalive" PHP_TARGETS="php7-0" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="radeon" XFCE_PLUGINS="power trash"
USE_PYTHON="2.7 3.4 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL
Comment 2 Patrick McLean gentoo-dev 2016-09-14 17:37:59 UTC
What USE flags are you attempting to build with other than X509?
Comment 3 Conrad Kostecki gentoo-dev 2016-09-14 17:48:06 UTC
(In reply to Patrick McLean from comment #2)
> What USE flags are you attempting to build with other than X509?

net-misc/openssh-7.3_p1-r4::gentoo  USE="X509 ldns pam sctp ssl -X -bindist -debug -hpn -kerberos -ldap -libedit -libressl -livecd -pie (-selinux) -skey -ssh1 -static {-test}"