Re: Build errors (again)

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

 



Thus spake Wil Cooley:
> Sorry for sounds like a clueless idiot; but I've got a couple of problems
> building PAM.
> 
> Here again is how I'm configuring:
> 
> Configuring with: --exec-prefix=/ --cache-file=/usr/src/root2/bos//config.cache
> --libexecdir=//usr/sbin --mandir=//usr/share/man --sysconfdir=//etc
> --infodir=//usr/share/info --prefix=//usr i486-lnxs-linux-gnu --enable-debug
> --enable-libdebug --enable-read-both-confs --enable-static-libpam
> --enable-fakeroot=/
> 

I guess I gave up and asked for help too soon again.  The problem lies
in the '--enable-libdebug' flag.  I don't understand why it happens with
'--enable-static-libpam' (although I have some suspicions), but the
problem without was, in fact, because 'libpam.so' did not exist--only
'libpamd.so' (it took a bit to notice that).

Attached is a patch to change the -lpam to -lpamd when built with libdebug.
I'm still looking at the problem when building with stats-libpam.

Wil
-- 
W. Reilly Cooley                         wcooley@nakedape.cc
Naked Ape Consulting                      http://nakedape.cc
LNXS: Linux/GNU for servers, networks, and   http://lnxs.org
people who take care of them.  *Now with integrated crypto!*
irc.openprojects.net                                   #lnxs

Conscience is the inner voice that warns us somebody may be looking.
		-- H.L. Mencken, "A Mencken Chrestomathy"
Index: Makefile
===================================================================
RCS file: /cvsroot/lnxs/lnxs/auth/pam/examples/Makefile,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 Makefile
--- Makefile	2001/01/30 02:58:30	1.1.1.3
+++ Makefile	2001/02/09 06:28:09
@@ -10,7 +10,13 @@
 
 CFLAGS += -I../libpam_misc/include -I../libpamc/include
 
-LOADLIBES = -L../libpam -L../libpamc -L../libpam_misc -lpam -lpam_misc
+LOADLIBES = -L../libpam -L../libpamc -L../libpam_misc -lpam_misc
+
+ifeq ($(WITH_LIBDEBUG),yes)
+ LOADLIBES += -lpamd
+else
+ LOADLIBES += -lpam
+endif
 
 all: $(PROGS)
 

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

  Powered by Linux