A bit long log since I'm not sure if the bison errors are relevant : make[2]: Entering directory `/var/tmp/portage/pam-0.75-r8/work/Linux-PAM-0.75/modules/pam_access' gcc -march=i686 -O2 -pipe -fPIC -Wall -Wwrite-strings -Wcast-qual -Wcast-align -Wstrict-prototypes - Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dlinux -I./include -I/var/tmp/portage/pam-0.75-r 8/work/Linux-PAM-0.75/libpam/include -I/var/tmp/portage/pam-0.75-r8/work/Linux-PAM-0.75 -I/var/tmp/portage/pa m-0.75-r8/work/Linux-PAM-0.75/libpamc/include -DDEFAULT_CONF_FILE=\"//etc/security/access.conf\" -DNIS -DPAM _DYNAMIC -c pam_access.c -o dynamic/pam_access.o gcc -shared -Xlinker -x -o pam_access.so dynamic/pam_access.o -lnsl -lc make[2]: Leaving directory `/var/tmp/portage/pam-0.75-r8/work/Linux-PAM-0.75/modules/pam_access' make[2]: Entering directory `/var/tmp/portage/pam-0.75-r8/work/Linux-PAM-0.75/modules/pam_chroot' gcc -march=i686 -O2 -pipe -fPIC -Wall -Wwrite-strings -Wcast-qual -Wcast-align -Wstrict-prototypes - Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dlinux -I./include -I/var/tmp/portage/pam-0.75-r 8/work/Linux-PAM-0.75/libpam/include -I/var/tmp/portage/pam-0.75-r8/work/Linux-PAM-0.75 -I/var/tmp/portage/pa m-0.75-r8/work/Linux-PAM-0.75/libpamc/include -DPAM_DYNAMIC -c pam_chroot.c -o dynamic/pam_chroot.o gcc -shared -Xlinker -x -o pam_chroot.so dynamic/pam_chroot.o -lc make[2]: Leaving directory `/var/tmp/portage/pam-0.75-r8/work/Linux-PAM-0.75/modules/pam_chroot' make[2]: Entering directory `/var/tmp/portage/pam-0.75-r8/work/Linux-PAM-0.75/modules/pam_console' bison -d -p _pc_yy config.y config.y:127: warning: previous rule lacks an ending `;' config.y contains 1 shift/reduce conflict. sh ./sed-static config.tab.c flex -Cr -oconfig.lex.c -P_pc_yy config.l sh ./sed-static config.lex.c gcc -march=i686 -O2 -pipe -fPIC -Wall -Wwrite-strings -Wcast-qual -Wcast-align -Wstrict-prototypes - Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dlinux -I./include -I/var/tmp/portage/pam-0.75-r 8/work/Linux-PAM-0.75/libpam/include -I/var/tmp/portage/pam-0.75-r8/work/Linux-PAM-0.75 -I/var/tmp/portage/pa m-0.75-r8/work/Linux-PAM-0.75/libpamc/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_GNU_SOURCE -DLOCKDIR=\"/var/run/console\" -DPAM_DYNAMIC -c pam_console.c -o dynamic/pam_console.o In file included from pam_console.c:26: ../../_pam_aconf.h:23: warning: `_GNU_SOURCE' redefined *Initialization*:1: warning: this is the location of the previous definition In file included from pam_console.c:505: /usr/share/bison/bison.simple:379: warning: static declaration for `_pc_yyparse' follows non-static config.y: In function `_pc_yyparse': config.y:103: warning: char format, void arg (arg 4) /usr/share/bison/bison.simple:799: warning: passing arg 1 of `_pc_yyerror' discards qualifiers from pointer t arget type /usr/share/bison/bison.simple:924: warning: passing arg 1 of `_pc_yyerror' discards qualifiers from pointer t arget type pam_console.c: At top level: config.y:331: warning: `set_permissions_single' defined but not used config.y:422: 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:484: warning: `do_yyerror' defined but not used gcc -shared -Xlinker -x -o pam_console.so dynamic/pam_console.o -L/usr/lib -lglib -lc gcc -march=i686 -O2 -pipe -fPIC -Wall -Wwrite-strings -Wcast-qual -Wcast-align -Wstrict-prototypes - Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dlinux -I./include -I/var/tmp/portage/pam-0.75-r 8/work/Linux-PAM-0.75/libpam/include -I/var/tmp/portage/pam-0.75-r8/work/Linux-PAM-0.75 -I/var/tmp/portage/pa m-0.75-r8/work/Linux-PAM-0.75/libpamc/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_GNU_SOURCE -DLOCKDIR=\"/var/run/console\" -DPAM_DYNAMIC -c pam_console_apply_devfsd.c -o dynamic/pam_console_apply_devf sd.o In file included from regerr.c:5, from pam_console_apply_devfsd.c:100: ../../_pam_aconf.h:23: warning: `_GNU_SOURCE' redefined *Initialization*:1: warning: this is the location of the previous definition 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:54: warning: unused variable `c' In file included from pam_console_apply_devfsd.c:104: /usr/share/bison/bison.simple: At top level: /usr/share/bison/bison.simple:379: warning: static declaration for `_pc_yyparse' follows non-static config.y: In function `_pc_yyparse': config.y:103: warning: char format, void arg (arg 4) /usr/share/bison/bison.simple:799: warning: passing arg 1 of `_pc_yyerror' discards qualifiers from pointer t arget type /usr/share/bison/bison.simple:924: warning: passing arg 1 of `_pc_yyerror' discards qualifiers from pointer t arget type pam_console_apply_devfsd.c: At top level: chmod.c:130: warning: `chmod_set_fstab' defined but not used config.y:298: warning: `set_permissions' defined but not used config.y:372: warning: `reset_permissions' defined but not used ../../libpam/include/security/_pam_macros.h:127: warning: `_pam_getpwuid_r' 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:484: warning: `do_yyerror' defined but not used gcc -shared -Xlinker -x -o pam_console_apply_devfsd.so dynamic/pam_console_apply_devfsd.o -Wl,-Bstatic -L/usr /lib -lglib -Wl,-Bdynamic -lc /usr/lib/libglib.a(gslist.o): In function `g_slist_validate_allocator': gslist.o(.text+0x32): undefined reference to `local symbols in discarded section .rodata.str1.32' /usr/lib/libglib.a(gslist.o): In function `g_slist_find_custom': gslist.o(.text+0x74c): undefined reference to `local symbols in discarded section .rodata.str1.32' /usr/lib/libglib.a(gslist.o): In function `g_slist_insert_sorted': gslist.o(.text+0x8fd): undefined reference to `local symbols in discarded section .rodata.str1.32' /usr/lib/libglib.a(gstring.o): In function `g_string_chunk_free': gstring.o(.text+0x11e): undefined reference to `local symbols in discarded section .rodata.str1.32' /usr/lib/libglib.a(gstring.o): In function `g_string_chunk_insert': gstring.o(.text+0x1dd): undefined reference to `local symbols in discarded section .rodata.str1.32' /usr/lib/libglib.a(gstring.o)(.text+0x28e): more undefined references to `local symbols in discarded section .rodata.str1.32' follow collect2: ld returned 1 exit status make[2]: *** [pam_console_apply_devfsd.so] Error 1 make[2]: Leaving directory `/var/tmp/portage/pam-0.75-r8/work/Linux-PAM-0.75/modules/pam_console' make[1]: *** [all] Error 1 make[1]: Leaving directory `/var/tmp/portage/pam-0.75-r8/work/Linux-PAM-0.75/modules' make: *** [modules] Error 2 its an athlong xp , gcc 2.95.3 and fairly standard.. -O2 and this was with MAKEOPTS="-j1"
ok, a remerge of glib-1.2 later and it works.