Not a duplicate of #84836 (applied the patch, synced and retried with the new version), and not solved by #85069 (I don't actually have a /usr/lib/libdl.so.2). This one doesn't die on pam_unix (as in 84836) or pam_access (85069), it chokes on pam_cracklib. Output of `ldd pam_cracklib.so` in /var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_cracklib looks like this: linux-gate.so.1 => (0xffffe000) libcrack.so.2 => /usr/lib/libcrack.so.2 (0xb7fd2000) libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7fa3000) libc.so.6 => /lib/libc.so.6 (0xb7e75000) libpam.so.0 => /lib/libpam.so.0 (0xb7e6d000) /lib/ld-linux.so.2 (0x80000000) libdl.so.2 => /lib/libdl.so.2 (0xb7e69000) And indeed, I seem to have two of those: # ls -l `locate libcrack.so.2` lrwxrwxrwx 1 root root 17 Mar 17 21:20 /lib/libcrack.so.2 -> libcrack.so.2.8.0 -rwxr-xr-x 1 root root 27208 Mar 17 21:19 /lib/libcrack.so.2.8.0 lrwxrwxrwx 1 root root 15 Nov 11 2003 /usr/lib/libcrack.so.2 -> libcrack.so.2.7 -rwxr-xr-x 1 root root 32321 Nov 11 2003 /usr/lib/libcrack.so.2.7 Removing the one in /usr does the trick, but I suppose it would be helpful to know where this came from. By the way, this happens on only one of my three ~x86 hosts, I suppose something's gone wrong at some point with this one. Any additional info you'd like to see?
$ grep SLOT sys-libs/cracklib/*.ebuild sys-libs/cracklib/cracklib-2.7-r10.ebuild:SLOT="0" sys-libs/cracklib/cracklib-2.8.1.ebuild:SLOT="0" You have AUTO_CLEAN on ?
That grep looks identical here. And yes, "AUTOCLEAN=yes" is in /etc/make.conf. Always has been.
# equery b /usr/lib/libcrack.so.2.7 Also, you only have 2.8 installed, or 2.7 still as well?
As there's only one slot, I don't think I could have them both installed. But I don't know how to check for that besides `etcat -v` which tells me I only have 2.8.1, and `qpkg -d` has lots of things, but not cracklib. `equery b /usr/lib/libcrack.so.2.7` returns empty, hope that's not just because I had to delete the libcrack.so.2 symlink to make the pam emerge work?
Nah - guess its leftover for some reason. Just remove it.
Looks like there's a bug in the upgrade path somewhere as I've the same problem. There are zombie libraries (libcrack.so.2.7) around that seemingly do not belong to any package: > file /usr/lib/libcrack.so.2.7 /usr/lib/libcrack.so.2.7: ELF 32-bit LSB shared object, Intel 80386, version 1(SYSV), not stripped > qpkg -f /usr/lib/libcrack.so.2.7 > also: > qpkg --dups | grep libcrack >
I am seeing the same issue whilst trying to upgrade to kde-3.4.1. Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20041006-r0, 2.6.11.10 i686) ================================================================= System uname: 2.6.11.10 i686 Pentium III (Katmai) Gentoo Base System version 1.4.3.8p1 Python: dev-lang/python-2.2.3-r1,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 9 2005, 09:29:29)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.2.3-r1, 2.3.4-r1 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.16 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.4.19 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -mtune=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -mtune=pentium3 -O2 -pipe" DISTDIR="/var/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks notitles sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://gentoo.ccccom.com" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 X apache2 apm avi berkdb bitmap-fonts cdr chroot crypt cscope cups curl dvdr eds emboss encode esd fam flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib java jpeg kde kerberos ldap libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang snmp spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
I had the exactg same problem, and doing what is described in the original bug report dolved it for me. I'm running on x86 (no ~x86 except for some package.keywords), so I attach emerge info and /etc/portage/package.keywords in the hope that this might be useful. emerge info ----------- Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-ck8-r1 i686) ================================================================= System uname: 2.6.11-ck8-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.5 [2.3.5 (#1, Apr 30 2005, 16:36:44)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r5, 2.3.5 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: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -Os -pipe -mfpmath=sse -msse2 -mmmx" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/lib/mozilla/defaults/pref /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/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -Os -pipe -mfpmath=sse -msse2 -mmmx" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://mir.zyrianes.net/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/" LANG="de_DE@euro" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage.local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib acpi alsa apm arts artswrappersuid avi berkdb bitmap-fonts bluetooth bonobo cdparanoia cdr crypt cups curl dga divx4linux dvd emboss encode esd fam fbcon flac foomaticdb fortran gd gdbm gif gnokii gphoto2 gpm gtk gtk2 gtkhtml ieee1394 imagemagick imlib ipv6 irda jabber java jpeg jpeg2k junit kde kdeenablefinal kqemu ldap libg++ libwww live lm_sensors mad maildir mikmod mmx motif mozilla mp3 mpeg mysql ncurses nptl nptlonly ogg oggvorbis opengl oss pam pcmcia pda pdflib perforce perl png pnp povray python qt qtmt quicktime rdesktop readline real rtc samba sdl slang sms speex spell sse sse2 ssl subversion svga tcltk tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts usb v4l v4l2 vim-with-x vorbis wifi win32codecs xface xine xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS /etc/portage/package.keywords: ------------------------------ sys-kernel/ck-sources ~x86 net-wireless/kdebluetooth ~x86 media-tv/kdetv ~x86 sys-fs/udev ~x86 net-misc/rsync ~x86 net-wireless/bluez-libs ~x86 app-text/acroread ~x86 app-pda/pilot-link ~x86 dev-libs/libgcrypt ~x86 net-dns/libidn ~x86 dev-util/kdevelop ~x86 dev-util/eclipse-ve-bin ~x86 dev-util/eclipse-gef-bin ~x86 dev-util/eclipse-emf-bin ~x86 kde-base/kdeutils ~x86 kde-base/kdebase-pam ~x86 kde-base/kde ~x86 kde-base/kdeadmin ~x86 kde-base/kdegraphics ~x86 kde-base/kdetoys ~x86 kde-base/kdegames ~x86 kde-base/kdemultimedia ~x86 kde-base/kdeartwork ~x86 kde-base/kde-i18n ~x86 kde-base/kdeedu ~x86 kde-base/kdewebdev ~x86 kde-base/kdeaddons ~x86 kde-base/kdepim ~x86 kde-base/kdenetwork ~x86 kde-base/kde-i18n ~x86 kde-base/kde-env ~x86 kde-base/kdelibs ~x86 kde-base/kdebase ~x86 kde-base/kdebluetooth ~x86 kde-base/arts ~x86 sys-libs/db ~x86 app-emulation/qemu ~x86 app-admin/eclectic ~x86 sys-libs/pam ~x86 app-shells/bash ~x86 media-plugins/xine-vcdx ~x86
Happening for me as well. /bin/install -c -m 755 pam_xauth.so /var/tmp/portage/pam-0.78-r2/image//lib/security test -d /var/tmp/portage/pam-0.78-r2/image//usr/share/man/man8 || mkdir -p /var/tmp/portage/pam-0.7 2/image//usr/share/man/man8 /bin/install -c -m 644 pam_xauth.8 /var/tmp/portage/pam-0.78-r2/image//usr/share/man/man8/ make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_xauth' make[1]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules' * Checking if all modules were built... * ERROR: pam_access have dependencies in /usr. !!! ERROR: sys-libs/pam-0.78-r2 failed. [13:24:37 alexander@server:~] $ emerge info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11-ck8-r1.ASN.003.reiser4.module i686) ================================================================= System uname: 2.6.11-ck8-r1.ASN.003.reiser4.module i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.6.12 ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.9 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.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-protect distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distfiles.gentoo.org/" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X acl alsa apache2 apm async avi bash-completion bluetooth bzlib cairo calendar caps cdda cddb cdparanoia cdr cdrom codecs crypt cscope css cups dga divx4linux dvdread eds encode esd ethereal exif faad fam fbcon fbdev ffmpeg fftw firefox flash foomaticdb ftp fwdzone gd gdbm gif gimp gimpprint gmail gnokii gnome gphoto2 gpm gs gstreamer gtk gtk2 guile hal iconv idn imagemagick imap imlib java javascript jpeg kde kdeenablefinal kdexdeltas libedit libwww logitech-mouse logrotate lufsusermount lzo lzw lzw-tiff mad maildir matroska matrox mbox mime mmap mmx mng mozdevelop mozilla moznocompose moznoirc mozp3p mozsvg mp3 mpeg mplayer ncurses network nls no-old-linux no_wxgtk1 noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro nopop3d noregexp norhino noxalan noxerces offensive ofx ogg oggvorbis opengl oss pam parse-clocks pcntl pcre pda pdflib perl pic pie png posix ppds python qt quicktime quotes rdesktop readline real recode samba sasl shared slang sockets speex spell sse ssl svg symlink sysvipc tcltk tcpd theora tidy tiff truetype truetype-fonts type1-fonts unicode usb usepackagedmakefiles vcd videos vim vim-pager vim-with-x vorbis wmf wsconvert x11vnc xchattext xfs xine xml2 xmms xv xvid zlib video_cards_matrox linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, PORTDIR_OVERLAY
Isn't bug #92761 a dupe of this bug?
Worked for me after updating sys-libs/cracklib from 2.7-r11 to 2.8.3-r1 (which cleanly removed the 2.7 version). Is this a version dependency issue?
*** Bug 92761 has been marked as a duplicate of this bug. ***
Updated pam cracklib deps.
Still happening. Even after removing and re-emerging cracklib (after a sync too).
Did you: rm -f /usr/lib/libcrack.so.* ?
Yes I did.
Can you provide more info on what exactly its complaining about (ldd /var/tmp/portage/pam-0.78-r2/image/lib/security/blah.so) .. ?
OK...: ldd /var/tmp/portage/pam-0.78-r2/image/lib/security/pam_access.so linux-gate.so.1 => (0xffffe000) libnsl.so.1 => /lib/libnsl.so.1 (0xb7fc6000) libc.so.6 => /usr/lib/libc.so.6 (0xb7ead000) libpam.so.0 => /lib/libpam.so.0 (0xb7ea5000) /lib/ld-linux.so.2 (0x80000000) libdl.so.2 => /usr/lib/tls/i686/libdl.so.2 (0xb7ea1000) I wonder if that last one is the problem?
Yup .. where did you get that from? Even if its a tls version, it should still be in /lib/ ... emerge info please.
emerge info: Portage 2.0.51.21-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r3 i686) ================================================================= System uname: 2.6.11-gentoo-r3 i686 AMD Athlon(TM) XP 1600+ Gentoo Base System version 1.6.10 ccache version 2.4 [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.3 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl divx4linux eds emboss encode esd fam flac foomaticdb fortran freetts gdbm gif gimpprint gphoto2 gpm gtk gtk2 imagemagick imlib ipv6 jack java joystick jpeg junit kde libg++ libwww mad mikmod mmx motif mp3 mpeg nas ncurses nls nptl nptlonly nvidia ogg oggvorbis ooo-kde opengl opie oss pda pdflib perl pic png python qt quicktime readline real samba scanner sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts usb v4l v4l2 vorbis x86 xine xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
I also had to add /lib to /etc/ld.so.conf and ldconfig because pam_access.so was using /usr/lib/libc.so.6 instead of /lib/libc.so.6.
Still having troubles building pam-0.78-r2. Same error, same system.
Same. But it's "FIXED", shrug...
It will help if you post your failure (if even related).
*** Building pam-unix module of the framework... mkdir -p /var/tmp/portage/pam-0.78-r2/image//lib/security install -m 755 pam_unix.so /var/tmp/portage/pam-0.78-r2/image//lib/security for x in pam_unix_auth pam_unix_acct pam_unix_passwd pam_unix_session;\ do ln -sf pam_unix.so /var/tmp/portage/pam-0.78-r2/image//lib/security/$x.so ; done mkdir -p /var/tmp/portage/pam-0.78-r2/image//usr/sbin install -m 4555 unix_chkpwd /var/tmp/portage/pam-0.78-r2/image//usr/sbin make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_unix' make[2]: Entering directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_userdb' mkdir -p ./dynamic mkdir -p /var/tmp/portage/pam-0.78-r2/image//lib/security /bin/install -c -m 755 pam_userdb.so /var/tmp/portage/pam-0.78-r2/image//lib/security make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_userdb' make[2]: Entering directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_warn' mkdir -p ./dynamic mkdir -p /var/tmp/portage/pam-0.78-r2/image//lib/security /bin/install -c -m 755 pam_warn.so /var/tmp/portage/pam-0.78-r2/image//lib/security make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_warn' make[2]: Entering directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_wheel' mkdir -p ./dynamic mkdir -p /var/tmp/portage/pam-0.78-r2/image//lib/security /bin/install -c -m 755 pam_wheel.so /var/tmp/portage/pam-0.78-r2/image//lib/security make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_wheel' make[2]: Entering directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_xauth' mkdir -p ./dynamic mkdir -p /var/tmp/portage/pam-0.78-r2/image//lib/security /bin/install -c -m 755 pam_xauth.so /var/tmp/portage/pam-0.78-r2/image//lib/security test -d /var/tmp/portage/pam-0.78-r2/image//usr/share/man/man8 || mkdir -p /var/tmp/portage/pam-0.78-r2/image//usr/share/man/man8 /bin/install -c -m 644 pam_xauth.8 /var/tmp/portage/pam-0.78-r2/image//usr/share/man/man8/ make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_xauth' make[1]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules' * Checking if all modules were built... * ERROR: pam_access have dependencies in /usr. !!! ERROR: sys-libs/pam-0.78-r2 failed. !!! Function src_install, Line 307, Exitcode 0 !!! pam_access have dependencies in /usr. !!! If you need support, post the topmost build error, NOT this status message.
Please provide the output of: # ldd /var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_access/pam_access.so
ldd /var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_access/pam_access.so linux-gate.so.1 => (0xffffe000) libnsl.so.1 => /lib/libnsl.so.1 (0xb7fc6000) libc.so.6 => /usr/lib/libc.so.6 (0xb7ead000) libpam.so.0 => /lib/libpam.so.0 (0xb7ea5000) /lib/ld-linux.so.2 (0x80000000) libdl.so.2 => /usr/lib/tls/i686/libdl.so.2 (0xb7ea1000)
I'm getting the exact same error except I'm not seeing the /tls directory like others. This is my result: ldd /var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_access/pam_access.so linux-gate.so.1 => (0xffffe000) libnsl.so.1 => /usr/lib/libnsl.so.1 (0xb7fd3000) libc.so.6 => /lib/libc.so.6 (0xb7ebb000) libpam.so.0 => /lib/libpam.so.0 (0xb7eb3000) /lib/ld-linux.so.2 (0x80000000) libdl.so.2 => /usr/lib/libdl.so.2 (0xb7eaf000)
Ok, stupid question .. where does the /usr/lib/libdl.so.6 and /usr/lib/libnsl.so.1 come from ? And Russel ... /usr/lib/libc.so.6? I am pretty sure we never had any of those in /usr/lib ... Can you guys merge epm and do: # epm -qf <file> for each of those ?
epm -qf /usr/lib/libc.so.6 file /usr/lib/libc.so.6 is not owned by any package epm -qf /lib/libnsl.so.1 glibc-2.3.5 epm -qf /lib/libpam.so.0 pam-0.77 epm -qf /lib/ld-linux.so.2 glibc-2.3.5 epm -qf /usr/lib/tls/i686/libdl.so.2 file /usr/lib/tls/i686/libdl.so.2 is not owned by any package If anything, I'm learning about some cool new tools. So libc.so.6 (this reminds me of redhat...is this an rpm dep?) and libdl.so2 are not owned by any packages...would these stop a pam build?
I'm not sure where they come from (ie, was hoping you could tell me) ;) Basically you want all the lib*.so.*'s of glibc in /lib, and the .a's in /usr/lib. NOTE: You must however _NOT_ delete /usr/lib/libc.so, /usr/lib/libdl.so, etc!!!! They are needed, else everything links to the static version of the libraries. Ask if you are not sure which ones to remove, or if you already removed some, how to get them back.
Based on what you've said here, at least in my situation, all the files seem to be in the appropriate location(s). I'm really not sure what those files are (or where they came from) that are not owned by any package, but even after moving them away, pam will still not build. If you see something I'm not, please help out! ;)
Well...I got pam emerged. It seems I did not completely move the unsed files mentioned above. Martin, thanks so much for your help.
so... I tried to remove that cracklib files in /usr , tried to deinstall and to reinstall it, i just don't get pam emerged... same error always. don't know what to do know, why is the bug marked as resolved when it still exists??
I'm very sorry, it works now. Seems that I forgot a file, too..
*** Bug 100658 has been marked as a duplicate of this bug. ***
oh, sorry when I searched for 'pam-0.78-r2' it showed 'zarro bugs found'.
Ok, Ill reopen it for now. If you still have this issue, please do: # ldd /var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/<module_with_issues>/<module_with_issues>.so and post that here as first thing _before_ complaining. Please note that this is most likely _NOT_ a pam issue, but: 1) Most probably due to the use of prelink, and then 'emerge -C prelink'. I think we should really start to think about adding a bug about removing prelink to the guide if not there. 2) Some other reason that keeps old libraries around.
Hi, ok, I solved it for me last night: /usr/lib/libdl.so.2 was a broken symlink. Instead to /lib/libdl.so.2 it pointed to ../../libdl.so.2 After removing it and linking to /lib/libdl.so.2 pam emerged fine. BUT and this is a big but, I never touched libdl* before, so something broke the symlink.
I'm having the same problem also (on multiple machines). Here's the last part of my 'emerge pam': make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_warn' make[2]: Entering directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_wheel' mkdir -p ./dynamic mkdir -p /var/tmp/portage/pam-0.78-r2/image//lib/security /bin/install -c -m 755 pam_wheel.so /var/tmp/portage/pam-0.78-r2/image//lib/security make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_wheel' make[2]: Entering directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_xauth' mkdir -p ./dynamic mkdir -p /var/tmp/portage/pam-0.78-r2/image//lib/security /bin/install -c -m 755 pam_xauth.so /var/tmp/portage/pam-0.78-r2/image//lib/security test -d /var/tmp/portage/pam-0.78-r2/image//usr/share/man/man8 || mkdir -p /var/tmp/portage/pam-0.78-r2/image//usr/share/man/man8 /bin/install -c -m 644 pam_xauth.8 /var/tmp/portage/pam-0.78-r2/image//usr/share/man/man8/ make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_xauth' make[1]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules' * Checking if all modules were built... * ERROR: pam_access have dependencies in /usr. !!! ERROR: sys-libs/pam-0.78-r2 failed. !!! Function src_install, Line 306, Exitcode 0 !!! pam_access have dependencies in /usr. !!! If you need support, post the topmost build error, NOT this status message. Here's the ldd output: ldd /var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_xauth/pam_xauth.so libc.so.6 => /lib/libc.so.6 (0x40023000) libpam.so.0 => /lib/libpam.so.0 (0x40156000) /lib/ld-linux.so.2 (0x80000000) libdl.so.2 => /lib/libdl.so.2 (0x4015e000) All 4 of these libraries exist. What am I missing? Thanks, Lance
I'm having the same problem when trying to do an emerge world: *** Building pam-unix module of the framework... mkdir -p /var/tmp/portage/pam-0.78-r2/image//lib/security install -m 755 pam_unix.so /var/tmp/portage/pam-0.78-r2/image//lib/security for x in pam_unix_auth pam_unix_acct pam_unix_passwd pam_unix_session;\ do ln -sf pam_unix.so /var/tmp/portage/pam-0.78-r2/image//lib/security/$x.so ; done mkdir -p /var/tmp/portage/pam-0.78-r2/image//usr/sbin install -m 4555 unix_chkpwd /var/tmp/portage/pam-0.78-r2/image//usr/sbin make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_unix' make[2]: Entering directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_warn' mkdir -p ./dynamic mkdir -p /var/tmp/portage/pam-0.78-r2/image//lib/security /bin/install -c -m 755 pam_warn.so /var/tmp/portage/pam-0.78-r2/image//lib/security make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_warn' make[2]: Entering directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_wheel' mkdir -p ./dynamic mkdir -p /var/tmp/portage/pam-0.78-r2/image//lib/security /bin/install -c -m 755 pam_wheel.so /var/tmp/portage/pam-0.78-r2/image//lib/security make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_wheel' make[2]: Entering directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_xauth' mkdir -p ./dynamic mkdir -p /var/tmp/portage/pam-0.78-r2/image//lib/security /bin/install -c -m 755 pam_xauth.so /var/tmp/portage/pam-0.78-r2/image//lib/security test -d /var/tmp/portage/pam-0.78-r2/image//usr/share/man/man8 || mkdir -p /var/tmp/portage/pam-0.78-r2/image//usr/share/man/man8 /bin/install -c -m 644 pam_xauth.8 /var/tmp/portage/pam-0.78-r2/image//usr/share/man/man8/ make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_xauth' make[1]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules' * Checking if all modules were built... * ERROR: pam_access have dependencies in /usr. !!! ERROR: sys-libs/pam-0.78-r2 failed. !!! Function src_install, Line 306, Exitcode 0 !!! pam_access have dependencies in /usr. !!! If you need support, post the topmost build error, NOT this status message. And emerge --info: Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.11-gentoo-r8 i686) ================================================================= System uname: 2.6.11-gentoo-r8 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.5 [2.3.5 (#1,May 11 2005, 23:18:36)] dev-lang/python: 2.2.3-r5, 2.3.5 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.9.6-r1, 1.5, 1.4_p6, 1.6.3 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.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/X11/xkb /usr/lib/mozilla/defaults/pref /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" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict userpriv" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.netnitco.net" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi acpi4linux alsa arts bash-completion cdr chroot crypt curl dga gif gpgme gtk2 imap java javascript jpeg kde libwww mozilla mozsvg mozxmlterm mp3 ncurses nogcj nptl ofx opengl pam perl png pnp postgres pwdb qt radeon readline sasl sse ssl svga tcpd threads truetype truetype-fonts type1-fonts usb vim-with-x xemacs xgetdefault xml xml2 xmms zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
and here is the output of ldd /var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_access/pam_access.so linux-gate.so.1 => (0xffffe000) libnsl.so.1 => /usr/lib/libnsl.so.1 (0xb7fc5000) libc.so.6 => /lib/tls/libc.so.6 (0xb7eb2000) libpam.so.0 => /lib/libpam.so.0 (0xb7eaa000) /lib/ld-linux.so.2 (0x80000000) libdl.so.2 => /usr/lib/libdl.so.2 (0xb7ea6000)
I've got that pam-does-not-emerge Problem. Here is the output of ldd: ldd /var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_access/pam_access.so linux-gate.so.1 => (0xffffe000) libnsl.so.1 => /lib/libnsl.so.1 (0xb7fbc000) libc.so.6 => /lib/tls/libc.so.6 (0xb7ea4000) libpam.so.0 => /lib/libpam.so.0 (0xb7e9c000) /lib/ld-linux.so.2 (0x80000000) libdl.so.2 => /usr/lib/libdl.so.2 (0xb7e98000)
Ok, the solution was quite easy for me. Examined the files mentioned by ldd with epm -qf. Found out that /usr/lib/libdl.so.2 wasn't owned by glibc-2.3.5, found /lib/libdl.so.2 to be the one pam SHOULD link to, removed /usr/lib/libdl.so.2, added /lib to /etc/ld.so.conf, emerge -d pam ... >>> sys-libs/pam-0.78-r2 merged. >>> Recording sys-libs/pam in "world" favorites file...
It looks to me like this bug is not a bug, but reveals other files which have somehow been left behind by bad unmerges or similar in the past.
I'm trying to figure out exactly what to do... If this is a problem with prelink (which I have done.. then prelink -amfR should fix it??! ) escargot ~ # ldd /mnt/sata2/portage_tempdir/portage/pam-0.78-r3/work/Linux-PAM-0.78/modules/pam_access/p am_access.so linux-gate.so.1 => (0xffffe000) libnsl.so.1 => /lib/libnsl.so.1 (0xb7eb5000) libc.so.6 => /lib/tls/libc.so.6 (0xb7d9e000) libpam.so.0 => /lib/libpam.so.0 (0xb7d96000) /lib/ld-linux.so.2 (0x80000000) libdl.so.2 => /lib/libdl.so.2 (0xb7d92000)
139) /usr/portage # equery belongs /lib/libdl.so.2 [ Searching for file(s) /lib/libdl.so.2 in *... ] sys-libs/glibc-2.4-r1 (/lib/libdl.so.2 -> libdl-2.4.so) This just recropped up for me.
(In reply to comment #47) > 139) /usr/portage # equery belongs /lib/libdl.so.2 > [ Searching for file(s) /lib/libdl.so.2 in *... ] > sys-libs/glibc-2.4-r1 (/lib/libdl.so.2 -> libdl-2.4.so) > > This just recropped up for me. > Just hit this too. I DID get around it though. First, in /usr/lib I had a link to ../../libdl.so.2 that I had to remove (you need libdl.so.2, just not that exact link name in /usr/lib). Second, and I'm not sure if this was the same issue, but I had a libcwait.so file that is for installing Oracle. I had to temporarily move this library to /tmp, and then was able to get pam to install fine.
In all cases this seems to be caused by local problems, 0.78-r{3,5} work just fine in a clean system. Anyway this will be worked around someway in 0.99 to avoid this kind of problem, I hope.
I have this problem after upgrading gcc to 4.1.1 and glibc to 2.4. This was a clean install the day before these were made stable. I have switched to the 2006.1/desktop profile and followed the gcc upgrade guide. This is the only package that will not compile. Everyyhing else is running fine. isisdvp1 etc # equery b /usr/lib/libdl.so [ Searching for file(s) /usr/lib/libdl.so in *... ] sys-libs/glibc-2.4-r3 (/usr/lib/libdl.so -> ../../lib/libdl.so.2) It looks like glibc is putting this link in /usr and pam does not like it.