I'm setting up a new Gentoo server with SELinux, following the doc at http://www.gentoo.org/proj/en/hardened/selinux/selinux-handbook.xml. But emerging sys-libs/pam-0.78-r3 with USE flags 'berkdb' and 'selinux' results into a failure during the compile process: gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dlinux -I/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/include -Wl,-L/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/lib -march=athlon-xp -O2 -pipe -fomit-frame-pointer -I./include -I/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/libpam/include -I/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78 -I/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/libpamc/include -fPIC -D"USE_LCKPWDF" -DCRACKLIB_DICTS=\"/usr/lib/cracklib_dict\" -DCHKPWD_HELPER=\"/usr/sbin/unix_chkpwd\" -I../pammodutil/include -DWITH_SELINUX -DPAM_DYNAMIC -c pam_unix_passwd.c -o dynamic/pam_unix_passwd.o pam_unix_passwd.c: In function '_unix_run_shadow_binary': pam_unix_passwd.c:278: error: invalid lvalue in assignment pam_unix_passwd.c: In function 'save_old_password': pam_unix_passwd.c:392: error: invalid lvalue in assignment pam_unix_passwd.c:504: error: invalid lvalue in assignment pam_unix_passwd.c: In function '_update_passwd': pam_unix_passwd.c:532: error: invalid lvalue in assignment pam_unix_passwd.c:618: error: invalid lvalue in assignment pam_unix_passwd.c: In function '_update_shadow': pam_unix_passwd.c:650: error: invalid lvalue in assignment pam_unix_passwd.c:735: error: invalid lvalue in assignment pam_unix_passwd.c: In function '_do_setpass': pam_unix_passwd.c:776: error: invalid lvalue in assignment pam_unix_passwd.c: In function '_unix_verify_shadow': pam_unix_passwd.c:880: error: invalid lvalue in assignment pam_unix_passwd.c: In function '_pam_unix_approve_pass': pam_unix_passwd.c:955: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_unix_passwd.c: In function 'pam_sm_chauthtok': pam_unix_passwd.c:1163: warning: dereferencing type-punned pointer will break strict-aliasing rules pam_unix_passwd.c:1166: warning: dereferencing type-punned pointer will break strict-aliasing rules make[2]: *** [dynamic/pam_unix_passwd.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/modules/pam_unix' make[1]: *** [all] Error 1 make[1]: Leaving directory `/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/modules' make: *** [modules] Error 2
# emerge --info Portage 2.1.1-r2 (selinux/2005.1/x86/hardened, gcc-4.1.1, glibc-2.3.6-r5, 2.6.17-hardened-r1 i686) ================================================================= System uname: 2.6.17-hardened-r1 i686 AMD Athlon(TM) XP1600+ Gentoo Base System version 1.12.1 Last Sync: Mon, 04 Dec 2006 09:30:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox selinux sesandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" 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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="aio apache2 berkdb bzip2 cgi crypt curl dlloader elibc_glibc expat graphviz hardened input_devices_keyboard input_devices_mouse jbig jpeg jpeg2k kernel_linux mpeg mysql ncurses nptl nptlonly pam perl php pic png postgres python readline ruby selinux ssl threads tiff truetype userland_GNU wmf x86 xml zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
*** This bug has been marked as a duplicate of 150859 ***