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

Bug 218850

Summary: net-ftp/proftpd-1.3.1 doesn't compile
Product: Gentoo Linux Reporter: Michael Cramer <portage>
Component: New packagesAssignee: Luca Longinotti (RETIRED) <chtekk>
Status: RESOLVED FIXED    
Severity: normal CC: tobias
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: This should fix problem

Description Michael Cramer 2008-04-22 08:28:58 UTC
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include -I/usr/include/postgresql -O2 -march=native -pipe -DUSE_LDAP_TLS -Wall -c mod_lang.c
srcdir=. ./glue.sh mod_core.o mod_xfer.o mod_auth_unix.o mod_auth_file.o mod_auth.o mod_ls.o mod_log.o mod_site.o mod_delay.o mod_ratio.o mod_readme.o mod_facl.o mod_ban.o mod_case.o mod_clamav.o mod_deflate.o mod_auth_pam.o mod_rewrite.o mod_shaper.o mod_site_misc.o mod_tls.o mod_wrap.o mod_vroot.o mod_ldap.o mod_sql.o mod_sql_postgres.o mod_quotatab.o mod_quotatab_sql.o mod_quotatab_file.o mod_quotatab_ldap.o mod_ifsession.o mod_cap.o mod_ctrls.o mod_lang.o
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include -I/usr/include/postgresql -O2 -march=native -pipe -DUSE_LDAP_TLS -Wall -c module_glue.c
make[1]: Leaving directory `/mnt/nfs/portage_tmp/portage/net-ftp/proftpd-1.3.1/work/proftpd-1.3.1/modules'
test -z """" -a -z """" || (cd modules/ && make shared)
make[1]: Entering directory `/mnt/nfs/portage_tmp/portage/net-ftp/proftpd-1.3.1/work/proftpd-1.3.1/lib/libcap'
=> making cap_names.c from <linux/capability.h>
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -DUSE_LDAP_TLS -Wall -L/lib -Wl,-O1 -lresolv  _makenames.c -o _makenames
./_makenames > cap_names.h
i686-pc-linux-gnu-gcc -O2 -march=native -pipe -DUSE_LDAP_TLS -Wall -c cap_alloc.c -o cap_alloc.o
In file included from cap_alloc.c:12:
libcap.h:57:3: error: #error "Kernel <linux/capability.h> does not match library"
libcap.h:58:3: error: #error "file "libcap.h" --> fix and recompile libcap"
make[1]: *** [cap_alloc.o] Error 1
make[1]: Leaving directory `/mnt/nfs/portage_tmp/portage/net-ftp/proftpd-1.3.1/work/proftpd-1.3.1/lib/libcap'
make: *** [dirs] Error 2
 *
 * ERROR: net-ftp/proftpd-1.3.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2876:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/mnt/nfs/portage_log/net-ftp:proftpd-1.3.1:20080422-082023.log'.
 * The ebuild environment file is located at '/mnt/nfs/portage_tmp/portage/net-ftp/proftpd-1.3.1/temp/environment'.
 *


rebuilding sys-libs/libcap-2.08-r1 didn't help, like said in the error message

Reproducible: Always




Portage 2.1.5_rc5 (default/linux/x86/2008.0/server, gcc-4.2.3, glibc-2.7-r2, 2.6.24-gentoo-r5-2007.0 i686)
=================================================================
System uname: 2.6.24-gentoo-r5-2007.0 i686 Pentium III (Coppermine)
Timestamp of tree: Mon, 21 Apr 2008 14:30:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.2-r2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 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.25-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 -march=native -pipe"
DISTDIR="/mnt/nfs/portage_distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/mnt/nfs/portage_packages"
PORTAGE_RSYNC_EXTRA_OPTS="-O"
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="/mnt/nfs/portage_tmp"
PORTDIR="/mnt/nfs/portage_tree"
PORTDIR_OVERLAY="/mnt/nfs/portage_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aalib acl acpi amr apache2 ares async authfile ban bcmath berkdb bzip2 calendar caps case cjk clamav cli cracklib crypt cscope ctype cups curl curlwrappers dbus deflate device-mapper directfb disk-partition diskio djbfft djvu doc dri elf encode exif fam fbcon ffmpeg filter flatfile fontconfig fortran fpx ftp gd gdbm ggi gif glibc-omitfp glitz gmp gnutls gpm graphviz gs gtk hal hash hdri iconv idea idn ifsession imagemagick imap imlib inifile ipv6 isdnlog java jbig jce jpeg jpeg2k json lcms ldap libcaca libgcrypt libssh2 lm_sensors lzo mailwrapper mhash midi mmx motif mp3 mudflap ncurses netpbm network network-cron nls nptl nptlonly nss ogg openexr opengl openmp pam pcntl pcre perl pg-intdatetime php pic pkcs11 png posix postgres ppds pppd python q32 qt3 raw readline reflection rewrite rle samba sasl sdl session shaper simplexml sitemisc slang snmp soap sockets softquota soundex spell spl sqlite sqlite3 sse ssl suhosin svg symlink sysfs syslog sysvipc tcl tcpd tetex theora tiff tokenizer tools truetype unicode unzip urandom usb vda vim-pager vim-syntax vim-with-x vorbis vroot wmf x264 x86 x86emu xattr xcb xft xml xmldoclet xmlrpc xorg xpm xsl xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard linuxinput ps2mouse mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="ati128 r128 vesa"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Kenton Groombridge 2008-04-23 01:43:22 UTC
Yep, got same error here.

emerge --info
Portage 2.1.5_rc6 (default-linux/amd64/2007.0, gcc-4.3.0, glibc-2.7-r2, 2.6.25-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Timestamp of tree: Wed, 23 Apr 2008 00:30:08 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.2-r2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  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.25-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=athlon64 -msse3 -O2 -pipe"
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/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -mtune=athlon64 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.mirrors.pair.com/"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS=""
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=120"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip S3TC X a52 aac acpi aften alsa amarok amd64 amrnb arts audiofile bash-completion berkdb binary-drivers bzip2 cairo cddb cdparanoia cdr cdrom cracklib crypt css cups curl dbus depth32 divx dri dv dvd dvdr dvdread emoticon encode expat fame ffmpeg fftw firefox flac foomaticdb gdbm gif gimp glibc-omitfp glitz glut gzip hal iconv ieee1394 imagemagick imlib iproute2 java javascript joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lame libvisual live lm_sensors logitech-mouse lzo mad midi mjpeg mmx mmxext mng mp2 mp3 mp4 mpeg mpeg2 mplayer musicbrainz ncurses network nls normalize nptl nptlonly nsplugin nspr nvidia offensive ogg openal opengl openmp pam pango pcre perl physfs png ppds python qt3 qt3support qt4 quicktime rar readline realmedia rt61pci rtc samba scanner sdl smartcard sound sse sse2 ssl subtitles svg svgz sysfs syslog tcpd theora threadsafe tiff transcode truetype type1 unicode unzip urandom usb userlocales utempter v4l2 vcd visualization vorbis wav wifi wma wmf wmp xcomposite xine xorg xpm xscreensaver xvid xvmc zip zlib" ALSA_CARDS="emu10k1" 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 authn_alias authn_anon 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 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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 Vladimir Smirnov (RETIRED) gentoo-dev 2008-04-23 06:48:04 UTC
Created attachment 150681 [details, diff]
This should fix problem

It should fix the problem. You can either change or comment in /lib/libcap/libcap.h line #54-60.
Comment 3 Tobias Kaminsky 2008-04-23 07:12:40 UTC
(In reply to comment #2)
> Created an attachment (id=150681) [edit]
> This should fix problem
> 
> It should fix the problem. You can either change or comment in
> /lib/libcap/libcap.h line #54-60.
> 

Worked for me.
Thank you very much!

$emerge --info
Portage 2.1.5_rc6 (default/linux/x86/2008.0/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6.22-suspend2-r2 i686)
=================================================================
System uname: 2.6.22-suspend2-r2 i686 AMD Athlon(tm) XP 2600+
Timestamp of tree: Tue, 22 Apr 2008 07:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.2-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
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.25-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d/local.start /etc/fstab /etc/init.d/keymaps /etc/modules.autoload.d/kernel-2.6 /etc/rc.conf /opt/glftpd/etc /opt/glftpd/ftp-data /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://212.219.56.134/sites/www.ibiblio.org/gentoo/ http://213.186.33.38/gentoo-distfiles/ http://ftp.roedu.net/pub/mirrors/gentoo.org/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j2"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext LINGUAS_en_GB X a52 aac aalib ac3 acl acpi aiglx alsa asf audiofile bash-completion berkdb bitmap-fonts bluetooth branding browserplugin bt87x bzip2 cairo cdr cli cracklib crypt css cups curl dbus divx divx4linux divx6 dlloader dri dvb dvd dvdnav dvdr dvdread eds emboss encode esd evo exif expat fam fbsplash ffmpeg firefox flac foomaticdb fortran gdbm gif glitz glut gpm gtk gtk2 hal hbci iconv ieee1394 imagemagick imlib isdnlog java jpeg jpeg2k junit kde kdehiddenvisibility kerberos lcms ldap libnotify lilo lirc live logitech-mouse mad midi mikmod mmx mmxext mng motif mp3 mp4 mpeg mplayer msn mudflap musepack mythtv nas ncurses network newspr nls nognome nptl nptlonly nsplugin nvidia offensive ogg opengl openmp osd pam pcre pdf perl pic png ppds pppd python qt qt3 qt3support qt4 quicktime readline real reflection rtc samba sdl sensord session slang spell spl sse ssl startup-notification svg tcltk tcpd thread threads tiff truetype truetype-fonts type1-fonts unicode usb vcd visualization vnc vorbis win32codecs wmf x86 xcomposite xine xml xml2 xorg xosd xprint xv xvid zlib" ALSA_CARDS="via82xx bt87x" 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 authn_alias authn_anon 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 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" ELIBC="glibc" INITNG_PLUGINS="doc also bash_launcher chdir chroot conflict cpout critical cron daemon dev dllaunch envparser find fstat history idleprobe initctl interactive iparser last limit logfile netprobe ngc2 pause pidfile reload renice rlparser simple_launcher stcmd stdout suid syncron syslog unneeded ctrlaltdel daemon_clean ngc4 ngcs nge runlevels splash vim net fixes busybox cmake_color_makefile count_me dbus_event debug_commands lockfile usplash netdev provide sysreq bash_parser fmon dbus_event service_file" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" LIRC_DEVICES="atiusb" USERLAND="GNU" VIDEO_CARDS="nvidia nv nouveau"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Luca Longinotti (RETIRED) gentoo-dev 2008-04-24 18:07:52 UTC
Bug fixed in proftpd-1.3.1, emerge --sync in a few hours to get the updated ebuild.
The problem lies within the fact that the unstable linux-headers seem to have a new version number for _LINUX_CAPABILITY_VERSION, which then makes the check in proftpd's lib/libcap/libcap.h fail. I've patched it to also take into account the new version number now, and it works as expected.
Best regards, chtekk.