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

PAM building problems



Hello,

I wanted to build the PAM modules v 0.65 on my system and had some
problems.

First about the system:

Intel PII
Linux kernel 2.2.6 (as shipped with the distribution)
Linux distribution Slackware 4.0.0

Now about the problems.

Make is sending the following messages after entering the directory
pam_pwdb:

- on standard output:

*** Building PAM_pwdb module...

gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		  -DCHKPWD_HELPER=\"/sbin/pwdb_chkpwd\"   -c md5.c -o md5.o
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		  -DCHKPWD_HELPER=\"/sbin/pwdb_chkpwd\"   -c md5_crypt.c -o md5_crypt.o
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		  -DCHKPWD_HELPER=\"/sbin/pwdb_chkpwd\" -DPAM_DYNAMIC   -c pam_pwdb.c -o dynamic/pam_pwdb.o
gcc -shared -Xlinker -x -o pam_pwdb.so dynamic/pam_pwdb.o  md5.o md5_crypt.o -lpwdb
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		  -DCHKPWD_HELPER=\"/sbin/pwdb_chkpwd\"   -c pwdb_chkpwd.c -o pwdb_chkpwd.o
gcc -o pwdb_chkpwd pwdb_chkpwd.o md5.o md5_crypt.o -lpwdb
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_pwdb'
make[1]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules'

- on standard error

/usr/i486-linux/bin/ld: warning: libc.so.6, needed by /lib/libpwdb.so, may conflict with libc.so.5
/lib/libpwdb.so: undefined reference to `ttyname@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `chown@@GLIBC_2.1'
/lib/libpwdb.so: undefined reference to `rename@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `strchr@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `__rawmemchr@@GLIBC_2.1'
/lib/libpwdb.so: undefined reference to `clnt_create@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `fileno@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `strcmp@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `fprintf@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `getenv@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `getservbyname@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `rewind@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `gethostbyaddr@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `strftime@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `yp_master@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `stderr@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `__sigsetjmp@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `__xstat@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `fseek@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `time@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `__fxstat@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `strstr@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `__strtol_internal@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `strncmp@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `authunix_create_default@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `getrpcport@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `strcat@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `printf@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `bind@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `memcpy@@GLIBC_2..0'
/lib/libpwdb.so: undefined reference to `fclose@@GLIBC_2.1'
/lib/libpwdb.so: undefined reference to `strrchr@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `__strdup@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `gethostbyname@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `exit@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `gethostid@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `gmtime@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `sscanf@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `_IO_putc@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `utime@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `__ctype_b@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `setrlimit@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `strncpy@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `fopen@@GLIBC_2.1'
/lib/libpwdb.so: undefined reference to `xdr_int@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `sprintf@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `yp_match@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `_IO_getc@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `rand@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `alarm@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `xdr_string@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `yp_get_default_domain@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `sync@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `__bzero@@GLIBC_2.0'
/lib/libpwdb.so: undefined reference to `strcpy@@GLIBC_2.0'
make[2]: *** [pwdb_chkpwd] Error 1
make[1]: *** [all] Error 1

The only thing I can say is that ls -l is giving the following information
about libc.so.?

lrwxrwxrwx   1 root     root           13 Aug 16 18:03 /lib/libc.so.4 -> libc.so.4.7.6*
lrwxrwxrwx   1 root     root           14 Aug 16 18:17 /lib/libc.so.5 -> libc.so.5.4.46*
lrwxrwxrwx   1 root     root           13 Aug 16 18:04 /lib/libc.so.6 -> libc-2.0.7.so*

I also have to say that I installed libpwdb.so.0 from pwdb-0.58-3.src.rpm.

I could not find a way to get around this and compile the module(s) in
pam_pwdb.

OK. I tried to avoid this module by removing its name from the Makefile in
modules/ but then I got problems with pam_radius, pam_rhosts and pam_unix.
This time there were just warnings. Unfortunately I don't know if I
should care much about them or not.

Again the messages:

- on standard output

make[2]: Entering directory `/root/PAM/Linux-PAM-0.65/modules/pam_radius'
mkdir -p ./dynamic
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -DPAM_DYNAMIC   -c pam_radius.c -o dynamic/pam_radius.o
gcc -shared -Xlinker -x -o pam_radius.so dynamic/pam_radius.o -lpwdb
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_radius'
make[2]: Entering directory `/root/PAM/Linux-PAM-0.65/modules/pam_rhosts'
mkdir -p ./dynamic
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -DPAM_DYNAMIC   -c pam_rhosts_auth.c -o dynamic/pam_rhosts_auth.o
gcc -shared -Xlinker -x -o pam_rhosts_auth.so dynamic/pam_rhosts_auth.o
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_rhosts'
make[2]: Entering directory `/root/PAM/Linux-PAM-0.65/modules/pam_rootok'
mkdir -p ./dynamic
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -DPAM_DYNAMIC   -c pam_rootok.c -o dynamic/pam_rootok.o
gcc -shared -Xlinker -x -o pam_rootok.so dynamic/pam_rootok.o
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_rootok'
make[2]: Entering directory `/root/PAM/Linux-PAM-0.65/modules/pam_securetty'
mkdir -p ./dynamic
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -DPAM_DYNAMIC   -c pam_securetty.c -o dynamic/pam_securetty.o
gcc -shared -Xlinker -x -o pam_securetty.so dynamic/pam_securetty.o
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_securetty'
make[2]: Entering directory `/root/PAM/Linux-PAM-0.65/modules/pam_shells'
mkdir -p ./dynamic
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -DPAM_DYNAMIC   -c pam_shells.c -o dynamic/pam_shells.o
gcc -shared -Xlinker -x -o pam_shells.so dynamic/pam_shells.o
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_shells'

