| View previous topic :: View next topic |
| Author |
Message |
acchopra n00b

Joined: 09 Oct 2005 Posts: 9
|
Posted: Sun Oct 09, 2005 8:04 pm Post subject: emerge openssh bombs during configure with: "libpam mis |
|
|
Hi -
When attempting to emerge openssh (from 4.1_p1-r1 to 4.2_p1), I get a "libpam missing" error during the configure phase:
| Code: |
.
.
checking for dlopen in -ldl... no
checking for pam_set_item in -lpam... no
configure: error: *** libpam missing
!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/openssh-4.2_p1/work/openssh-4.2p1/config.log
!!! ERROR: net-misc/openssh-4.2_p1 failed.
!!! Function econf, Line 495, Exitcode 0
!!! econf failed
|
The full config.log doesn't fit but I've included a abreviated one below - please let me know if you need more.
Also, I have done the following:
- re-emerged pam
- re-synced and then retried emerging openssh (although I kind of new this wouldn't help).
- confirmed that the following libraries exist in /usr/lib64
| Code: |
-rw-r--r-- 1 root root 73208 Oct 2 14:37 libpam.a
-rwxr-xr-x 1 root root 295 Oct 2 14:37 libpam.so
-rw-r--r-- 1 root root 13376 Oct 2 14:37 libpam_misc.a
-rwxr-xr-x 1 root root 300 Oct 2 14:37 libpam_misc.so
-rw-r--r-- 1 root root 15936 Oct 2 14:37 libpamc.a
-rwxr-xr-x 1 root root 296 Oct 2 14:37 libpamc.so
|
confirmed that libpam.a contains the function being searched for: pam_set_item:
| Code: |
vega lib64 # grep pam_set_item libpam*
Binary file libpam.a matches
|
Can anyone help with this please? I'm out of ideas.
Thanks in advance.
abreviatedconfig.log
| Code: |
.
.
$ ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-ldflags= --disable-strip --sysconfdir=/etc/ssh --libexecdir=/usr/lib64/misc --datadir=/usr/share/openssh --disable-suid-ssh --with-privsep-path=/var/empty --with-privsep-user=sshd --with-md5-passwords --without-libedit --without-kerberos5 --with-tcp-wrappers --without-skey --without-opensc --with-ldap --with-pam --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
## --------- ##
## Platform. ##
## --------- ##
hostname = vega
uname -m = x86_64
uname -r = 2.6.11-gentoo-r6
uname -s = Linux
uname -v = #1 Wed Jul 13 02:27:07 IST 2005
/usr/bin/uname -p = AMD Athlon(tm) 64 FX-53 Processor
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4
PATH: /opt/ati/bin
PATH: /opt/sun-jdk-1.5.0.05/bin
PATH: /opt/sun-jdk-1.5.0.05/jre/bin
PATH: /usr/qt/3/bin
PATH: /usr/kde/3.4/sbin
PATH: /usr/kde/3.4/bin
PATH: /usr/kde/3.2/sbin
PATH: /usr/kde/3.2/bin
PATH: /opt/vmware/bin
.
.
configure:1689: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/specs
Configured with: /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include/g++-v3 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
configure:1692: $? = 0
configure:1694: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
.
.
configure:2117: test -s conftest.o
configure:2120: $? = 0
configure:2138: result: none needed
configure:2156: x86_64-pc-linux-gnu-gcc -c -pipe conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2162: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2326: checking build system type
.
.
configure:2418: test -s conftest.o
configure:2421: $? = 0
configure:2445: x86_64-pc-linux-gnu-gcc -c -pipe conftest.c >&5
conftest.c: In function `main':
conftest.c:16: error: `not' undeclared (first use in this function)
conftest.c:16: error: (Each undeclared identifier is reported only once
conftest.c:16: error: for each function it appears in.)
conftest.c:16: error: parse error before "big"
configure:2451: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "OpenSSH"
| #define PACKAGE_TARNAME "openssh"
| #define PACKAGE_VERSION "Portable"
| #define PACKAGE_STRING "OpenSSH Portable"
| #define PACKAGE_BUGREPORT "openssh-unix-dev@mindrot.org"
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <sys/param.h>
|
| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
| not big endian
| #endif
|
| ;
| return 0;
| }
configure:2586: result: no
configure:2611: checking for gawk
configure:2627: found /bin/gawk
configure:2637: result: gawk
configure:2652: checking how to run the C preprocessor
configure:2687: x86_64-pc-linux-gnu-gcc -E conftest.c
configure:2693: $? = 0
configure:2725: x86_64-pc-linux-gnu-gcc -E conftest.c
conftest.c:9:28: ac_nonexistent.h: No such file or directory
configure:2731: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "OpenSSH"
| #define PACKAGE_TARNAME "openssh"
| #define PACKAGE_VERSION "Portable"
| #define PACKAGE_STRING "OpenSSH Portable"
| #define PACKAGE_BUGREPORT "openssh-unix-dev@mindrot.org"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:2770: result: x86_64-pc-linux-gnu-gcc -E
configure:2794: x86_64-pc-linux-gnu-gcc -E conftest.c
configure:2800: $? = 0
configure:2832: x86_64-pc-linux-gnu-gcc -E conftest.c
conftest.c:9:28: ac_nonexistent.h: No such file or directory
configure:2838: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "OpenSSH"
| #define PACKAGE_TARNAME "openssh"
| #define PACKAGE_VERSION "Portable"
| #define PACKAGE_STRING "OpenSSH Portable"
| #define PACKAGE_BUGREPORT "openssh-unix-dev@mindrot.org"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:2884: checking for x86_64-pc-linux-gnu-ranlib
.
.
configure:4107: checking whether LLONG_MAX is declared
configure:4132: x86_64-pc-linux-gnu-gcc -c -pipe conftest.c >&5
conftest.c: In function `main':
conftest.c:17: error: `LLONG_MAX' undeclared (first use in this function)
conftest.c:17: error: (Each undeclared identifier is reported only once
conftest.c:17: error: for each function it appears in.)
configure:4138: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "OpenSSH"
| #define PACKAGE_TARNAME "openssh"
| #define PACKAGE_VERSION "Portable"
| #define PACKAGE_STRING "OpenSSH Portable"
| #define PACKAGE_BUGREPORT "openssh-unix-dev@mindrot.org"
| #define LOGIN_PROGRAM_FALLBACK "/bin/login"
| #define _PATH_PASSWD_PROG "/bin/passwd"
| /* end confdefs.h. */
| #include <limits.h>
|
| int
| main ()
| {
| #ifndef LLONG_MAX
| char *p = (char *) LLONG_MAX;
| #endif
|
| ;
| return 0;
| }
configure:4162: result: no
.
.
|
many more errors like that.
| Code: |
.
.
configure:13823: checking for pam_set_item in -lpam
configure:13853: x86_64-pc-linux-gnu-gcc -o conftest -pipe -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99 conftest.c -lpam -lldap -lutil -lz -lnsl >&5
cc1: warning: -Wuninitialized is not supported without -O
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memalloc_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memvfree_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memrealloc_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memcalloc_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_strndup_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memfree_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_strdup_x'
collect2: ld returned 1 exit status
configure:13859: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "OpenSSH"
| #define PACKAGE_TARNAME "openssh"
| #define PACKAGE_VERSION "Portable"
| #define PACKAGE_STRING "OpenSSH Portable"
| #define PACKAGE_BUGREPORT "openssh-unix-dev@mindrot.org"
| #define LOGIN_PROGRAM_FALLBACK "/bin/login"
| #define _PATH_PASSWD_PROG "/bin/passwd"
| #define DONT_TRY_OTHER_AF 1
| #define PAM_TTY_KLUDGE 1
| #define LOCKED_PASSWD_PREFIX "!"
| #define SPT_TYPE SPT_REUSEARGV
| #define LINK_OPNOTSUPP_ERRNO EPERM
| #define _PATH_BTMP "/var/log/btmp"
| #define USE_BTMP 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CRYPT_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_ENDIAN_H 1
| #define HAVE_FEATURES_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_GLOB_H 1
| #define HAVE_LASTLOG_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| #define HAVE_PATHS_H 1
| #define HAVE_PTY_H 1
| #define HAVE_RPC_TYPES_H 1
| #define HAVE_SECURITY_PAM_APPL_H 1
| #define HAVE_SHADOW_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_BITYPES_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_SYS_DIR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_PRCTL_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_STROPTS_H 1
| #define HAVE_SYS_SYSMACROS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_TIME_H 1
| #define HAVE_TTYENT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_UTMP_H 1
| #define HAVE_UTMPX_H 1
| #define HAVE_LIBNSL 1
| #define HAVE_DIRNAME 1
| #define HAVE_LIBGEN_H 1
| #define HAVE_BASENAME 1
| #define HAVE_LIBZ 1
| #define HAVE_LOGIN 1
| #define HAVE_LOGOUT 1
| #define HAVE_UPDWTMP 1
| #define HAVE_LOGWTMP 1
| #define HAVE_STRFTIME 1
| #define GLOB_HAS_ALTDIRFUNC 1
| #define HAVE_PROC_PID 1
| #define LIBWRAP 1
| #define WITH_LDAP_PUBKEY 1
| #define HAVE_UTIMES 1
| #define HAVE_TCSENDBREAK 1
| #define HAVE_DECL_H_ERRNO 1
| #define HAVE_SO_PEERCRED
| #define SSHD_ACQUIRES_CTTY 1
| #define GETPGRP_VOID 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char pam_set_item ();
| int
| main ()
| {
| pam_set_item ();
| ;
| return 0;
| }
configure:13885: result: no
configure:13895: error: *** libpam missing
.
.
|
Last edited by acchopra on Sun Oct 09, 2005 8:25 pm; edited 1 time in total |
|
| Back to top |
|
 |
