pam_misc.so + undefined reference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 13 Apr 2002, Errol U. Neal wrote:

> Hi All, 
> 
> I don't know if this is off topic, but here I go. I am trying to compile
> the latest version of shadow with pam support using Linux-PAM-0.76 from
> cvs. However, it appears that there is a problem with the pam_misc.so
> library. When I do a "ld -lpam_misc" I get an error that speaks of an
> undefined reference to "pam_getenv", "pam_getenvlist" and "pam_putenv".
> I don't get this error libpam, only libpam_misc. Well apparently, it is
> hindering my build of shadow with pam support because the shadow
> configure file cannot even detect the library. Is anyone familiar with
> this error? I would greatly appreciate any help at all....

it's brokenness in shadow configure, no idea why
diff -rcN shadow-4.0.3.orig/configure shadow-4.0.3/configure
*** shadow-4.0.3.orig/configure Wed Mar 13 20:04:25 2002
--- shadow-4.0.3/configure      Fri May  3 13:47:15 2002
***************
*** 10268,10274 ****
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
! LIBS="-lpam_misc  $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
  #line 10273 "configure"
  #include "confdefs.h"
--- 10268,10274 ----
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
! LIBS="$LIBPAM -lpam_misc  $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
  #line 10273 "configure"
  #include "confdefs.h"

in other words: replace
LIBS="-lpam_misc  $LIBS"
with
LIBS="$LIBPAM -lpam_misc  $LIBS"


tony






[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux