Linyin escreveu:
yeah,i copy the file to openvpn source code plugin.
when i build it
# pwd
/usr/ports/distfiles/openvpn-2.0.9/plugin/auth-passwd
# gmake
gcc -O2 -Wall -DUSE_SHADOW=1 -fPIC -c -I../.. auth-passwd.c
auth-passwd.c:39:20: shadow.h: No such file or directory
auth-passwd.c: In function `passwd_auth':
auth-passwd.c:497: warning: implicit declaration of function `getspnam'
auth-passwd.c:497: warning: assignment makes pointer from integer without a cast
auth-passwd.c:504: error: dereferencing pointer to incomplete type
auth-passwd.c:504: error: dereferencing pointer to incomplete type
gmake: *** [auth-passwd.o] Error 1
I read GNU and
found:http://www.gnu.org/software/gnulib/manual/html_node/shadow_002eh.html
Portability problems not fixed by Gnulib:
This header file is missing on some platforms: MacOS X 10.3, FreeBSD
6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, OSF/1 5.1, Cygwin, mingw,
Interix 3.5, BeOS.
The functions getspent_r, getspnam_r, sgetspent_r, fgetspent,
fgetspent_r, putspent are missing on some platforms: HP-UX 11.
The functions sgetspent, sgetspent_r are missing on some platforms:
IRIX 6.5, Solaris 10.
Now it looking for shadow.h and try copy it into openvpn file.
It won't work, because the shadow suite is only available on linux and
solaris, AFAIK. You have to edit the Makefile and define the USE_SHADOW
variable to 0. Then it will compile cleanly. Also, you need gmake, as i
stated before.
My regards,
--
Giancarlo Razzolini
http://lock.razzolini.adm.br
Linux User 172199
Red Hat Certified Engineer no:804006389722501
Verify:https://www.redhat.com/certification/rhce/current/
Moleque Sem Conteudo Numero #002
OpenBSD Stable
Ubuntu 8.04 Hardy Heron
4386 2A6F FFD4 4D5F 5842 6EA0 7ABE BBAB 9C0E 6B85