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

Re: Can't compile Pam



> 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/home/glxy/tmp/Linux-PAM-0.72/include -fPIC -Dlinux -Di386
> -DWANT_PWDB -DPAM_DYNAMIC   -c
> pam_mail.c -o dynamic/pam_mail.o
> pam_mail.c:39: pwdb/pwdb_public.h: No such file or directory
> /usr/include/bits/string2.h: In function `__mempcpy_small':
> In file included from /usr/include/string.h:346,
>                  from pam_mail.c:31:

It can't find the header file in the default include path. Use -I to fix
that.

>     If I go into pam_mail.c, and eliminate the need to include
> pwdb/pwdb_public.h, the same sort of thing happens with quite a few of
> the module files, e.g.:
> 
> /usr/i386-slackware-linux/bin/ld: cannot open -lpwdb: No such file or
> directory
> collect2: ld returned 1 exit status

The linker needs libpwdb. It's build together with PAM itself. Use -L to
correct paths.

>     Is there a library(ies) that Red Hat has that Slakware doesn't?
> 
>     I despair of every being able to build this tool, but I need it to run the
> secure shell application, ssh.


You don't need PAM to use SSH.




	Igmar





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