Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134515 - sys-libs/pam-0.78*: fails with gcc4.1.1 and selinux flag
Summary: sys-libs/pam-0.78*: fails with gcc4.1.1 and selinux flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
: 147659 (view as bug list)
Depends on: 150859
Blocks:
  Show dependency tree
 
Reported: 2006-05-27 05:48 UTC by Constantine Kardaris
Modified: 2007-03-16 02:43 UTC (History)
4 users (show)

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


Attachments
gcc-4.1 patch (pam-selinux-gcc41.patch,1.34 KB, patch)
2006-05-28 14:06 UTC, Mark Loeser (RETIRED)
Details | Diff
pam-0.78-selinux.patch.patch (pam-0.78-selinux.patch.patch,1.43 KB, patch)
2006-09-03 11:02 UTC, kalium
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Constantine Kardaris 2006-05-27 05:48:46 UTC
when im trying to recompile system packages with gcc 4.1.1 pam fails

pam ver: sys-libs/pam-0.78-r3  USE="berkdb selinux -nis -pam_chroot -pam_console -pam_timestamp -pwdb" (i tried -r5 too)


x86_64-pc-linux-gnu-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-r5/work/Linux-PAM-0.78/include -Wl,-L/var/tmp/portage/pam-0.78-r5/work/Linux-PAM-0.78/lib -O2 -march=k8 -pipe   -I./include -I/var/tmp/portage/pam-0.78-r5/work/Linux-PAM-0.78/libpam/include -I/var/tmp/portage/pam-0.78-r5/work/Linux-PAM-0.78 -I/var/tmp/portage/pam-0.78-r5/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-r5/work/Linux-PAM-0.78/modules/pam_unix'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/pam-0.78-r5/work/Linux-PAM-0.78/modules'
make: *** [modules] Error 2

!!! ERROR: sys-libs/pam-0.78-r5 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  pam-0.78-r5.ebuild, line 277:   Called die



Portage 2.1_rc2-r3 (selinux/2005.1/amd64, gcc-4.1.1, glibc-2.3.6-r3, 2.6.16.17 x86_64)
=================================================================
System uname: 2.6.16.17 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox selinux sfperms strict"
GENTOO_MIRRORS="http://files.gentoo.gr"
LINGUAS="en el"
MAKEOPTS="-j2"
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"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi alsa amd64 apache2 avi berkdb blas cairo cdr cjk crypt cups dbus dvd dvdr emul-linux-x86 fam ffmpeg firefox fortran gamin gif gimpprint gnome graphviz gtk gtk2 gtkhtml hal hdf5 imlib immqt-bc java jpeg kde kdeenablefinal lapack mad matroska mime motif moznocompose moznoirc moznomail mp3 mpeg ncurses nls nntp nosendmail nptl nptlonly nvidia ogg oggvorbis opengl pam pcre perl php plotutils png ppds python qt quicktime readline ruby sbcl selinux spell ssl svg tcltk tcpd tetex tidy tiff truetype unicode usb userlocales vorbis xine xmms xscreensaver xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_el userland_GNU video_cards_nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2006-05-28 14:06:49 UTC
Created attachment 87762 [details, diff]
gcc-4.1 patch

This should fix it
Comment 2 Constantine Kardaris 2006-05-28 14:36:40 UTC
yep that works for me.
Comment 3 kalium 2006-09-03 11:02:14 UTC
Created attachment 95868 [details, diff]
pam-0.78-selinux.patch.patch

patches the selinux patch for pam-0.78-r3. This one is closer to the original code and just places brackets where needed.
Comment 4 kalium 2006-09-03 11:03:15 UTC
Ebuild for immediate fix is at:
https://stier.dynu.com/~myportage/sys-libs/pam/
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-09-15 01:50:33 UTC
*** Bug 147659 has been marked as a duplicate of this bug. ***
Comment 6 Chris PeBenito (RETIRED) gentoo-dev 2006-10-16 10:56:28 UTC
I can't reproduce this on pam-0.78-r5
Comment 7 ProTech 2006-10-18 05:39:43 UTC
I run into this problem with pam-0.78-r3. The r5 version of the ebuild worked. Please make this version stable.

emerge --info:

Portage 2.1.1 (selinux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Celeron (Coppermine)
Gentoo Base System version 1.12.5
Last Sync: Tue, 17 Oct 2006 21:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
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-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks loadpolicy metadata-transfer parallel-fetch sandbox selinux sesandbox sfperms strict userfetch"
GENTOO_MIRRORS="ftp://ftp.fsn.hu/pub/linux/distributions/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS=""
MAKEOPTS="-j1"
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.europe.gentoo.org/gentoo-portage"
USE="x86 berkdb crypt elibc_glibc input_devices_keyboard input_devices_mouse ipv6 kernel_linux ncurses nls nptl nptlonly pam python readline selinux ssl symlink tcpd udev unicode userland_GNU zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 8 Pim Dennendal 2006-12-15 03:30:46 UTC
May be a little silly ... I tries to do a Pentium/3 + hardened (2005.1/x86) + selinux. I got to the first boot and swapped from install (add real user) to selinux (emerge policy ...).

This is followed by re: emerge sysvinit pam coreutils .... openssh

The idea is not to have back-track and re-emerge "world" on a new system build. Both pam and coreutils will not compile either with or without the selinux in effect.
I hope this fixes pam - else it will not boot at all !!!
Comment 9 Pim Dennendal 2006-12-15 10:07:11 UTC
"pam-078-r5" installs for me. I should now be ok - hope.
Comment 10 Chris PeBenito (RETIRED) gentoo-dev 2007-03-16 02:43:48 UTC
pam 0.78-r5 has been marked stable for a while, closing