Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116430 - pam-login fails to compile due to -Werror on GCC3.4
Summary: pam-login fails to compile due to -Werror on GCC3.4
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
Depends on:
Reported: 2005-12-22 15:48 UTC by Christopher Head
Modified: 2008-04-19 07:45 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Head 2005-12-22 15:48:11 UTC
sys-apps/pam-login-3.17 fails to compile. Here is output of an emerge:

>>> emerge (1 of 16) sys-apps/pam-login-3.17 to /
>>> md5 files   ;-) pam-login-3.14.ebuild
>>> md5 files   ;-) pam-login-
>>> md5 files   ;-) pam-login-3.17.ebuild
>>> md5 files   ;-) pam-login-4.0.12.ebuild
>>> md5 files   ;-) files/digest-pam-login-4.0.12
>>> md5 files   ;-) files/pam-login-
>>> md5 files   ;-) files/pam-login-3.17-query_user_context.patch
>>> md5 files   ;-) files/pam-login-4.0.5-skey.patch
>>> md5 files   ;-) files/digest-pam-login-3.14
>>> md5 files   ;-) files/digest-pam-login-3.17
>>> md5 files   ;-) files/pam-login-4.0.12-dots-in-usernames.patch
>>> md5 files   ;-) files/login.pamd-4.0
>>> md5 files   ;-) files/pam-login-3.17-nonls.patch
>>> md5 files   ;-) files/pam-login-3.14-query_user_context.diff
>>> md5 files   ;-) files/digest-pam-login-
>>> md5 files   ;-) files/login.defs-4.0
>>> md5 files   ;-) files/pam-login-
>>> md5 files   ;-) files/pam-login-3.11-lastlog-fix.patch
>>> md5 files   ;-) files/pam-login-4.0.10-fix-configure.patch
>>> md5 files   ;-) files/pam-login-
>>> md5 files   ;-) files/pam-login-3.11-gcc33.patch
>>> md5 files   ;-) files/pam-login-4.0.12-long-groupnames.patch
>>> md5 files   ;-) files/pam_login-Werror-off-ppc64.patch
>>> md5 files   ;-) files/login.defs
>>> md5 files   ;-) files/login.pamd
>>> md5 src_uri ;-) pam_login-3.17.tar.bz2
>>> Unpacking source...
>>> Unpacking pam_login-3.17.tar.bz2 to /var/tmp/portage/pam-login-3.17/work
 * Applying pam-login-3.11-gcc33.patch ...                                                                              [ ok ]
 * Applying pam-login-3.11-lastlog-fix.patch ...                                                                        [ ok ]
 * Applying pam-login-3.17-nonls.patch ...                                                                              [ ok ]
 * Using GNU config files from /usr/share/libtool
 *   Updating config.sub                                                                                                [ ok ]
 *   Updating config.guess                                                                                              [ ok ]
>>> Source unpacked.
 * econf: updating pam_login-3.17/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating pam_login-3.17/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i586-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i586-pc-linux-gnu --disable-nls
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i586-pc-linux-gnu-gcc... i586-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i586-pc-linux-gnu-gcc accepts -g... yes
checking for i586-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of i586-pc-linux-gnu-gcc... gcc3
checking for strerror in -lcposix... no
checking for a BSD-compatible install... /bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for pam_start in -lpam... yes
checking for main in -lpam_misc... yes
checking how to run the C preprocessor... i586-pc-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for off_t... yes
checking for pid_t... yes
checking for struct stat.st_rdev... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working alloca.h... yes
checking for alloca... yes
checking whether i586-pc-linux-gnu-gcc needs -traditional... no
checking whether sys/types.h defines makedev... yes
checking whether setpgrp takes no argument... yes
checking return type of signal handlers... void
checking for strftime... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for putenv... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strspn... yes
checking for strtol... yes
checking whether NLS is requested... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking for ld used by GCC... /usr/i586-pc-linux-gnu/bin/ld
checking if the linker (/usr/i586-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... no
checking whether to use NLS... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating etc/Makefile
config.status: creating src/Makefile
config.status: creating po/
config.status: creating m4/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/pam-login-3.17/work/pam_login-3.17'
Making all in m4
make[2]: Entering directory `/var/tmp/portage/pam-login-3.17/work/pam_login-3.17/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/pam-login-3.17/work/pam_login-3.17/m4'
Making all in etc
make[2]: Entering directory `/var/tmp/portage/pam-login-3.17/work/pam_login-3.17/etc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/pam-login-3.17/work/pam_login-3.17/etc'
Making all in src
make[2]: Entering directory `/var/tmp/portage/pam-login-3.17/work/pam_login-3.17/src'
if i586-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I. -I. -I.. -I. -DLOCALEDIR=\"/usr/share/locale\"   -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Werror -O3 -march=i586 -fomit-frame-pointer -pipe -momit-leaf-frame-pointer -MT faillog.o -MD -MP -MF ".deps/faillog.Tpo" \
  -c -o faillog.o `test -f 'faillog.c' || echo './'`faillog.c; \
then mv -f ".deps/faillog.Tpo" ".deps/faillog.Po"; \
else rm -f ".deps/faillog.Tpo"; exit 1; \
faillog.c: In function `usage':
faillog.c:87: warning: implicit declaration of function `gettext'
faillog.c:87: warning: nested extern declaration of `gettext'
faillog.c: In function `main':
faillog.c:142: warning: nested extern declaration of `gettext'
faillog.c: In function `print_one':
faillog.c:220: warning: nested extern declaration of `gettext'
faillog.c:233: warning: nested extern declaration of `gettext'
make[2]: *** [faillog.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/pam-login-3.17/work/pam_login-3.17/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/pam-login-3.17/work/pam_login-3.17'
make: *** [all] Error 2

!!! ERROR: sys-apps/pam-login-3.17 failed.
!!! Function src_compile, Line 59, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

Output of emerge info:

Portage (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r2 i586)
System uname: 2.6.14-gentoo-r2 i586 Pentium MMX
Gentoo Base System version 1.6.13
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
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.20
virtual/os-headers:  2.6.11-r2
CFLAGS="-O3 -march=i586 -fomit-frame-pointer -pipe -momit-leaf-frame-pointer"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i586 -fomit-frame-pointer -pipe -momit-leaf-frame-pointer"
FEATURES="autoconfig distlocks sandbox sfperms strict"
USE="x86 X apm bitmap-fonts bzip2 cdb expat fam gif glibc-omitfp gtk gtk2 hpn idn imlib jpeg kde kdexdeltas lcms libg++ libwww mmx mng ncurses nptl nptlonly pam pcre png readline ssl symlink truetype truetype-fonts type1-fonts ucs2 udev unicode userlocales xml2 zlib userland_GNU kernel_linux elibc_glibc"

Note that CHOST was set during a stage-1 install, BEFORE stage-1 was deprecated.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-22 15:54:40 UTC
This has zero in common with security, please read the instructions before filing a bug...
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-22 16:05:38 UTC
Please try to sync again, it should be fixed already.
Comment 3 Christopher Head 2006-01-12 23:39:50 UTC
Fixed, thank you.