Alex O. Yuriev is working on pam_sid_auth


Jeff Uphoff is working on the pam_skey module. 1996/5/1


Sean Reifschneider is working on pam_skey2 he can be reached at
<jafo@tummy.com>

make[2]: Entering directory `/root/PAM/Linux-PAM-0.65/modules/pam_stress'
mkdir -p ./dynamic
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -DPAM_DYNAMIC   -c pam_stress.c -o dynamic/pam_stress.o
gcc -shared -Xlinker -x -o pam_stress.so dynamic/pam_stress.o
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_stress'
make[2]: Entering directory `/root/PAM/Linux-PAM-0.65/modules/pam_tally'
mkdir -p ./dynamic
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -DPAM_DYNAMIC   -c pam_tally.c -o dynamic/pam_tally.o
gcc -shared -Xlinker -x -o pam_tally.so dynamic/pam_tally.o
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_tally'
make[2]: Entering directory `/root/PAM/Linux-PAM-0.65/modules/pam_time'
mkdir -p ./dynamic
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -DCONFILE=\"/etc/security/time.conf\" -DPAM_DYNAMIC   -c pam_time.c -o dynamic/pam_time.o
gcc -shared -Xlinker -x -o pam_time.so dynamic/pam_time.o
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_time'
make[2]: Entering directory `/root/PAM/Linux-PAM-0.65/modules/pam_unix'
mkdir -p ./dynamic

*** Building pam-unix(alpha) module of the framework...

gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -D"HAVE_SHADOW_H" -D"USE_CRACKLIB" -D"USE_LCKPWDF"  -DPAM_DYNAMIC  -c pam_unix_auth.c -o dynamic/pam_unix_auth.o
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -D"HAVE_SHADOW_H" -D"USE_CRACKLIB" -D"USE_LCKPWDF"  -DPAM_DYNAMIC  -c support.c -o dynamic/support.o
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -D"HAVE_SHADOW_H" -D"USE_CRACKLIB" -D"USE_LCKPWDF"  -DPAM_DYNAMIC  -c pam_unix_sess.c -o dynamic/pam_unix_sess.o
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -D"HAVE_SHADOW_H" -D"USE_CRACKLIB" -D"USE_LCKPWDF"  -DPAM_DYNAMIC  -c pam_unix_passwd.c -o dynamic/pam_unix_passwd.o
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -D"HAVE_SHADOW_H" -D"USE_CRACKLIB" -D"USE_LCKPWDF"  -DPAM_DYNAMIC  -c pam_unix_acct.c -o dynamic/pam_unix_acct.o
gcc -shared -Xlinker -x -o pam_unix_session.so dynamic/pam_unix_sess.o
gcc -shared -Xlinker -x -o pam_unix_auth.so dynamic/pam_unix_auth.o dynamic/support.o
gcc -shared -Xlinker -x -o pam_unix_passwd.so dynamic/pam_unix_passwd.o -lcrack
gcc -shared -Xlinker -x -o pam_unix_acct.so dynamic/pam_unix_acct.o
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_unix'
make[2]: Entering directory `/root/PAM/Linux-PAM-0.65/modules/pam_warn'
mkdir -p ./dynamic
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -DPAM_DYNAMIC   -c pam_warn.c -o dynamic/pam_warn.o
gcc -shared -Xlinker -x -o pam_warn.so dynamic/pam_warn.o
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_warn'
make[2]: Entering directory `/root/PAM/Linux-PAM-0.65/modules/pam_wheel'
mkdir -p ./dynamic
gcc -O7 -pipe -g -DLINUX_PAM  -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -I/root/PAM/Linux-PAM-0.65/include -fPIC

 -Dlinux -Di386		 -DHAVE_PWDBLIB -DPAM_DYNAMIC   -c pam_wheel.c -o dynamic/pam_wheel.o
gcc -shared -Xlinker -x -o pam_wheel.so dynamic/pam_wheel.o -lpwdb
make[2]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules/pam_wheel'
make[1]: Leaving directory `/root/PAM/Linux-PAM-0.65/modules'

- on standard error

In file included from /usr/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:45,
                 from /usr/include/linux/in.h:173,
                 from /usr/include/netinet/in.h:79,
                 from pam_radius.h:26,
                 from pam_radius.c:22:
/usr/include/linux/byteorder/swab.h:100: warning: no previous prototype for `__fswab16'
/usr/include/linux/byteorder/swab.h:104: warning: no previous prototype for `__swab16p'
/usr/include/linux/byteorder/swab.h:108: warning: no previous prototype for `__swab16s'
/usr/include/linux/byteorder/swab.h:113: warning: no previous prototype for `__fswab32'
/usr/include/linux/byteorder/swab.h:117: warning: no previous prototype for `__swab32p'
/usr/include/linux/byteorder/swab.h:121: warning: no previous prototype for `__swab32s'
In file included from /usr/include/rpc/rpc.h:54,
                 from pam_radius.h:28,
                 from pam_radius.c:22:
/usr/include/rpc/clnt.h:325: warning: declaration of `__wait' shadows global declaration
/usr/include/rpc/clnt.h:328: warning: declaration of `__wait' shadows global declaration
In file included from /usr/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:45,
                 from /usr/include/linux/in.h:173,
                 from /usr/include/netinet/in.h:79,
                 from pam_rhosts_auth.c:56:
/usr/include/linux/byteorder/swab.h:100: warning: no previous prototype for `__fswab16'
/usr/include/linux/byteorder/swab.h:104: warning: no previous prototype for `__swab16p'
/usr/include/linux/byteorder/swab.h:108: warning: no previous prototype for `__swab16s'
/usr/include/linux/byteorder/swab.h:113: warning: no previous prototype for `__fswab32'
/usr/include/linux/byteorder/swab.h:117: warning: no previous prototype for `__swab32p'
/usr/include/linux/byteorder/swab.h:121: warning: no previous prototype for `__swab32s'
pam_unix_passwd.c: In function `pam_sm_chauthtok':
pam_unix_passwd.c:446: warning: passing arg 2 of `FascistCheck' discards `const' from pointer target type

Could someone help me with this?

Best regards,

Serban Udrea

S.Udrea@gsi.de

PS. The messages from standard output are not complete, because I don't
think that all of them is connected with the errors and this message is
anyway long enough.




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