Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't emerge pam [finally solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
swimgeek
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2003
Posts: 124
Location: Minneapolis, MN, USA

PostPosted: Wed Oct 26, 2005 4:23 am    Post subject: Can't emerge pam [finally solved] Reply with quote

Hi all,
I've been having problems emerging pam for a few days. I searched in the forums and on the bugzilla but couldn't find somethiing similar to this:

Code:

i686-pc-linux-gnu-gcc -Wall -Wwrite-strings     -Wpointer-arith -Wcast-qual -Wcast-align        -Wstrict-prototypes -Wmissing-prototypes        -Wnested-externs -Winline -Wshadow -Dlinux -march=pentium4 -O3 -pipe   -I./include -I/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/libpam/include -I/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78 -I/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/libpamc/include  -fPIC -I../pammodutil/include -o pam_tally dynamic/pam_tally_app.o-L../pammodutil -lpammodutil -L../../libpam -lpam
../../libpam/libpam.so: undefined reference to `dlerror'
../../libpam/libpam.so: undefined reference to `dlclose'
../../libpam/libpam.so: undefined reference to `dlopen'
../../libpam/libpam.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[2]: *** [pam_tally] Error 1
make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_tally'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules'
make: *** [modules] Error 2

!!! ERROR: sys-libs/pam-0.78-r2 failed.
!!! Function src_compile, Line 271, Exitcode 2
!!! PAM build failed
!!! If you need support, post the topmost build error, NOT this status message.


and here is my output of
Code:
root (~) # ldd /var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules
/pam_tally/pam_tally.so
        linux-gate.so.1 =>  (0xffffe000)
        libpam.so.0 => /lib/libpam.so.0 (0xb7fd1000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7ebe000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7eba000)
        /lib/ld-linux.so.2 (0x80000000)


All the libraries in the output are actually present.

I've been so frustrated with pam, since I can upgrade that I'm thinking of getting rid of it, as mentioned here

thanks in advance!


Last edited by swimgeek on Sat Oct 29, 2005 6:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kruegi
Guru
Guru


Joined: 09 Feb 2005
Posts: 406
Location: Clausthal-Zellerfeld; DE

PostPosted: Wed Oct 26, 2005 5:11 am    Post subject: Reply with quote

Did you run revdep-rebuild?

Thomas
Back to top
View user's profile Send private message
swimgeek
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2003
Posts: 124
Location: Minneapolis, MN, USA

PostPosted: Wed Oct 26, 2005 1:16 pm    Post subject: Reply with quote

Never heard of it before. Will run it and report back.

thanks!
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Wed Oct 26, 2005 1:39 pm    Post subject: Reply with quote

What's your emerge --info?
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Wed Oct 26, 2005 4:48 pm    Post subject: Reply with quote

Check out these 2 threads glib-1.2.10 and gtk+-1.2.10-r11 [SOLVED] and IPTables Won't Compile:Issues with "warning: Using 'dlo
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
swimgeek
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2003
Posts: 124
Location: Minneapolis, MN, USA

PostPosted: Thu Oct 27, 2005 3:58 am    Post subject: Reply with quote

Well here's what revdep-rebuild produced:

Code:

All prepared. Starting rebuild...
emerge --oneshot --nodeps  =app-crypt/cryptplug-0.3.16 =app-editors/xemacs-21.4.15-r3 =app-office/gnucash-1.8.9 =dev-libs/cyrus-sasl-2.1.20 =dev-perl/DBD-mysql-2.1027 =gnome-base/libgnomeprint-2.8.2 =kde-base/kdenetwork-3.2.3 =kde-base/kdepim-3.3.2 =net-libs/gnutls-1.2.3 =sci-mathematics/scilab-2.7-r2 =sys-fs/cryptsetup-0.1-r1 =www-client/mozilla-1.7.8
..........
Calculating dependencies
emerge: there are no ebuilds to satisfy "=app-crypt/cryptplug-0.3.16".


Result is not OK, you have following choices:
- if emerge failed during build, fix the problems and re-run revdep-rebuild
    or
- use -X or --package-names as first argument (try to rebuild package, not exact
  ebuild - ignores SLOT!)
    or
- set ACCEPT_KEYWORDS="~<your platform>" and/or /etc/portage/package.unmask
  (and remove /root/.revdep-rebuild.5_order to be evaluated again)
    or
- modify the above emerge command and run it manually
    or
- compile or unmerge unsatisfied packages manually, remove temporary files and
  try again (you can edit package/ebuild list first)

To remove temporary files, please run:
rm /root/.revdep-rebuild*.?_*


I'll individually emerge the packages since the automated step seems to have not worked.

Here's my emerge --info:
Code:

Portage 2.0.51.22-r3 (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
dev-lang/python:     2.2.3-r5, 2.3.5
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.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
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="autoconfig 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, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


And as far the 2 threads pointed to by hielvc which configure files is being referred in the first thread? As far as emerging both glibc and gcc (according to the second thread), they are both at the current version on my system.

thanks guys for your responses!
Back to top
View user's profile Send private message
swimgeek
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2003
Posts: 124
Location: Minneapolis, MN, USA

PostPosted: Fri Oct 28, 2005 4:23 am    Post subject: Reply with quote

Well I'm still stuck where I was I still can't emerge pam and that is blocking everything else from emerging.

1. I tried building the toolchain by doing
Code:
emerge glibc gcc; emerge gcc binutils
and that didn't fix the problem

2. I ran revdep-rebuild (although I had to remove a lot of packages, since there weren't existing ebuilds for them) successfuly but pam still doesn't emerge :(

I would've gotten rid of pam if openssh had not depended on it.

Any more tips? I seem to have hit a dead end :cry:

thanks!
Back to top
View user's profile Send private message
fyerk
Apprentice
Apprentice


Joined: 17 Sep 2002
Posts: 212
Location: Atlanta, GA

PostPosted: Fri Oct 28, 2005 11:58 am    Post subject: Reply with quote

Can you post the output of emerge -pv pam
_________________
-David
Back to top
View user's profile Send private message
swimgeek
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2003
Posts: 124
Location: Minneapolis, MN, USA

PostPosted: Fri Oct 28, 2005 1:15 pm    Post subject: Reply with quote

Thanks for replying! Here's the output:
Code:

% emerge -pv pam

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] sys-libs/pam-0.78-r3 [0.77-r6] -berkdb -nis -pam_chroot -pam_console -pam_timestamp +pwdb (-selinux) 85 kB

Total size of downloads: 85 kB
Back to top
View user's profile Send private message
fyerk
Apprentice
Apprentice


Joined: 17 Sep 2002
Posts: 212
Location: Atlanta, GA

PostPosted: Fri Oct 28, 2005 1:27 pm    Post subject: Reply with quote

If you set your CFLAGS to the default, do you get the same error?

CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
_________________
-David
Back to top
View user's profile Send private message
swimgeek
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2003
Posts: 124
Location: Minneapolis, MN, USA

PostPosted: Sat Oct 29, 2005 5:10 am    Post subject: Reply with quote

Nope that didn't help either. BTW its now failing with a different error message:
Code:

*** Building pam-unix module of the framework...

mkdir -p /var/tmp/portage/pam-0.78-r3/image//lib/security
install -m 755 pam_unix.so /var/tmp/portage/pam-0.78-r3/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-r3/image//lib/security/$x.so ; done
mkdir -p /var/tmp/portage/pam-0.78-r3/image//usr/sbin
install -m 4555 unix_chkpwd /var/tmp/portage/pam-0.78-r3/image//usr/sbin
make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/modules/pam_unix'
make[2]: Entering directory `/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/modules/pam_warn'
mkdir -p ./dynamic
mkdir -p /var/tmp/portage/pam-0.78-r3/image//lib/security
/bin/install -c -m 755 pam_warn.so /var/tmp/portage/pam-0.78-r3/image//lib/security
make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/modules/pam_warn'
make[2]: Entering directory `/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/modules/pam_wheel'
mkdir -p ./dynamic
mkdir -p /var/tmp/portage/pam-0.78-r3/image//lib/security
/bin/install -c -m 755 pam_wheel.so /var/tmp/portage/pam-0.78-r3/image//lib/security
make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/modules/pam_wheel'
make[2]: Entering directory `/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/modules/pam_xauth'
mkdir -p ./dynamic
mkdir -p /var/tmp/portage/pam-0.78-r3/image//lib/security
/bin/install -c -m 755 pam_xauth.so /var/tmp/portage/pam-0.78-r3/image//lib/security
test -d /var/tmp/portage/pam-0.78-r3/image//usr/share/man/man8 || mkdir -p /var/tmp/portage/pam-0.78-r3/image//usr/share/man/man8
/bin/install -c -m 644 pam_xauth.8 /var/tmp/portage/pam-0.78-r3/image//usr/share/man/man8/
make[2]: Leaving directory `/var/tmp/portage/pam-0.78-r3/work/Linux-PAM-0.78/modules/pam_xauth'
make[1]: Leaving directory `/var/tmp/portage/pam-0.78-r3/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-r3 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.


This takes me to this bug for which there doesn't seem to be an obvious solution. I'll go over the 44 comments posted over there and see if it solves anything for me :(
Back to top
View user's profile Send private message
swimgeek
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2003
Posts: 124
Location: Minneapolis, MN, USA

PostPosted: Sat Oct 29, 2005 6:31 pm    Post subject: Reply with quote

Sucess!
I used the patch listed in the bug report to find the phantom libraries (I had to modify the md5 sum of the ebuilds!), and then removed them, finally resulting in a successful merge. Phew!

thanks to everyone who tried to help.
Back to top
View user's profile Send private message
elunicopacito
n00b
n00b


Joined: 30 Oct 2005
Posts: 1

PostPosted: Sun Oct 30, 2005 7:29 pm    Post subject: Reply with quote

I had exactly the same problem.
I tried lots of things ..

And I finished by changing the src_install function in the ebuild (and change the md5 and size in Manifest) by printing the output of ldd command.
I re emerged pam .. and I could see the paquets that posed problem (equery or emerge did not show these dependencies ..)
In my case, alsa-lib and alsa-oss were the trouble.
I emerged those packages and re emerged pam and no more problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum