linux下ppp安装及“field 'pppol2tp' has incomplete type“解决
来源:互联网 发布:苏57战斗机知乎 编辑:程序博客网 时间:2024/06/06 14:02
PPP官网下载:
https://download.samba.org/pub/ppp/
编译:
root@zhaoxc-VBox:/opt/arm-tools/ppp-2.4.5# ./configure --prefix=/opt/arm-tools/ppp-2.4.5/install-arm/
root@zhaoxc-VBox:/opt/arm-tools/ppp-2.4.5# make CC=arm-none-linux-gnueabi
root@zhaoxc-VBox:/opt/arm-tools/ppp-2.4.5# make install
注1:由于一开始的编译命令式./configure --host=arm-none-linux-gnueabi --prefix=/opt/arm-tools/ppp-2.4.5/install-arm/ 实际上生成的Makefile里面并没有指定编译器,但是make时使用的是gcc,而不是arm-none-linux-gnueabi-gcc,所以在ARM无法运行。报错“pppd -sh: cannot execute binary file ”
注2:make时出错“ppp install "error: field ‘pppol2tp’ has incomplete type”然后搜索原因,在网上找到一位大神的修复方法:在ppp-2.4.5/include/linux/if_pppol2tp.h中添加程序如下:
--- ppp-2.4.5/include/linux/if_pppol2tp.h
+++ ppp-2.4.5/include/linux/if_pppol2tp.h
@@ -32,6 +32,45 @@
+
+struct pppol2tpin6_addr {
+
+
+
+
+
+
+
+};
+
+
+struct pppol2tpv3_addr {
+
+
+
+
+
+
+
+};
+
+struct pppol2tpv3in6_addr {
+
+
+
+
+
+
+
+};
+
复制到ARM上:
按照上面的make好之后,由于make install出错,所以直接在目录中找到如下的四个文件:
chat
复制到ARM的/usr/sbin目录下
建立/etc/ppp目录:
从ppp-2.4.5相应目录中拷贝文件,建立如下目录结构:
/etc/ppp/chap-secrets
/etc/ppp/pap-secrets
/etc/ppp/ip-up
/etc/ppp/ip-down
/etc/ppp/peer/
拨号上网:
见本博客其他文章。
参考网页:https://forums.gentoo.org/viewtopic-p-7100056.html
https://bugs.gentoo.org/attachment.cgi?id=320466&action=edit
- linux下ppp安装及“field 'pppol2tp' has incomplete type“解决
- field has incomplete type
- error: field ‘?’ has incomplete type
- error: field * has incomplete type
- 解决 has incomplete type
- [C++编译]field has incomplete type
- QT编译出错 field has incomplete type
- 编译报错"field has incomplete type"
- 程序编译是出现"field has incomplete type"问题的解决
- 程序编译是出现"field has incomplete type"问题的解决
- error: field `list' has incomplete type的解决!:) [复制链接] 00
- 前向定义导致 程序编译出现"field has incomplete type"问题的解决
- bits/stat.h:91:21: error: field ‘st_atim’ has incomplete type如何解决
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- Git版本管理
- PHP $_SERVER详解
- 洛谷 P1605 迷宫
- ios 扩展插件 插件中响应打开主应用
- JZOJ4951. 【WC模拟】优美的树
- linux下ppp安装及“field 'pppol2tp' has incomplete type“解决
- c编译时的错误:程序中有游离的‘\240’‘\302’‘\XXX 时解决方案
- //这个文档用来记录我的编程常见的失误:
- Part2、入门(一)
- 深入理解DOM节点关系
- servlet_13 Servlet异常处理
- hive的查询注意事项以及优化总结
- 字符串读写函数fgets和fputs
- 在table(0,0)中是实现电子表功能(接上一个Demo)