Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196352 - glibc-2.6.1 failed to build on selinux amd64 with CAP_AUDIT_WRITE undeclared
Summary: glibc-2.6.1 failed to build on selinux amd64 with CAP_AUDIT_WRITE undeclared
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on: 200512
Blocks:
  Show dependency tree
 
Reported: 2007-10-19 05:24 UTC by Steve Yin
Modified: 2008-02-25 02:37 UTC (History)
1 user (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 Steve Yin 2007-10-19 05:24:22 UTC
selinux.c:162: error: 'CAP_AUDIT_WRITE' undeclared here (not in a function)
selinux.c:165: error: initializer element is not constant
selinux.c:165: error: (near initialization for 'tmp_cap_list[0]')
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/nscd/selinux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1/nscd'
make[1]: *** [nscd/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1'
make: *** [all] Error 2

I only tested on selinux amd64, but yesterday, I tried this on my x86, it will fail too.

BTW, I'm using newest linux-header-2.6.22

there is the info:
Portage 2.1.3.9 (selinux/2007.0/amd64, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r8 x86_64 Intel(R) Pentium(R) D CPU 2.66GHz
Timestamp of tree: Fri, 19 Oct 2007 03:30:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
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
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -fomit-frame-pointer -DNDEBUG -pipe -fno-ident -ftracer -fweb -frename-registers"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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"
CXXFLAGS="-O2 -march=nocona -fomit-frame-pointer -DNDEBUG -pipe -fno-ident -ftracer -fweb -frename-registers -fno-enforce-eh-specs"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks loadpolicy metadata-transfer parallel-fetch sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ http://ftp.gentoo.or.kr/ http://open-systems.ufl.edu/mirrors/gentoo"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--hash-style=both  -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.chinavfx.net/gentoo-portage"
USE="X aalib acpi amd64 apache2 audiofile authdaemond avahi bash-completion bcmath berkdb bitmap-fonts bluetooth bzip2 bzlib cairo caps cdr cjk cli cracklib crypt cscope ctype cups curl dbus dmi dmx dri dvd dvdr dynamic emacs-w3 exif expat fam fortran freetype gd gdbm glitz glut gmp gpm gtkhtml guile hal iconv idn imagemagick ipv6 isdnlog ithreads java javascript joystick jpeg jpeg2k kerberos lcms ldap libcaca libnotify lm_sensors logrotate lua maildir mailwrapper memlimit midi mime mmap mmx mng motif mpi mudflap mysql mysqli ncurses nis nls nntp nocardbus nptl nptlonly nsplugin odbc offensive openmp pam pcmcia pcntl pcre pda perl php plotutils png pnp portaudio posix postgres ppds pppd profile python readline reflection ruby samba sasl selinux session sftplogging skey slang slp sndfile snmp soap socks5 spell spl sqlite sse sse2 ssl startup-notification svg symlink tcl tcltk tcpd tetex threads tiff tk truetype truetype-fonts trusted type1-fonts unicode usb vcd vhosts wmf xcb xine xinerama xinetd xml xml2 xorg xpm xprint xvid 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv none nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 Chris PeBenito (RETIRED) gentoo-dev 2007-10-19 13:36:43 UTC
I'm guessing you have <=sys-libs/libcap-1.10-r9?  Can you retry with -r10 or -r11?
Comment 2 Steve Yin 2007-10-22 07:02:58 UTC
yes, glibc-2.6.1 can be build libcap-1.10-r11 without any problem.

so, libcap-1.10-r9 is the problem.
Comment 3 Chris PeBenito (RETIRED) gentoo-dev 2008-02-25 02:37:53 UTC
libcap is stable, closing