Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 97385

Summary: Gentoo 2005.0 installation: pam-login-3.14 compilation fails during emerge -e system
Product: Gentoo Linux Reporter: Diego Casadei <Diego.Casadei>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Diego Casadei 2005-06-29 06:12:37 UTC
After
# cd /usr/portage
# scripts/bootstrap.sh
# emerge -e system

I've got:
(...)
 * If you do not etc-update now and update /etc/ssl/misc/der_chop to the new
version, your
 * system IS VULNERABLE to a symlink attack as described in bug 68407
 * refer to http://bugs.gentoo.org/show_bug.cgi?id=68407 if you have any doubts

QUESTION: if you already know that this version is buggy, why don't
	  you install the new one at the first step?

ACTION:   # chmod -x /etc/ssl/misc/der_chop # I hope it's enough

(...)
>>> Unpacking pam_login-3.14.tar.bz2 to /var/tmp/portage/pam-login-3.14/work
 * Applying pam-login-3.11-gcc33.patch ...                                     
                                        [ ok ]
 * Applying pam-login-3.11-lastlog-fix.patch ...                               
                                        [ ok ]
 * Applying pam-login-3.14-query_user_context.diff ...                         
                                        [ ok ]
 * Using GNU config files from /usr/share/gnuconfig
 *   Updating config.sub                                                       
                                        [ ok ]
 *   Updating config.guess                                                     
                                        [ ok ]
>>> Source unpacked.
 * econf: updating pam_login-3.14/config.guess with
/usr/share/gnuconfig/config.guess
 * econf: updating pam_login-3.14/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib
(...)
login.c:69:31: security/pam_appl.h: No such file or directory
login.c:70:31: security/pam_misc.h: No such file or directory
login.c: In function `main':
login.c:518: error: `pam_handle_t' undeclared (first use in this function)
login.c:518: error: (Each undeclared identifier is reported only once
login.c:518: error: for each function it appears in.)
login.c:518: error: `pamh' undeclared (first use in this function)
login.c:519: error: variable `conv' has initializer but incomplete type
login.c:519: error: `misc_conv' undeclared (first use in this function)
login.c:519: warning: excess elements in struct initializer
login.c:519: warning: (near initialization for `conv')
login.c:519: warning: excess elements in struct initializer
login.c:519: warning: (near initialization for `conv')
login.c:519: error: storage size of `conv' isn't known
login.c:744: warning: implicit declaration of function `pam_start'
login.c:745: error: `PAM_SUCCESS' undeclared (first use in this function)
login.c:748: warning: implicit declaration of function `pam_strerror'
login.c:748: warning: format argument is not a pointer (arg 3)
login.c:750: warning: format argument is not a pointer (arg 3)
login.c:755: warning: implicit declaration of function `pam_set_item'
login.c:755: error: `PAM_RHOST' undeclared (first use in this function)
login.c:756: warning: format argument is not a pointer (arg 3)
login.c:756: warning: format argument is not a pointer (arg 3)
login.c:756: warning: implicit declaration of function `pam_end'
login.c:759: error: `PAM_TTY' undeclared (first use in this function)
login.c:760: warning: format argument is not a pointer (arg 3)
login.c:760: warning: format argument is not a pointer (arg 3)
login.c:762: error: `PAM_USER_PROMPT' undeclared (first use in this function)
login.c:763: warning: format argument is not a pointer (arg 3)
login.c:763: warning: format argument is not a pointer (arg 3)
login.c:782: warning: implicit declaration of function `pam_authenticate'
login.c:788: warning: implicit declaration of function `pam_get_item'
login.c:788: error: `PAM_USER' undeclared (first use in this function)
login.c:808: error: `PAM_MAXTRIES' undeclared (first use in this function)
login.c:811: warning: format argument is not a pointer (arg 5)
login.c:816: warning: format argument is not a pointer (arg 6)
login.c:831: error: `PAM_AUTH_ERR' undeclared (first use in this function)
login.c:832: error: `PAM_USER_UNKNOWN' undeclared (first use in this function)
login.c:833: error: `PAM_CRED_INSUFFICIENT' undeclared (first use in this function)
login.c:834: error: `PAM_AUTHINFO_UNAVAIL' undeclared (first use in this function)
login.c:842: warning: implicit declaration of function `pam_acct_mgmt'
login.c:844: error: `PAM_NEW_AUTHTOK_REQD' undeclared (first use in this function)
login.c:845: warning: implicit declaration of function `pam_chauthtok'
login.c:845: error: `PAM_CHANGE_EXPIRED_AUTHTOK' undeclared (first use in this
function)
login.c:847: warning: format argument is not a pointer (arg 3)
login.c:847: warning: format argument is not a pointer (arg 3)
login.c:854: warning: format argument is not a pointer (arg 3)
login.c:854: warning: format argument is not a pointer (arg 3)
login.c:861: error: `PAM_SYSTEM_ERR' undeclared (first use in this function)
login.c:917: warning: implicit declaration of function `pam_setcred'
login.c:917: error: `PAM_ESTABLISH_CRED' undeclared (first use in this function)
login.c:918: warning: format argument is not a pointer (arg 3)
login.c:918: warning: format argument is not a pointer (arg 3)
login.c:920: warning: implicit declaration of function `pam_open_session'
login.c:921: warning: format argument is not a pointer (arg 3)
login.c:921: warning: format argument is not a pointer (arg 3)
login.c:1221: warning: implicit declaration of function `pam_getenvlist'
login.c:1221: warning: assignment makes pointer from integer without a cast
login.c:1285: error: `PAM_DELETE_CRED' undeclared (first use in this function)
login.c:1285: warning: implicit declaration of function `pam_close_session'
login.c:519: warning: unused variable `conv'
make[2]: *** [login.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/pam-login-3.14/work/pam_login-3.14/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/pam-login-3.14/work/pam_login-3.14'
make: *** [all] Error 2

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

QUESTION: why /mnt/gentoo/var/log/emerge.log does not report the
	  compilation error?  How can go back to the topmost build
	  error, presumably thousands output lines before the last
	  one?  However, I guess that this the only error.

ACTION:	  I successfully tried to build pam-login with
	  # emerge pam-login

QUESTION: Should I set CONFIG_PROTECT="-*" in /etc/make.conf and
	  emerge the system without -e?


Reproducible: Always
Steps to Reproduce:
1. Start Gentoo 2005.0 installation with LiveCD
2. Follow instructions for Stage 1 _or_ Stage 2 installation
3. In both cases, emerge -e system stops with a compilation error in pam-login-3.14




Portage 2.0.51.19 (default-linux/x86/2005.0/2.4, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 10 2005, 18:18:11)]
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   [Not Present]
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT=""
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
ftp://gentoo.inode.at/source/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://mirror.switch.ch/mirror/gentoo/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acpi afs alsa apm arts avi bash-completion berkdb bitmap-fonts bzip2
crypt cups emacs emboss encode foomaticdb fortran gdbm gif gpm gtk2 hardened icc
icc-pgo ifc imagemagick imlib ipv6 jpeg kde kdeenablefinal lapack ldap libg++
libwww lm_sensors mad mikmod motif mp3 mpeg mpi ncurses nls oggvorbis opengl oss
pam pdflib perl png python qt quicktime readline sdl spell sse ssh ssl tcpd
tetex threads truetype truetype-fonts type1-fonts xml2 xmms xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-29 06:20:01 UTC

*** This bug has been marked as a duplicate of 96209 ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-29 06:28:35 UTC
etc-update messages are safe to ignore when installing - see
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6#doc_chap4

The rest of this bug is a dupe.