6 月 052015
参考url:https://wiki.archlinux.org/index.php/PPTP_Server_%28%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%29
如果源码安装pptpd报错的话.记得安装ppp-devel
gcc -O2 -fno-builtin -Wall -DSBINDIR='"/usr/local/sbin"' -o bcrelay bcrelay.o
for d in plugins; do make -w -C $d all; done
make[2]: Entering directory `/usr/local/src/pptpd-1.4.0/plugins'
gcc -o pptpd-logwtmp.so -shared -O2 -g -I.. -I../../include -fPIC pptpd-logwtmp.c -lutil
pptpd-logwtmp.c:15:23: fatal error: pppd/pppd.h: No such file or directory
#include <pppd/pppd.h>
^
compilation terminated.
make[2]: *** [pptpd-logwtmp.so] Error 1
make[2]: Leaving directory `/usr/local/src/pptpd-1.4.0/plugins'
make[1]: *** [all-local] Error 2
make[1]: Leaving directory `/usr/local/src/pptpd-1.4.0'
make: *** [all] Error 2
[root <at> stylmark-fw2 pptpd-1.4.0]#
I wiped all the 1.4.0 stuff and tried the same operation with 1.3.4 and make ran to completion. Does 1.4.0
have a new prerequisite that 1.3.4 doesn't need?
James Cameron | 18 Feb 21:59 2014
Re: make blows up with pptpd-1.4.0.tar.gz on Fedora 20
Yes, 1.4.0 needs ppp-devel on Fedora. Because 1.3.4 incorrectly included a pppd.h and would fail at run if the version of ppp package did not match.