When I run make i get the following errors (I am compiling openvpn-2.0.9 auth-pam plugin) gcc -O2 -Wall -DDLOPEN_PAM=0 -fPIC -c -I../.. auth-pam.c auth-pam.c: In function `daemonize': auth-pam.c:224: warning: implicit declaration of function `daemon' auth-pam.c: In function `pam_auth': auth-pam.c:619: warning: assignment from incompatible pointer type gcc -O2 -Wall -DDLOPEN_PAM=0 -fPIC -c -I../.. pamdl.c gcc -O2 -Wall -DDLOPEN_PAM=0 -fPIC -shared -Wl,-soname,openvpn-auth-pam.so -o openvpn-auth-pam.so auth-pam.o pamdl.o -lc -lpam The two lines it complains about are (The C code) line 224: if (daemon (0, 0) < 0) line 619: conv.conv = my_conv; using gcc