想在UBUNTU下装PPTP 然后设置下VPN上网 结果安装PPTP过程中出了错,搞不定
我按照INSTALL文件进行安装的
进行make这一步时出现如下错误:
gcc -Wall -O0 -g -c -o pptp.o pptp.c
pptp.c:8:23: error: sys/types.h: No such file or directory
pptp.c:9:24: error: sys/socket.h: No such file or directory
pptp.c:17:17: error: pty.h: No such file or directory
pptp.c:22:24: error: netinet/in.h: No such file or directory
pptp.c:23:23: error: arpa/inet.h: No such file or directory
pptp.c:24:20: error: sys/un.h: No such file or directory
pptp.c:25:19: error: netdb.h: No such file or directory
pptp.c:26:19: error: stdio.h: No such file or directory
pptp.c:27:20: error: string.h: No such file or directory
pptp.c:28:20: error: stdlib.h: No such file or directory
pptp.c:29:20: error: syslog.h: No such file or directory
pptp.c:30:20: error: unistd.h: No such file or directory
pptp.c:31:20: error: signal.h: No such file or directory
pptp.c:32:20: error: setjmp.h: No such file or directory
pptp.c:33:19: error: errno.h: No such file or directory
pptp.c:34:22: error: sys/wait.h: No such file or directory
pptp.c:35:23: error: sys/param.h: No such file or directory
pptp.c:39:20: error: getopt.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:11,
from pptp.c:41:
/usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:122:61: error: limits.h: No
such file or directory
In file included from pptp.c:43:
pptp_callmgr.h:13: warning: ‘struct in_addr’ declared inside parameter list
pptp_callmgr.h:13: warning: its scope is only this definition or declaration,
which is probably not what you want
pptp_callmgr.h:13: warning: ‘struct sockaddr_un’ declared inside parameter l
ist
In file included from pptp.c:44:
pptp_gre.h:8: warning: ‘struct in_addr’ declared inside parameter list
pptp_gre.h:9: error: expected ‘)’ before ‘call_id’
pptp_gre.h:16: error: expected specifier-qualifier-list before ‘uint32_t’
pptp_gre.h:23: error: expected specifier-qualifier-list before ‘uint32_t’
pptp.c:47:25: error: linux/prctl.h: No such file or directory
In file included from pptp_quirks.h:23,
from pptp.c:52:
pptp_msg.h:84: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:94: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:110: error: expected specifier-qualifier-list before ‘u_int8_t’
pptp_msg.h:117: error: expected specifier-qualifier-list before ‘u_int32_t’
pptp_msg.h:123: error: expected specifier-qualifier-list before ‘u_int32_t’
pptp_msg.h:131: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:147: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:160: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:173: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:184: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:194: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:200: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:210: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:222: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:293: error: expected specifier-qualifier-list before ‘u_int8_t’
In file included from pptp_quirks.h:24,
from pptp.c:52:
pptp_ctrl.h:36: error: expected declaration specifiers or ‘...’ before ‘u_i
nt8_t’
pptp_ctrl.h:41: error: expected declaration specifiers or ‘...’ before ‘fd_
set’
pptp_ctrl.h:41: error: expected declaration specifiers or ‘...’ before ‘fd_
set’
pptp_ctrl.h:43: error: expected declaration specifiers or ‘...’ before ‘fd_
set’
pptp_ctrl.h:43: error: expected declaration specifiers or ‘...’ before ‘fd_
set’
pptp_ctrl.h:47: error: expected declaration specifiers or ‘...’ before ‘u_i
nt16_t’
pptp_ctrl.h:47: error: expected declaration specifiers or ‘...’ before ‘u_i
nt16_t’
In file included from pptp.c:53:
pqueue.h:4:18: error: time.h: No such file or directory
pqueue.h:5:22: error: sys/time.h: No such file or directory
In file included from pptp.c:53:
pqueue.h:19: error: field ‘expires’ has incomplete type
pptp.c:67: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:67: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:68: error: expected declaration specifiers or ‘...’ before ‘u_int16_
t’
pptp.c:68: error: expected declaration specifiers or ‘...’ before ‘u_int16_
t’
pptp.c: In function ‘usage’:
pptp.c:74: warning: implicit declaration of function ‘fprintf’
pptp.c:74: warning: incompatible implicit declaration of built-in function ‘f
printf’
pptp.c:74: error: ‘stderr’ undeclared (first use in this function)
pptp.c:74: error: (Each undeclared identifier is reported only once
pptp.c:74: error: for each function it appears in.)
pptp.c:100: warning: implicit declaration of function ‘exit’
pptp.c:100: warning: incompatible implicit declaration of built-in function ‘
exit’
pptp.c: At top level:
pptp.c:103: error: variable ‘localbind’ has initializer but incomplete type
pptp.c:103: error: ‘INADDR_NONE’ undeclared here (not in a function)
pptp.c:103: warning: excess elements in struct initializer
pptp.c:103: warning: (near initialization for ‘localbind’)
pptp.c:113: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘env’
pptp.c: In function ‘sighandler’:
pptp.c:118: warning: implicit declaration of function ‘siglongjmp’
pptp.c:118: error: ‘env’ undeclared (first use in this function)
pptp.c: In function ‘sigstats’:
pptp.c:124: warning: implicit declaration of function ‘syslog’
pptp.c:124: error: ‘LOG_NOTICE’ undeclared (first use in this function)
pptp.c:126: error: ‘gre_stats_t’ has no member named ‘rx_accepted’
pptp.c:127: error: ‘gre_stats_t’ has no member named ‘rx_lost’
pptp.c:128: error: ‘gre_stats_t’ has no member named ‘rx_underwin’
pptp.c:129: error: ‘gre_stats_t’ has no member named ‘rx_overwin’
pptp.c:130: error: ‘gre_stats_t’ has no member named ‘rx_buffered’
pptp.c:131: error: ‘gre_stats_t’ has no member named ‘rx_errors’
pptp.c:132: error: ‘gre_stats_t’ has no member named ‘rx_truncated’
pptp.c:133: error: ‘gre_stats_t’ has no member named ‘rx_invalid’
pptp.c:134: error: ‘gre_stats_t’ has no member named ‘rx_acks’
pptp.c:135: error: ‘gre_stats_t’ has no member named ‘tx_sent’
pptp.c:136: error: ‘gre_stats_t’ has no member named ‘tx_failed’
pptp.c:137: error: ‘gre_stats_t’ has no member named ‘tx_short’
pptp.c:138: error: ‘gre_stats_t’ has no member named ‘tx_acks’
pptp.c:139: error: ‘gre_stats_t’ has no member named ‘tx_oversize’
pptp.c:140: error: ‘gre_stats_t’ has no member named ‘rtt’
pptp.c: In function ‘main’:
pptp.c:151: error: storage size of ‘inetaddr’ isn’t known
pptp.c:153: error: ‘PATH_MAX’ undeclared (first use in this function)
pptp.c:155: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘parent_pid’
pptp.c:155: error: ‘parent_pid’ undeclared (first use in this function)
pptp.c:155: error: ‘child_pid’ undeclared (first use in this function)
pptp.c:155: warning: left-hand operand of comma expression has no effect
pptp.c:156: error: ‘u_int16_t’ undeclared (first use in this function)
pptp.c:156: error: expected ‘;’ before ‘call_id’
pptp.c:162: error: ‘NULL’ undeclared (first use in this function)
pptp.c:167: error: array type has incomplete element type
pptp.c:185: warning: implicit declaration of function ‘getopt_long’
pptp.c:192: warning: implicit declaration of function ‘strncpy’
pptp.c:192: warning: incompatible implicit declaration of built-in function ‘
strncpy’
pptp.c:192: error: ‘optarg’ undeclared (first use in this function)
pptp.c:205: warning: implicit declaration of function ‘atof’
pptp.c:208: warning: incompatible implicit declaration of built-in function ‘
fprintf’
pptp.c:208: error: ‘stderr’ undeclared (first use in this function)
pptp.c:214: warning: incompatible implicit declaration of built-in function ‘
exit’
pptp.c:219: warning: implicit declaration of function ‘strdup’
pptp.c:219: warning: incompatible implicit declaration of built-in function ‘
strdup’
pptp.c:221: warning: implicit declaration of function ‘inet_pton’
pptp.c:221: error: ‘AF_INET’ undeclared (first use in this function)
pptp.c:222: warning: incompatible implicit declaration of built-in function ‘
fprintf’
pptp.c:225: warning: incompatible implicit declaration of built-in function ‘
exit’
pptp.c:228: warning: implicit declaration of function ‘atoi’
pptp.c:236: warning: incompatible implicit declaration of built-in function ‘
fprintf’
pptp.c:238: warning: incompatible implicit declaration of built-in function ‘
exit’
pptp.c:245: warning: incompatible implicit declaration of built-in function ‘
fprintf’
pptp.c:247: warning: incompatible implicit declaration of built-in function ‘
exit’
pptp.c:251: warning: incompatible implicit declaration of built-in function ‘
fprintf’
pptp.c:253: warning: incompatible implicit declaration of built-in function ‘
fprintf’
pptp.c:253: error: ‘stdout’ undeclared (first use in this function)
pptp.c:254: warning: incompatible implicit declaration of built-in function ‘
exit’
pptp.c:167: warning: unused variable ‘long_options’
pptp.c:266: error: ‘optind’ undeclared (first use in this function)
pptp.c:270: error: invalid use of undefined type ‘struct in_addr’
pptp.c:281: error: type of formal parameter 1 is incomplete
pptp.c:283: warning: implicit declaration of function ‘close’
pptp.c:289: warning: implicit declaration of function ‘openpty’
pptp.c:296: warning: implicit declaration of function ‘signal’
pptp.c:296: error: ‘SIGUSR1’ undeclared (first use in this function)
pptp.c:297: error: ‘SIGCHLD’ undeclared (first use in this function)
pptp.c:298: warning: implicit declaration of function ‘getpid’
pptp.c:299: warning: implicit declaration of function ‘fork’
pptp.c:304: error: ‘SIG_DFL’ undeclared (first use in this function)
pptp.c:315: warning: implicit declaration of function ‘pause’
pptp.c:322: warning: implicit declaration of function ‘perror’
pptp.c:326: error: ‘STDIN_FILENO’ undeclared (first use in this function)
pptp.c:328: error: ‘STDOUT_FILENO’ undeclared (first use in this function)
pptp.c:338: error: type of formal parameter 1 is incomplete
pptp.c:341: error: ‘call_id’ undeclared (first use in this function)
pptp.c:341: error: ‘peer_call_id’ undeclared (first use in this function)
pptp.c:341: error: too many arguments to function ‘get_call_id’
pptp.c:345: warning: implicit declaration of function ‘kill’
pptp.c:346: warning: implicit declaration of function ‘sleep’
pptp.c:348: warning: implicit declaration of function ‘daemon’
pptp.c:353: error: ‘STDERR_FILENO’ undeclared (first use in this function)
pptp.c:356: warning: implicit declaration of function ‘snprintf’
pptp.c:356: warning: incompatible implicit declaration of built-in function ‘
snprintf’
pptp.c:357: warning: implicit declaration of function ‘ttyname’
pptp.c:357: warning: format ‘%s’ expects type ‘char *’, but argument 4 has
type ‘int’
pptp.c:362: warning: implicit declaration of function ‘inststr’
pptp.c:363: warning: implicit declaration of function ‘sigsetjmp’
pptp.c:363: error: ‘env’ undeclared (first use in this function)
pptp.c:365: error: ‘SIGINT’ undeclared (first use in this function)
pptp.c:366: error: ‘SIGTERM’ undeclared (first use in this function)
pptp.c:367: error: ‘SIGKILL’ undeclared (first use in this function)
pptp.c:372: warning: implicit declaration of function ‘pptp_gre_copy’
pptp.c:380: warning: incompatible implicit declaration of built-in function ‘
exit’
pptp.c:153: warning: unused variable ‘ttydev’
pptp.c:151: warning: unused variable ‘inetaddr’
pptp.c: At top level:
pptp.c:385: error: return type is an incomplete type
pptp.c:385: error: conflicting types for ‘get_ip_address’
pptp.c:64: error: previous declaration of ‘get_ip_address’ was here
pptp.c: In function ‘get_ip_address’:
pptp.c:386: error: storage size of ‘retval’ isn’t known
pptp.c:387: warning: implicit declaration of function ‘gethostbyname’
pptp.c:387: warning: initialization makes pointer from integer without a cast
pptp.c:388: error: ‘NULL’ undeclared (first use in this function)
pptp.c:389: error: ‘h_errno’ undeclared (first use in this function)
pptp.c:389: error: ‘HOST_NOT_FOUND’ undeclared (first use in this function)
pptp.c:391: error: ‘NO_ADDRESS’ undeclared (first use in this function)
pptp.c:396: error: dereferencing pointer to incomplete type
pptp.c:396: error: ‘AF_INET’ undeclared (first use in this function)
pptp.c:398: warning: implicit declaration of function ‘memcpy’
pptp.c:398: warning: incompatible implicit declaration of built-in function ‘
memcpy’
pptp.c:398: error: dereferencing pointer to incomplete type
pptp.c:399: warning: ‘return’ with a value, in function returning void
pptp.c:386: warning: unused variable ‘retval’
pptp.c: At top level:
pptp.c:403: error: parameter 1 (‘inetaddr’) has incomplete type
pptp.c: In function ‘open_callmgr’:
pptp.c:407: error: storage size of ‘where’ isn’t known
pptp.c:410: error: ‘pid_t’ undeclared (first use in this function)
pptp.c:410: error: expected ‘;’ before ‘pid’
pptp.c:413: warning: implicit declaration of function ‘socket’
pptp.c:413: error: ‘AF_UNIX’ undeclared (first use in this function)
pptp.c:413: error: ‘SOCK_STREAM’ undeclared (first use in this function)
pptp.c:414: warning: implicit declaration of function ‘strerror’
pptp.c:414: error: ‘errno’ undeclared (first use in this function)
pptp.c:414: warning: format ‘%s’ expects type ‘char *’, but argument 5 has
type ‘int’
pptp.c:417: error: type of formal parameter 2 is incomplete
pptp.c:417: error: ‘localbind’ has an incomplete type
pptp.c:417: error: type of formal parameter 3 is incomplete
pptp.c:419: warning: implicit declaration of function ‘connect’
pptp.c:422: warning: implicit declaration of function ‘unlink’
pptp.c:425: error: ‘pid’ undeclared (first use in this function)
pptp.c:434: error: type of formal parameter 1 is incomplete
pptp.c:437: warning: implicit declaration of function ‘waitpid’
pptp.c:407: warning: unused variable ‘where’
pptp.c: At top level:
pptp.c:452: error: parameter 1 (‘inetaddr’) has incomplete type
pptp.c: In function ‘launch_callmgr’:
pptp.c:455: warning: implicit declaration of function ‘inet_ntoa’
pptp.c:455: warning: initialization makes pointer from integer without a cast
pptp.c:457: warning: incompatible implicit declaration of built-in function ‘
snprintf’
pptp.c:459: warning: incompatible implicit declaration of built-in function ‘
exit’
pptp.c: At top level:
pptp.c:464: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:464: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:465: error: expected declaration specifiers or ‘...’ before ‘u_int16
_t’
pptp.c:465: error: expected declaration specifiers or ‘...’ before ‘u_int16
_t’
pptp.c: In function ‘get_call_id’:
pptp.c:467: error: ‘u_int16_t’ undeclared (first use in this function)
pptp.c:467: error: expected ‘;’ before ‘m_call_id’
pptp.c:473: warning: implicit declaration of function ‘write’
pptp.c:473: error: ‘gre’ undeclared (first use in this function)
pptp.c:476: error: ‘pppd’ undeclared (first use in this function)
pptp.c:479: warning: implicit declaration of function ‘read’
pptp.c:479: error: ‘m_call_id’ undeclared (first use in this function)
pptp.c:482: error: ‘m_peer_call_id’ undeclared (first use in this function)
pptp.c:494: error: ‘call_id’ undeclared (first use in this function)
pptp.c:495: error: ‘peer_call_id’ undeclared (first use in this function)
pptp.c: In function ‘launch_pppd’:
pptp.c:519: error: ‘NULL’ undeclared (first use in this function)
pptp.c:520: warning: implicit declaration of function ‘execvp’
make: *** [pptp.o] Error 1
大侠出来帮帮我吧~~~~~