Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210527 - net-fs/samba-3.0.28 fails to build with libcap-2
Summary: net-fs/samba-3.0.28 fails to build with libcap-2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 210576 210952 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-17 21:39 UTC by Michael Baer
Modified: 2008-02-21 09:43 UTC (History)
12 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 Michael Baer 2008-02-17 21:39:07 UTC
net-fs/samba-3.0.28 fails to compile with a "previous declaration of 'capget' was here" error.
It seems, that samba is incompatible with the newly installed sys-libs/libcap-2.06.

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-libs/libcap-2.06
2. emerge =net-fs/samba-3.0.28

Actual Results:  
Compiling smbd/oplock_linux.c
smbd/oplock_linux.c:38: error: conflicting types for 'capget'
/usr/include/sys/capability.h:111: error: previous declaration of 'capget' was here
smbd/oplock_linux.c:40: error: conflicting types for 'capset'
/usr/include/sys/capability.h:110: error: previous declaration of 'capset' was here
The following command failed:
x86_64-pc-linux-gnu-gcc -I. -I/var/tmp/portage/net-fs/samba-3.0.28/work/samba-3.0.28/source  -O2 -pipe -march=k8 -D_SAMBA_BUILD_=3  -I/var/tmp/portage/net-fs/samba-3.0.28/work/samba-3.0.28/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED    -I/var/tmp/portage/net-fs/samba-3.0.28/work/samba-3.0.28/source/lib -D_SAMBA_BUILD_=3 -fPIC -c smbd/oplock_linux.c -o smbd/oplock_linux.o
make: *** [smbd/oplock_linux.o] Error 1


A quick'n'dirty "fix" is to disable usage of linux capabilities by disabling caps via USE flag (USE="-caps").

Expected Results:  
Compiled, installed and smoothly running samba with capabilities ;-)

Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.2.3, glibc-2.7-r1, 2.6.24-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r2 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
Timestamp of tree: Sun, 17 Feb 2008 13:17:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="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/ "
LANG="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /usr/portage/local/layman/php-testing /usr/portage/local/layman/sunrise /usr/portage/local/my-ebuilds"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 apache2 apic arts asf avi bash-completion bcmath berkdb bitmap-fonts bzip2 cairo calendar caps cgi cli cracklib crypt css cups curl dba dbus devmap dga doc dri drm dvd dvdr dvdread emovix encode examples ffmpeg flac flatfile fortran freetype gd gdbm gif glitz gnome gpm graphviz gs gstreamer gtk gtk2 guile hal iconv icu imagemagick imap ipv6 isdnlog java java5 jpeg jpeg2k kde kerberos latex ldap libnotify lm_sensors mad maildir mhash midi mmx motif mozdevelop mp3 mp4 mpeg mplayer msn mudflap musepack musicbrainz mysql ncurses nfs nls nptl nptlonly ntfs objc offensive ogg opengl openmp oss pam pcre pdf pear perl png postscript pppd python qt qt3 qt4 readline reflection samba scanner sdl session slang smp sndfile soap sockets socks5 spl sse sse2 ssl suhosin svg tcl tcltk tcpd themes theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb v4l2 vcd vhosts vorbis wmf x264 xcomposite xfs xine xinerama xml xml2 xorg xplanet xrandr xsettings xsl xv xvid xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache 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 so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fglrx ati vesa radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-17 21:41:08 UTC

*** This bug has been marked as a duplicate of bug 210478 ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-18 07:57:39 UTC
Sigh...
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2008-02-18 13:19:15 UTC
*** Bug 210576 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-02-19 08:00:10 UTC
*** Bug 210662 has been marked as a duplicate of this bug. ***
Comment 5 Florian Scandella 2008-02-19 15:02:09 UTC
just to clarify, bug 210662 describes another problem and i'm not sure if its an samba bug.
Comment 6 Tiziano Müller (RETIRED) gentoo-dev 2008-02-20 20:04:04 UTC
Fixed in CVS. Please wait a couple of hours, resync and retry. Thanks.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2008-02-21 09:43:52 UTC
*** Bug 210952 has been marked as a duplicate of this bug. ***