ChrisWhite Retired Dev


Joined: 08 Jul 2004 Posts: 399 Location: Stockton, CA
|
Posted: Sun Oct 09, 2005 8:12 pm Post subject: |
|
|
| Quote: | | conftest.c:72:26: pam/pam_appl.h: No such file or directory |
I need to see more beyond that... |
|
| Back to top |
|
 |
acchopra n00b

Joined: 09 Oct 2005 Posts: 9
|
Posted: Sun Oct 09, 2005 8:28 pm Post subject: |
|
|
| ChrisWhite wrote: |
I need to see more beyond that... |
Sorry had to abreviate config.log because it wasn't fitting.
The original post has been edited. |
|
| Back to top |
|
 |
ChrisWhite Retired Dev


Joined: 08 Jul 2004 Posts: 399 Location: Stockton, CA
|
Posted: Sun Oct 09, 2005 8:34 pm Post subject: |
|
|
| Quote: | /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memalloc_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memvfree_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memrealloc_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memcalloc_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_strndup_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memfree_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_strdup_x' |
there's your problem right there. http://bugs.gentoo.org/show_bug.cgi?id=94458 . |
|
| Back to top |
|
 |
acchopra n00b

Joined: 09 Oct 2005 Posts: 9
|
Posted: Sun Oct 09, 2005 8:42 pm Post subject: |
|
|
Oops
I didn't look for bugs before posting.
Apologies. |
|
| Back to top |
|
 |
