Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 612138

Summary: net-fs/cifs-utils-6.7 only merges if USE="-acl" when USE="-ads".
Product: Gentoo Linux Reporter: Fitzcarraldo <fitzcarraldo1>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gef.kornflakes, phantom4, saintdev
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fitzcarraldo 2017-03-09 17:42:24 UTC
cifs-utils-6.7 will only merge if I make USE="-acl" when USE="-ads". I don't think these two should be linked. cifs-utils should be able to use Access Control Lists when Active Directory Services are disabled (for example if you are just using either WINS or NetBIOS broadcast).

$ eix -I cifs-utils
[I] net-fs/cifs-utils
     Available versions:  6.4 (~)6.6-r2 (~)6.7 {+acl +ads +caps +caps-ng creds pam}
     Installed versions:  6.7(11:43:22 07/03/17)(caps caps-ng pam -acl -ads -creds)
     Homepage:            http://wiki.samba.org/index.php/LinuxCIFS_utils
     Description:         Tools for Managing Linux CIFS Client Filesystems

Merge error is shown below:

.
.
.
86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-z,relro,-z,now -O2 -march=native -pipe -c -o resolve_host.o resolve_host.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-z,relro,-z,now -O2 -march=native -pipe -c -o util.o util.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-z,relro,-z,now -O2 -march=native -pipe -c -o cifs.upcall.o cifs.upcall.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-z,relro,-z,now -O2 -march=native -pipe -c -o data_blob.o data_blob.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-z,relro,-z,now -O2 -march=native -pipe -c -o asn1.o asn1.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-z,relro,-z,now -O2 -march=native -pipe -c -o spnego.o spnego.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-z,relro,-z,now -O2 -march=native -pipe -c -o cifs.idmap.o cifs.idmap.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
/bin/sed 's,[@]sbindir@,/usr/sbin,' ./cifs.upcall.8.in > cifs.upcall.8-t && mv cifs.upcall.8-t cifs.upcall.8
/bin/sed -e 's,[@]sbindir@,/usr/sbin,' -e 's,[@]pluginpath@,/etc/cifs-utils/idmap-plugin,' ./cifs.idmap.8.in > cifs.idmap.8-t && mv cifs.idmap.8-t cifs.idmap.8
/bin/sed 's,[@]pluginpath@,/etc/cifs-utils/idmap-plugin,' ./getcifsacl.1.in > getcifsacl.1-t && mv getcifsacl.1-t getcifsacl.1
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
/bin/sed 's,[@]pluginpath@,/etc/cifs-utils/idmap-plugin,' ./setcifsacl.1.in > setcifsacl.1-t && mv setcifsacl.1-t setcifsacl.1
/bin/sed 's,[@]pluginpath@,/etc/cifs-utils/idmap-plugin,' ./idmapwb.8.in > idmapwb.8-t && mv idmapwb.8-t idmapwb.8
x86_64-pc-linux-gnu-gcc -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-z,relro,-z,now -O2 -march=native -pipe  -Wl,-O1,--as-needed -o getcifsacl getcifsacl.o idmap_plugin.o -ldl 
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-z,relro,-z,now -O2 -march=native -pipe  -Wl,-O1,--as-needed -o cifs.idmap cifs.idmap.o idmap_plugin.o -lkeyutils -ldl 
cifs.upcall.c: In function ‘cifs_krb5_principal_get_realm’:
cifs.upcall.c:150:2: warning: return discards ‘const’ qualifier from pointer target type
  return krb5_principal_get_realm(context, principal);
  ^
cifs.upcall.c: In function ‘get_tgt_time’:
cifs.upcall.c:220:3: warning: ‘krb5_free_unparsed_name’ is deprecated (declared at /usr/include/krb5-protos.h:3843) [-Wdeprecated-declarations]
   krb5_free_unparsed_name(context, name);
   ^
cifs.upcall.c: In function ‘get_existing_cc’:
cifs.upcall.c:361:3: warning: implicit declaration of function ‘krb5_free_string’ [-Wimplicit-function-declaration]
   krb5_free_string(context, cachename);
   ^
