Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642620 - net-fs/samba-4.2.14 (and others aswell): error: 'YPERR_KEY' undeclared
Summary: net-fs/samba-4.2.14 (and others aswell): error: 'YPERR_KEY' undeclared
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords: STABLE
Depends on:
Blocks:
 
Reported: 2017-12-29 11:36 UTC by Miroslav Šulc
Modified: 2019-10-30 15:30 UTC (History)
1 user (show)

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


Attachments
build.log (build.log.bz2,21.93 KB, application/x-bzip)
2017-12-29 11:36 UTC, Miroslav Šulc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2017-12-29 11:36:47 UTC
Created attachment 511958 [details]
build.log

i have also tried other versions but the result is similar.

...
[ 942/2702] Compiling source3/lib/util.c
../source3/lib/util.c: In function 'automount_lookup':
../source3/lib/util.c:653:19: warning: implicit declaration of function 'yp_get_default_domain' [-Wimplicit-function-declaration]
  if ((nis_error = yp_get_default_domain(&nis_domain)) != 0) {
                   ^~~~~~~~~~~~~~~~~~~~~
In file included from ../source3/include/includes.h:360:0,
                 from ../source3/lib/util.c:24:
../source3/lib/util.c:654:31: warning: implicit declaration of function 'yperr_string' [-Wimplicit-function-declaration]
   DEBUG(3, ("YP Error: %s\n", yperr_string(nis_error)));
                               ^
../source3/../lib/util/debug.h:186:20: note: in definition of macro 'DEBUG'
        && (dbgtext body) )
                    ^~~~
../source3/lib/util.c:654:13: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
   DEBUG(3, ("YP Error: %s\n", yperr_string(nis_error)));
             ^
../source3/../lib/util/debug.h:186:20: note: in definition of macro 'DEBUG'
        && (dbgtext body) )
                    ^~~~
../source3/lib/util.c:660:19: warning: implicit declaration of function 'yp_match' [-Wimplicit-function-declaration]
  if ((nis_error = yp_match(nis_domain, nis_map, user_name,
                   ^~~~~~~~
../source3/lib/util.c:671:25: error: 'YPERR_KEY' undeclared (first use in this function)
  } else if(nis_error == YPERR_KEY) {
                         ^~~~~~~~~
../source3/lib/util.c:671:25: note: each undeclared identifier is reported only once for each function it appears in
In file included from ../source3/include/includes.h:360:0,
                 from ../source3/lib/util.c:24:
../source3/lib/util.c:676:13: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
   DEBUG(3, ("YP Error: \"%s\" while looking up \"%s\" in map \"%s\"\n",
             ^
../source3/../lib/util/debug.h:186:20: note: in definition of macro 'DEBUG'
        && (dbgtext body) )
                    ^~~~
Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.2.14/work/samba-4.2.14-abi_x86_32.x86/bin'
Build failed:  -> task failed (err #1): 
        {task: cc util.c -> util_44.o}
make: *** [Makefile:8: all] Error 1


# emerge --info '=net-fs/samba-4.2.14::gentoo'
Portage 2.3.13 (python 2.7.14-final-0, hardened/linux/x86, gcc-6.4.0, glibc-2.25-r9, 4.12.12-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.12-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.4.1
KiB Mem:      502424 total,    168044 free
KiB Swap:    2007996 total,   1988788 free
Timestamp of repository gentoo: Fri, 29 Dec 2017 06:00:01 +0000
Head commit of repository gentoo: bf9e18c70fafc2fa4363a55a9c1173445f54ef4b
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

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

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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="apache2 berkdb crypt cxx hardened mmx ncurses pam perl pic pie python readline snmp ssl ssp tcpd vhosts x86 xml" ABI_X86="32" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_default authn_file authz_core 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 http2 include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CURL_SSL="openssl" ELIBC="glibc" KERNEL="linux" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" USERLAND="GNU"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


# emerge -pqv '=net-fs/samba-4.2.14::gentoo'
[ebuild     U ] net-fs/samba-4.2.14 [4.2.11] USE="client pam -acl -addc -addns -ads -aio -avahi -cluster -cups -dmapi -fam -gnutls -iprint -ldap -quota (-selinux) -syslog -system-mitkrb5 -systemd {-test} -winbind" PYTHON_TARGETS="python2_7"
Comment 1 Ted Marston 2018-02-16 16:41:47 UTC
It seems that rebuilding sys-libs/glibc with USE="rpc" provides the necessary header files to define YPERR_KEY and enable samba to build correctly.