Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633942 - net-misc/openssh-7.6_p1: auth2-pubkey.c:677:43: error: unknown type name ‘Key’
Summary: net-misc/openssh-7.6_p1: auth2-pubkey.c:677:43: error: unknown type name ‘Key’
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:
: 633944 634008 634060 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-10 15:10 UTC by Graham Murray
Modified: 2017-10-12 07:10 UTC (History)
10 users (show)

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


Attachments
Build Log (build.log,190.55 KB, text/plain)
2017-10-10 15:10 UTC, Graham Murray
Details
openssh-7.6p1_ldap.patch (openssh-7.6p1_ldap.patch,2.19 KB, text/plain)
2017-10-10 22:40 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Murray 2017-10-10 15:10:14 UTC
Created attachment 498306 [details]
Build Log

x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -gdwarf-4 -fvar-tracking-assignments -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 -fPIE   -I. -I.  -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE   -DSSHDIR=\"/etc/ssh\" -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 auth2-pubkey.c -o auth2-pubkey.o
auth2-pubkey.c:677:43: error: unknown type name ‘Key’
 user_key_ldap_allowed2(struct passwd *pw, Key *key)
                                           ^~~
auth2-pubkey.c: In function ‘user_key_allowed’:
auth2-pubkey.c:906:13: warning: implicit declaration of function ‘user_key_ldap_allowed2’ [-Wimplicit-function-declaration]
   success = user_key_ldap_allowed2(pw, key);
             ^~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:152: auth2-pubkey.o] Error 1

emerge --info =net-misc/openssh-7.6_p1
Portage 2.3.11 (python 3.6.3-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-6.4.0, glibc-2.25-r7, 4.12.14-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.14-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:    16125804 total,   3369512 free
KiB Swap:   16777212 total,  16773116 free
Timestamp of repository gentoo: Tue, 10 Oct 2017 14:00:01 +0000
Head commit of repository gentoo: 8ead69692d0faa44e06a4d5c4164ac5f71c20c1a
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p1.0) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.6::gentoo, 3.5.4::gentoo, 3.6.3::gentoo
dev-util/cmake:           3.9.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.32::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

scrill
    location: /var/lib/layman/scrill
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -gdwarf-4 -fvar-tracking-assignments"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -gdwarf-4 -fvar-tracking-assignments"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apache2 avx avx2 berkdb branding bzip2 cairo caps cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emacs emboss encode evo exif fam ffmpeg firefox flac fontconfig fortran gdbm gif git glamor gmp gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk iconv icu introspection ipv6 java jit jpeg kde kerberos lcms ldap libnotify libsecret lm_sensors lua mad mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf perl png policykit postgres ppds pulseaudio python qt3support qt4 readline sdl seccomp semantic-desktop session spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff tracker truetype udev udisks unicode upower usb vala vim-syntax vorbis wayland webkit wxwidgets x264 xattr xcb xml xmp xv xvid zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="hd-intel" 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" APACHE2_MPMS="prefork" 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="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 efi-64 efi-32" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="wiki-publisher presenter-minimizer" LINGUAS="en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_6 postgres10" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" RUBY_TARGETS="ruby22 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" 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
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-10-10 15:24:53 UTC
Damn, I forgot to test the ldap patch. Sorry, the only "fix" I can provide is to remove ldap support until the patch has been revised.
Comment 2 Ben Kohler gentoo-dev 2017-10-10 16:32:12 UTC
*** Bug 633944 has been marked as a duplicate of this bug. ***
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2017-10-10 22:40:20 UTC
Created attachment 498370 [details]
openssh-7.6p1_ldap.patch

Could you please test the attached patch?

Should be applied on top of the current LDAP patch, i.e. put it into /etc/portage/patches/net-misc/openssh and re-emerge net-misc/openssh.
Comment 4 M. B. 2017-10-10 23:48:38 UTC
(In reply to Thomas Deutschmann from comment #3)
> Created attachment 498370 [details]
> openssh-7.6p1_ldap.patch
> 
> Could you please test the attached patch?
> 
> Should be applied on top of the current LDAP patch, i.e. put it into
> /etc/portage/patches/net-misc/openssh and re-emerge net-misc/openssh.

Applies cleanly and makes openssh compile.
Thanks
Comment 5 André Terpstra 2017-10-11 02:03:50 UTC
Same error here.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-10-11 07:58:06 UTC
commit 5d83548d5c351de391e187c02a8ec10102a0c890 (HEAD -> master, origin/master, origin/HEAD)
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Wed Oct 11 09:57:38 2017

    net-misc/openssh: Added revised ldap patch (bug #633942).

    Thanks to Thomas (Whissi) Deutschmann for the fix.

    Package-Manager: Portage-2.3.11, Repoman-2.3.3
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-10-11 10:57:35 UTC
*** Bug 634008 has been marked as a duplicate of this bug. ***
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-10-12 06:38:25 UTC
*** Bug 633920 has been marked as a duplicate of this bug. ***
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-10-12 06:38:58 UTC
*** Bug 634060 has been marked as a duplicate of this bug. ***