pam-0.77-r1 fails to compile Reproducible: Always Steps to Reproduce: 1. emerge pam 2. 3. Actual Results: [...] gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dlinux -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -fPIC -I/var/tmp/portage/pam-0.77-r1/work/Linux-PAM-0.77/include -I./include -I/var/tmp/portage/pam-0.77-r1/work/Linux-PAM-0.77/libpam/include -I/var/tmp/portage/pam-0.77-r1/work/Linux-PAM-0.77 -I/var/tmp/portage/pam-0.77-r1/work/Linux-PAM-0.77/libpamc/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_GNU_SOURCE -DLOCKDIR=\"/var/run/console\" -I../pammodutil/include -DPAM_DYNAMIC -c pam_console_apply_devfsd.c -o dynamic/pam_console_apply_devfsd.o In file included from regerr.c:5, from pam_console_apply_devfsd.c:109: ../../_pam_aconf.h:23:1: warning: "_SVID_SOURCE" redefined In file included from /usr/include/errno.h:29, from pam_console_apply_devfsd.c:5: /usr/include/features.h:142:1: warning: this is the location of the previous definition In file included from regerr.c:5, from pam_console_apply_devfsd.c:109: ../../_pam_aconf.h:24:1: warning: "_BSD_SOURCE" redefined In file included from /usr/include/errno.h:29, from pam_console_apply_devfsd.c:5: /usr/include/features.h:140:1: warning: this is the location of the previous definition In file included from regerr.c:5, from pam_console_apply_devfsd.c:109: ../../_pam_aconf.h:25:1: warning: "__USE_BSD" redefined In file included from /usr/include/errno.h:29, from pam_console_apply_devfsd.c:5: /usr/include/features.h:232:1: warning: this is the location of the previous definition In file included from regerr.c:5, from pam_console_apply_devfsd.c:109: ../../_pam_aconf.h:26:1: warning: "__USE_SVID" redefined In file included from /usr/include/errno.h:29, from pam_console_apply_devfsd.c:5: /usr/include/features.h:236:1: warning: this is the location of the previous definition In file included from regerr.c:5, from pam_console_apply_devfsd.c:109: ../../_pam_aconf.h:27:1: warning: "__USE_MISC" redefined In file included from /usr/include/errno.h:29, from pam_console_apply_devfsd.c:5: /usr/include/features.h:228:1: warning: this is the location of the previous definition In file included from regerr.c:5, from pam_console_apply_devfsd.c:109: ../../_pam_aconf.h:28:1: warning: "_GNU_SOURCE" redefined <command line>:5:1: warning: this is the location of the previous definition In file included from pam_console_apply_devfsd.c:6: /usr/include/glib-1.2/glib.h:1697: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1703: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1705: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1719: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1721: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1745: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1747: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:2319: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here pam_console_apply_devfsd.c:52: warning: no previous prototype for `pam_console_apply_single' pam_console_apply_devfsd.c: In function `pam_console_apply_single': pam_console_apply_devfsd.c:94: warning: assignment discards qualifiers from pointer target type pam_console_apply_devfsd.c:54: warning: unused variable `c' In file included from pam_console_apply_devfsd.c:113: config.tab.c: At top level: config.tab.c:777: warning: static declaration for `_pc_yyparse' follows non-static config.y: In function `_pc_yyparse': config.y:104: warning: char format, void arg (arg 4) config.tab.c:1203: warning: passing arg 1 of `_pc_yyerror' discards qualifiers from pointer target type config.tab.c:1302: warning: passing arg 1 of `_pc_yyerror' discards qualifiers from pointer target type config.lex.c: At top level: chmod.c:130: warning: `chmod_set_fstab' defined but not used config.y:299: warning: `set_permissions' defined but not used config.y:425: warning: `reset_permissions' defined but not used config.lex.c:1432: warning: `_pc_yy_delete_buffer' defined but not used config.lex.c:1549: warning: `_pc_yy_scan_string' defined but not used config.lex.c:1227: warning: `yyunput' defined but not used config.y:473: warning: `do_yyerror' defined but not used gcc -shared -L/var/tmp/portage/pam-0.77-r1/work/Linux-PAM-0.77/lib -o pam_console_apply_devfsd.so dynamic/pam_console_apply_devfsd.o -Wl,-Bstatic //usr/lib/libglib.a -L../pammodutil -lpammodutil -L../../libpam -lpam -Wl,-Bdynamic -lc gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dlinux -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -fPIC -I/var/tmp/portage/pam-0.77-r1/work/Linux-PAM-0.77/include -I./include -I/var/tmp/portage/pam-0.77-r1/work/Linux-PAM-0.77/libpam/include -I/var/tmp/portage/pam-0.77-r1/work/Linux-PAM-0.77 -I/var/tmp/portage/pam-0.77-r1/work/Linux-PAM-0.77/libpamc/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_GNU_SOURCE -DLOCKDIR=\"/var/run/console\" -I../pammodutil/include -o pam_console_applypam_console_apply.c -Wl,-Bstatic //usr/lib/libglib.a -L../pammodutil -lpammodutil -Wl,-Bdynamic ../../libpam/libpam.so -lc In file included from pam_console_apply.c:5: ../../_pam_aconf.h:28:1: warning: "_GNU_SOURCE" redefined <command line>:5:1: warning: this is the location of the previous definition In file included from pam_console_apply.c:7: /usr/include/glib-1.2/glib.h:1697: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1703: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1705: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1719: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1721: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1745: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:1747: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here /usr/include/glib-1.2/glib.h:2319: warning: declaration of `index' shadows a global declaration <built-in>:0: warning: shadowed declaration is here pam_console_apply.c: In function `main': pam_console_apply.c:107: warning: assignment discards qualifiers from pointer target type In file included from pam_console_apply.c:126: config.tab.c: At top level: config.tab.c:777: warning: static declaration for `_pc_yyparse' follows non-static config.y: In function `_pc_yyparse': config.y:104: warning: char format, void arg (arg 4) config.tab.c:1203: warning: passing arg 1 of `_pc_yyerror' discards qualifiers from pointer target type config.tab.c:1302: warning: passing arg 1 of `_pc_yyerror' discards qualifiers from pointer target type config.lex.c: At top level: config.y:327: warning: `set_permissions_single' defined but not used config.y:367: warning: `reset_permissions_single' defined but not used config.lex.c:1432: warning: `_pc_yy_delete_buffer' defined but not used config.lex.c:1549: warning: `_pc_yy_scan_string' defined but not used config.lex.c:1227: warning: `yyunput' defined but not used config.y:473: warning: `do_yyerror' defined but not used //usr/lib/libglib.a(gstrfuncs.o)(.text+0x785): In function `g_strdown': : undefined reference to `__ctype_tolower' //usr/lib/libglib.a(gstrfuncs.o)(.text+0x825): In function `g_strup': : undefined reference to `__ctype_toupper' //usr/lib/libglib.a(gstrfuncs.o)(.text+0x1296): In function `g_strchug': : undefined reference to `__ctype_b' //usr/lib/libglib.a(gstrfuncs.o)(.text+0x137a): In function `g_strchomp': : undefined reference to `__ctype_b' //usr/lib/libglib.a(gstring.o)(.text+0x606): In function `g_string_down': : undefined reference to `__ctype_tolower' //usr/lib/libglib.a(gstring.o)(.text+0x6a6): In function `g_string_up': : undefined reference to `__ctype_toupper' collect2: ld returned 1 exit status make[2]: *** [pam_console_apply] Error 1 make[2]: Leaving directory `/var/tmp/portage/pam-0.77-r1/work/Linux-PAM-0.77/modules/pam_console' make[1]: *** [all] Error 1 make[1]: Leaving directory `/var/tmp/portage/pam-0.77-r1/work/Linux-PAM-0.77/modules' make: *** [modules] Error 2 !!! ERROR: sys-libs/pam-0.77-r1 failed. !!! Function src_compile, Line 202, Exitcode 2 !!! PAM build failed $ emerge info Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r10 i686) ================================================================= System uname: 2.6.8-gentoo-r10 i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /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/ /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks notitles sandbox strict userpriv usersandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/comp/Linux/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow 3dnowex X aalib alsa arts avi berkdb bitmap-fonts cdparanoia cdr crypt cups dga divx4linux dvd dvdr encode f77 faad fam foomaticdb fortran freetype gcj gdbm gif gphoto2 gtk gtk2 guile imlib java jpeg kde libg++ libwww mad maildir mikmod mmx motif mpeg mplayer ncurses nls offensive oggvorbis opengl oss pam pcre pdflib perl pic png ppds python qt quicktime readline sasl scanner slang spell sse ssl svga tcc tcltk tcpd tetex tiff truetype vim-with-x x86 xml2 xmms xv xvmc zlib linguas_de"
I have the exact error, Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9+reiser4-xming i686) ================================================================= System uname: 2.6.9+reiser4-xming i686 Celeron (Mendocino) Gentoo Base System version 1.4.16 distcc 2.12.1 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mmmx -march=pentium2 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /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/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mmmx -march=pentium2 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox userpriv usersandbox" GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/distfiles http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="apache2 apm arts avi berkdb bitmap-fonts cdr cjk crypt cups encode foomaticdb fortran gdbm gif gpm imlib innodb jpeg libg++ libwww mad mikmod motif mpeg mysql ncurses nls nptl oggvorbis oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xv zlib"
Same error here, emerge "=pam-0.77" fails with the same error. 0.77 was installed successfully on my system on feb. 7th 2004, so we just need to check which packages changed on my system in the meanwhile *cough* Here's my emerge info: Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.27 i686) ================================================================= System uname: 2.4.27 i686 AMD Duron(tm) processor Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs candy ccache distlocks sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow X aalib alsa apm avi berkdb bitmap-fonts cdr crypt cups dvd emacs encode f77 fam flac foomaticdb fortran gdbm ggi gif gphoto2 gpm gtk gtk2 guile imagemagick imlib irda java jpeg kde libg++ libwww live mad mikmod mmx motif mozilla mpeg ncurses nls offensive oggvorbis opengl oss pam pdflib perl phyton png python qt quicktime qz readline ruby sdl slang snmp spell ssl tcltk tcpd tiff truetype wmf x86 xml xml2 xmms xv xvid zlib"
Seems like "devfsd" is the evil one, if I read the output right.
I'm still using devfsd (with vanilla-sources-2.4.27) on that box, this might be a step into the right direction. On my other computers (2.6, udev) the upgrade to pam-0.77-r1 worked without problems.
I know a system using udev with tarball and won't emerge on their system either.
On the forums someone did a remerge/emerge of glib and says it fixed their pam emerge problem. http://forums.gentoo.org/viewtopic.php?t=221188&highlight=ctypetolower They remerge/emerged glib-1.2.10-r5 . So that might be worth a shot. I didn't have the problem and checked what had installed. bash-2.05b$ etcat -v glib [ Results for search key : glib ] [ Candidate applications found : 7 ] Only printing found installed programs. * dev-libs/glib : [ I] 1.2.10-r5 (1) OVERLAY [ ] 2.4.1 (2) OVERLAY [M~ ] 2.4.2 (2) OVERLAY [ ] 2.4.4 (2) OVERLAY [ ] 2.4.5 (2) OVERLAY [ I] 2.4.6 (2) OVERLAY [M~ ] 2.4.7 (2) OVERLAY Going to check the other system.
emerge =glib-1.2.10-r5 fixed it for me
I rebuilt my glib (emerge =glib-1.2.10-r5) and afterwards the upgrade to pam-0.77-r1 worked fine. Thanks, Decibels!
Did the trick here as well. Many thanks!
Ya, worked on the other system also. The forums are a godsend again. On the other system I found they had /etc/make.profile symlink pointing to really old profile, fixed it for them couple weeks ago and pointed to correct profile. Not sure if that had anything to do with it, but is the only item have at the moment.