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

Re: Using PAM with SFS



tags 144857 + patch
thanks

Package: libpam-sfs
Version: 0.2.2
Followup-For: Bug #144857

On Mon, Sep 30, 2002 at 02:43:16PM +0200, Massimiliano Mirra wrote:
> Yes, non-US source is there now (that was the reason apt-get source
> libpam-sfs was not working in the first place).  The problem with
> libsfscrypt happens at configure time: the lib is there but configure
> can't seem to find it:

Apply the attached patch and run autogen.sh (automake and autoconf need
to be installed for this step).  Works for me.

Regards,

Daniel.

---[snip]---

--- configure.in.orig	2001-06-19 19:30:18.000000000 +0200
+++ configure.in	2002-09-30 15:36:48.000000000 +0200
@@ -40,12 +40,16 @@
 AC_DEFINE_UNQUOTED(SFSKEY_PATH, "$SFSKEY_PATH")
 
 dnl Checks for libraries.
-AC_CHECK_LIB(gmp3,     main,        , AC_MSG_ERROR(gmp3 library not found))
+AC_LANG(C++)
+AC_CHECK_LIB(gmp,     main,        , AC_MSG_ERROR(gmp library not found))
 AC_CHECK_LIB(stdc++,   main,        , AC_MSG_ERROR(stdc++ library not found))
+AC_CHECK_LIB(resolv,   main,        , AC_MSG_ERROR(resolv library not found))
+AC_CHECK_LIB(nsl,   main,        , AC_MSG_ERROR(nsl library not found))
 MY_LIB_PATH(sfsmisc,   $sfs_libdir, , AC_MSG_ERROR(sfs libraries not found))
-AC_CHECK_LIB(sfscrypt, main,        , AC_MSG_ERROR(sfscrypt library not found))
+dnl Funny. libarpc and libasync depend on each other.
+AC_CHECK_LIB(arpc,     main,        , AC_MSG_ERROR(arpc library not found), [-lasync])
 AC_CHECK_LIB(async,    main,        , AC_MSG_ERROR(async library not found))
-AC_CHECK_LIB(arpc,     main,        , AC_MSG_ERROR(arpc library not found))
+AC_CHECK_LIB(sfscrypt, main,        , AC_MSG_ERROR(sfscrypt library not found))
 AC_CHECK_LIB(svc,      main,        , AC_MSG_ERROR(svc library not found))
 AC_CHECK_LIB(sfsmisc,  main,        , AC_MSG_ERROR(sfsmisc library not found))
 
--- Makefile.am.orig	2001-06-19 19:30:18.000000000 +0200
+++ Makefile.am	2002-09-30 15:50:18.000000000 +0200
@@ -10,10 +10,10 @@
 	$(LINK.o) -shared $(DEFS) $^ -Wl,-dn $(LIBS) -Wl,-dy -o $@
 
 %.lo: %.c
-	$(COMPILE.c) $< $(DEFS) -fpic -DPIC -o $@ 
+	$(COMPILE.c) $< $(DEFAULT_INCLUDES) $(DEFS) -fpic -DPIC -o $@ 
 
 %.lo: %.C
-	$(COMPILE.C) $< $(DEFS) -fpic -DPIC -o $@ 
+	$(COMPILE.C) $< $(DEFAULT_INCLUDES) $(DEFS) -fpic -DPIC -o $@ 
 
 maintainer-clean-local:
 	rm -f Makefile.in aclocal.m4 configure



Reply to: