x86_64-pc-linux-gnu-gcc -c sysutil.c -march=nocona -O2 -pipe -ggdb -idirafter dummyinc x86_64-pc-linux-gnu-gcc -c sysdeputil.c -march=nocona -O2 -pipe -ggdb -idirafter dummyinc sysdeputil.c:511: error: conflicting types for ‘capset’ /usr/include/sys/capability.h:110: error: previous declaration of ‘capset’ was here make: *** [sysdeputil.o] Error 1 make: *** Waiting for unfinished jobs.... * * ERROR: net-ftp/vsftpd-2.0.6 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2110: Called die * The specific snippet of code: * emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die * The die message: * (no error message) * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/net-ftp:vsftpd-2.0.6:20080217-150700.log'. * The ebuild environment file is located at '/var/tmp/portage/net-ftp/vsftpd-2.0.6/temp/environment'. * Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.2.1, glibc-2.7-r1, 2.6.24-gentoo-r2 x86_64) ================================================================= System uname: 2.6.24-gentoo-r2 x86_64 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz Timestamp of tree: Sun, 17 Feb 2008 13:46:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.5.1-r5 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="-march=nocona -O2 -pipe -ggdb" 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-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe -ggdb" DISTDIR="/usr/portage.distfiles" FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict test unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl ftp://gentoo.po.opole.pl ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" LANG="pl_PL.UTF-8" LC_ALL="pl_PL.UTF-8" LINGUAS="pl" MAKEOPTS="-j3" 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/sunrise /usr/portage/local/layman/custom-kernels /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac alsa amd64 apache2 bash-completion berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread encode flac gdbm gif gnutls gpm gstreamer gtk hal iconv java jpeg kdeenablefinal kdehiddenvisibility lcms lm_sensors logrotate mad midi mmx mp3 mpeg mudflap musepack mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl php png postgres python quicktime readline sasl sdl session slang spell spl sse sse2 ssl svg tcpd threads truetype truetype-fonts type1-fonts unicode vim-syntax vorbis xcomposite xml xorg xvid zlib" ALSA_CARDS="hda-intel" 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="pl" USERLAND="GNU" VIDEO_CARDS="i810 i830 i915 vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 143785 [details] complete build log
Ditto with net-fs/samba, net-misc/ntp and anything else I tried.
app-crypt/pinentry-0.7.4-r1 app-misc/pax-utils-0.1.17 media-sound/jack-audio-connection-kit-0.109.2 media-sound/pulseaudio-0.9.9-r1 net-analyzer/wireshark-0.99.7-r2 net-misc/ntp-4.2.4_p4 net-fs/samba-3.0.28 On my X64 system all of the above rebuilt except for net-fs/samba-3.0.28.
Following is the samba error: Compiling smbd/oplock_irix.c 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 -march=native -O2 -fomit-frame-pointer -pipe -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 -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
I could reproduce this behavior on my x86_64 system with an identical error while compiling samba. Except for net-fs/samba-3.0.28 all packages mentioned rebuilt.
*** Bug 210527 has been marked as a duplicate of this bug. ***
I get the exact same error as Chris Smith for samba-3.0.28 after upgrading to libcap-2.06 too.
so fix the packages ... not a bug in libcap
For samba just get rid of these: extern int capget(struct cap_user_header * hdrp, struct cap_user_data * datap); extern int capset(struct cap_user_header * hdrp, const struct cap_user_data * datap); in source/smbd/oplock_linux.c
Created attachment 143956 [details, diff] 3.0.28-capget.patch
vsftpd fails to build because of # Fix building without the libcap epatch "${FILESDIR}/${P}-caps.patch" in the ebuild. So this patch shouldn't be included if libcap is present in the system.
(In reply to comment #0) > USE="... cairo cdr ...." Adding caps to the USE flags solved the build problem for me (on amd64) s.
(In reply to comment #12) > Adding caps to the USE flags solved the build problem for me (on amd64) Works for me too //Oskar
Sync in an hour or so and should be fixed, vsftpd, that is.
*** Bug 211392 has been marked as a duplicate of this bug. ***
*** Bug 211458 has been marked as a duplicate of this bug. ***
*** Bug 211460 has been marked as a duplicate of this bug. ***
apparently the patch hasn't made it into the tree as of yesterday....
Reopening..
Sigh...okay, i hope it's fixed now... Sync in an hour or so, and it should be fixed, let me know if it works or doesn't work :)
fixed thanks