x86_64-pc-linux-gnu-gcc -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-z,relro,-z,now -O2 -march=native -pipe  -Wl,-O1,--as-needed -o cifs.upcall cifs.upcall.o data_blob.o asn1.o spnego.o -ltalloc -lkeyutils -lkrb5 -lcap-ng 
x86_64-pc-linux-gnu-gcc -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-z,relro,-z,now -O2 -march=native -pipe  -Wl,-O1,--as-needed -o setcifsacl setcifsacl.o idmap_plugin.o -ldl 
cifs.upcall.o: In function `main':
cifs.upcall.c:(.text.startup+0x198d): undefined reference to `krb5_free_string'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:732: cifs.upcall] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/net-fs/cifs-utils-6.7/work/cifs-utils-6.7'
make[1]: *** [Makefile:909: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-fs/cifs-utils-6.7/work/cifs-utils-6.7'
make: *** [Makefile:463: all] Error 2
 * ERROR: net-fs/cifs-utils-6.7::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-fs/cifs-utils-6.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-fs/cifs-utils-6.7::gentoo'`.
 * The complete build log is located at '/var/lib/portage/logs/net-fs:cifs-utils-6.7:20170309-172231.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-fs/cifs-utils-6.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-fs/cifs-utils-6.7/temp/environment'.
 * Working directory: '/var/tmp/portage/net-fs/cifs-utils-6.7/work/cifs-utils-6.7'
 * S: '/var/tmp/portage/net-fs/cifs-utils-6.7/work/cifs-utils-6.7'
Comment 1 Kenton Groombridge 2017-03-10 00:06:08 UTC
I have this same issue, but I believe it is related to using app-crypt/heimdal instead of app-crypt/mit-krb5

emerge --info attached
Comment 2 Kenton Groombridge 2017-03-10 00:06:27 UTC
emerge --info
Portage 2.3.4 (python 3.6.0-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.24-r1, 4.9.13-gentoo x86_64)
=================================================================
System uname: Linux-4.9.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-6800K_CPU_@_3.40GHz-with-gentoo-2.3
KiB Mem:    49276560 total,  45990588 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Wed, 08 Mar 2017 18:43:24 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.0::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r3::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.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 AdobeFlash-11.x Oracle-BCLA-JavaSE skype-4.0.0.7-copyright NVIDIA-CUDA Nessus-EULA google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs 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="http://gentoo.mirrors.tds.net/gentoo http://mirror.usu.edu/mirrors/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://mirror.leaseweb.com/gentoo/ http://cosmos.illinois.edu/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13"
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 aacplus acpi afpacket aften alsa amd64 bbswitch berkdb binary-drivers bluetooth branding bzip2 cairo caps-ng cdda cdr cli client consolekit cracklib crypt cuda cups cxx dbus declarative dri3 dts dvb dvd dvdr efi efiemu emboss encode evdev exif external-fuse fam ff-card ffmpeg file-inspect firefox flac flash fortran gdbm geoip gif git glamor gpm gstreamer gtk hpcups iconv icu ipv6 java javascript jit jpeg kde kipi kwallet large-pcap-64bit lcms ldap libnotify lightdm lm_sensors mad mjpeg mng modules mp3 mp4 mpeg multilib ncurses nfs nfsv4 nls nptl nsplugin ntfs ntfsprogs ntp nvidia ogg openal opencl opengl openmp openssl pam pango pcre pcsc-lite pdf phonon pkcs11 png policykit ppds prelink projectm proprietary-codecs pulseaudio python qemu qml qt3support qt4 qt5 rar readline samba scanner sdl seccomp semantic-desktop sensors session shm smartcard sna soprano spell sqlite ssl startup-notification svc svg tcpd theora threads tiff touchpad truetype udev udisks unicode usb uvm uxa v4l v4l2 vdpau vix vorbis vpx widevine widgets winbind wma wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xnest xorg xscreensaver xv xvid xvmc zip 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" 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="efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" RUBY_TARGETS="ruby21 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
USE_PYTHON="3.6"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-03-27 07:58:24 UTC

*** This bug has been marked as a duplicate of bug 612584 ***
Comment 4 Fitzcarraldo 2017-03-28 15:10:50 UTC
I don't understand why this bug report has been changed to 'RESOLVED DUPLICATE'. Even with the modification instituted in Bug Report 612584, I still can only merge cifs-utils when USE="-ads" if I also have USE="-acl". I notice that the ebuild contains the following line:

REQUIRED_USE="acl? ( ads )"

Does that mean that USE="ads" is mandatory if USE="acl"? If it does, why is that? Why is it mandatory to use Active Directory Services in order to be able to use Access Control Lists in Samba/CIFS? If I am using WINS or NetBIOS broadcasts for name resolution, Active Directory Services is not required but I should still be able to use Access Control Lists, shouldn't I?