kravietz / pam_tacplus

TACACS+ protocol client library and PAM module in C. This PAM module support authentication, authorization (account management) and accounting (session management)performed using TACACS+ protocol designed by Cisco.
GNU Lesser General Public License v3.0
132 stars 102 forks source link

/bin/sh: sys/random.h-t: No such file or directory #195

Open huoyingyangjie opened 1 year ago

huoyingyangjie commented 1 year ago

I meet abover error as the build way you metioned in readme.It occured in make stage.I resolved it by add 'sys' directory in lib.

kravietz commented 1 year ago

@huoyingyangjie Hi, thank you for the report? What's the operating system version?

kravietz commented 1 year ago

All occurrences of random.h seem to already refer through sys:

> rg random.h
libtac/lib/crypt.c
24:#include <sys/random.h>

libtac/lib/header.c
25:#include <sys/random.h>

libtac/include/libtac.h
61:#include <sys/random.h>

configure.ac
85:AC_CHECK_HEADERS([syslog.h unistd.h sys/random.h])
huoyingyangjie commented 1 year ago

Os version : CentOS Linux release 7.3.1611 (Core) Gnulib version : HEAD detached at 08ba9aaebf Earlier, i use glibc2.17 lost sys/random.h in /usr/include, so i upgrade to glibc version: 2.31. But it still occur this error.