PAM-0.74 compile error

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

 



Hello,

I'm trying to build PAM-0.74 and getting the following error:

ld -x -shared -o libpamd.so dynamic/pam_item.o dynamic/pam_strerror.o
dynamic/pam_end.o dynamic/pam_start.o dynamic/pam_data.o
dynamic/pam_delay.o dynamic/pam_dispatch.o dynamic/pam_handlers.o
dynamic/pam_misc.o dynamic/pam_account.o dynamic/pam_auth.o
dynamic/pam_session.o dynamic/pam_password.o dynamic/pam_env.o
dynamic/pam_log.o pam -lc -ldl
ld: cannot open pam: No such file or directory
make[3]: *** [libpamd.so] Error 1
make[3]: Leaving directory `/usr/src/root2/bos/auth/pam/libpam'
make[2]: *** [libpam] Error 2
make[2]: Leaving directory `/usr/src/root2/bos/auth/pam'
make[1]: Leaving directory `/usr/src/root2/bos/auth'

If I cd into pam/libpam and run make, it builds libpam.so correctly with:

mkdir -p dynamic
ld -x -shared -o libpamd.so dynamic/pam_item.o dynamic/pam_strerror.o
dynamic/pam_end.o dynamic/pam_start.o dynamic/pam_data.o
dynamic/pam_delay.o dynamic/pam_dispatch.o dynamic/pam_handlers.o
dynamic/pam_misc.o dynamic/pam_account.o dynamic/pam_auth.o
dynamic/pam_session.o dynamic/pam_password.o dynamic/pam_env.o
dynamic/pam_log.o  -lc -ldl

The difference seems to be the existance of 'pam' as the third-to-last
parameter to 'ld'.  I'm configuring with these options:

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-fakeroot=/usr/src/root2/

I've tried removing the "--enable-debug --enable-libdebug
--enable-read-both-confs --enable-fakeroot=/usr/src/root2/" options,
to no avail.

My defs file, with the symlinked 'default.defs', is the same as the
distributed 'redhat.defs'.

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

'Tis more blessed to give than receive; for example, wedding presents.
		-- H.L. Mencken





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

  Powered by Linux