Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210478 - net-ftp/vsftpd compile fails w/ sys-libs/libcap-2.06 - /usr/include/sys/capability.h:110: error: previous declaration of ‘capset’ was here
Summary: net-ftp/vsftpd compile fails w/ sys-libs/libcap-2.06 - /usr/include/sys/capab...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 211392 211458 211460 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-17 15:10 UTC by Michał Kiedrowicz
Modified: 2008-02-29 07:30 UTC (History)
11 users (show)

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


Attachments
complete build log (vsftpd.log,4.35 KB, text/plain)
2008-02-17 15:10 UTC, Michał Kiedrowicz
Details
3.0.28-capget.patch (3.0.28-capget.patch,494 bytes, patch)
2008-02-19 12:41 UTC, Damian Kolkowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Kiedrowicz 2008-02-17 15:10:06 UTC
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
Comment 1 Michał Kiedrowicz 2008-02-17 15:10:37 UTC
Created attachment 143785 [details]
complete build log
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-17 15:27:47 UTC
Ditto with net-fs/samba, net-misc/ntp and anything else I tried.

Comment 3 Chris Smith 2008-02-17 20:45:50 UTC
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.
Comment 4 Chris Smith 2008-02-17 20:52:30 UTC
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
Comment 5 Matthias M Weber 2008-02-17 21:34:14 UTC
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.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-02-17 21:41:08 UTC
*** Bug 210527 has been marked as a duplicate of this bug. ***
Comment 7 Devang M 2008-02-18 03:11:14 UTC
I get the exact same error as Chris Smith for samba-3.0.28 after upgrading to libcap-2.06 too. 
Comment 8 SpanKY gentoo-dev 2008-02-18 05:26:40 UTC
so fix the packages ... not a bug in libcap
Comment 9 Norberto Bensa 2008-02-18 06:05:54 UTC
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

Comment 10 Damian Kolkowski 2008-02-19 12:41:46 UTC
Created attachment 143956 [details, diff]
3.0.28-capget.patch
Comment 11 Michał Kiedrowicz 2008-02-19 12:54:15 UTC
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.
Comment 12 Stefan Schmiedl 2008-02-19 20:42:25 UTC
(In reply to comment #0)
> USE="... cairo cdr ...."

Adding caps to the USE flags solved the build problem for me (on amd64)

s.
Comment 13 Oskar Ellström 2008-02-20 22:26:54 UTC
(In reply to comment #12)
> Adding caps to the USE flags solved the build problem for me (on amd64)

Works for me too

//Oskar
Comment 14 Raúl Porcel (RETIRED) gentoo-dev 2008-02-21 17:29:58 UTC
Sync in an hour or so and should be fixed, vsftpd, that is.
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2008-02-25 17:08:55 UTC
*** Bug 211392 has been marked as a duplicate of this bug. ***
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2008-02-25 22:13:28 UTC
*** Bug 211458 has been marked as a duplicate of this bug. ***
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2008-02-25 22:19:11 UTC
*** Bug 211460 has been marked as a duplicate of this bug. ***
Comment 18 Kyle Elbert 2008-02-25 22:42:13 UTC
apparently the patch hasn't made it into the tree as of yesterday.... 
Comment 19 Raúl Porcel (RETIRED) gentoo-dev 2008-02-25 23:51:13 UTC
Reopening..
Comment 20 Raúl Porcel (RETIRED) gentoo-dev 2008-02-26 17:39:47 UTC
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 :)
Comment 21 Stoian Ivanov 2008-02-29 07:30:26 UTC
fixed thanks