OldTango Guru


Joined: 21 Feb 2004 Posts: 425
|
Posted: Sat Feb 04, 2006 12:25 am Post subject: |
|
|
Forgive me for being confused here, but I have been running a mostly stable amd64 system for a while now. Today after a sync and an update this exact error reared its ugly head.
OpenSSH failed with missing libpam
config log also reported | Quote: | /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memalloc_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memvfree_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memrealloc_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memcalloc_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_strndup_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_memfree_x'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libldap.so: undefined reference to `ber_strdup_x' |
I also went to the bug report
That is a cryptic to me as the error is........................................................
What is it I need to do to fix this..........................................
TIA |
|
| Back to top |
|
 |
newtrack4 n00b

Joined: 04 Feb 2006 Posts: 4 Location: Illinois, USA
|
Posted: Sat Feb 04, 2006 5:26 am Post subject: |
|
|
I solved this on my amd64 system by running the following:
[code]
revdep-rebuild --soname liblber.so.2
revdep-rebuild --soname libldap.so.2
revdep-rebuild --soname libldap_r.so.2
[/code]
Then I emerged openssh again. |
|
| Back to top |
|
 |
OldTango Guru


Joined: 21 Feb 2004 Posts: 425
|
Posted: Sun Feb 05, 2006 3:27 am Post subject: |
|
|
| newtrack4 wrote: | I solved this on my amd64 system by running the following:
| Code: |
revdep-rebuild --soname liblber.so.2
revdep-rebuild --soname libldap.so.2
revdep-rebuild --soname libldap_r.so.2
|
Then I emerged openssh again. |
It appears this has fixed the ssh problem.
After runing revdep-rebuild for a final time though it has found a few other broken packages and links. I hope this isn't going to keep on going and going and going..............................
Thanks newtrack4 |
|
| Back to top |
|
 |
Anardil Tux's lil' helper

Joined: 27 Jun 2004 Posts: 90
|
Posted: Mon Feb 06, 2006 4:31 pm Post subject: |
|
|
How do you find out which libraries to check for inverse dependencies?
| Quote: |
revdep-rebuild --soname liblber.so.2
revdep-rebuild --soname libldap.so.2
revdep-rebuild --soname libldap_r.so.2
|
I mean some ebuilds output a message to do so but in this particular case! |
|
| Back to top |
|
 |
ckdake l33t


Joined: 10 Apr 2003 Posts: 889 Location: Atlanta, GA
|
Posted: Mon Feb 06, 2006 7:28 pm Post subject: |
|
|
the rebuilds solved the problem for me too. Thanks! _________________ http://ckdake.com/ |
|
| Back to top |
|
 |
OldTango Guru


Joined: 21 Feb 2004 Posts: 425
|
Posted: Mon Feb 06, 2006 8:31 pm Post subject: |
|
|
| Anardil wrote: | How do you find out which libraries to check for inverse dependencies?
/snip
I mean some ebuilds output a message to do so but in this particular case! |
During the rebuild process on my machine, one of the files to be rebuilt was ldap I belive and it made a referance to theses files and running revdep-rebuild to repair broken libs and links. For me on my amd64 system I sync about once a week and I am lucky if I find 2 or 3 world files that may need to be updated. This one snuck in on me during a major update of gnome, from 2.10 to 2.12. 145 packages for the update, so naturally this was done during down time at night. So I wasn't around to watch every package build.
Its to bad portage dosen't spit out this information after all builds are finished, like with the config files. That would be a great little feature..............................
I have missed a lot of very important information on very large package builds. Like running python-updater and a few others. Portage is a fantastic tool and I need to learn a lot more about it. To bad it can't be a fully automated process on stable systems. |
|
| Back to top |
|
 |
Anardil Tux's lil' helper

Joined: 27 Jun 2004 Posts: 90
|
Posted: Mon Feb 06, 2006 11:26 pm Post subject: |
|
|
yes i am fully with you gentoo/portage is great but takes some time to keep a system stable in some cases
Which does not matter at all, because every time you have a problem/challenge, you're surely gonna learn something new! |
|
| Back to top |
|
 |
rlittle Apprentice


Joined: 17 Dec 2003 Posts: 200
|
Posted: Tue Feb 07, 2006 9:45 pm Post subject: |
|
|
Same problem on a amd64 here, same solution worked for me to. Thanks all. _________________ I need a better signature... |
|
| Back to top |
|
 |
Catch-22 Apprentice


Joined: 22 Oct 2004 Posts: 244
|
Posted: Thu Feb 09, 2006 12:49 am Post subject: |
|
|
gah another error I could've avoided by reading the ewarns :<
thx for the tip newtrack4 |
|
| Back to top |
|
 |
nanoo Apprentice


Joined: 23 Jan 2005 Posts: 150
|
Posted: Sun Feb 12, 2006 12:37 am Post subject: |
|
|
Mine is another instance where this helped tremendously - again running an amd64 system. Thanks for posting the suggestion newtrack4
nanoo |
|
| Back to top |
|
 |
adambutler n00b

Joined: 14 Dec 2005 Posts: 9
|
Posted: Tue Feb 14, 2006 1:02 pm Post subject: |
|
|
I'm lost here - I don't have an revdep-rebuild command on my system. Is there some package I should install?
I've tried rebuilding pam, no luck tho, can't it just work? I have no idea what I use openssh for, https?
Its not too good having all these problems when I update my system, gentoo is turning out to be a lot of work.
edit...
google tells me its in gentoolkit, so about to try once ldap is built - another thread recons building that
next edit...
it worked after installing ldap - yet another package that I have installed and have no idea what it does |
|
| Back to top |
|
 |
|