dhcpcd-6.4.3移植记录
来源:互联网 发布:全民k歌刷花软件 编辑:程序博客网 时间:2024/04/30 11:03
下载:http://roy.marples.name/downloads/dhcpcd/
我下载的是dhcpcd-6.4.3
解压后进入目录,执行
./configure --disable-debug \
--enable-fork \
--disable-ipv6 \
--disable-inet6 \
--enable-embedded \
--prefix=./install \
--host=powerpc-linux
然后make;make install
注1:上面powerpc-linux已经做过连接为powerpc-e300c3-linux-gnu-gcc:
ln -s powerpc-e300c3-linux-gnu-gcc powerpc-linux-gcc
注2:如果要静态编译可以添加--enable-static 这些选项都可以通过vi configure来查看
要修改的地方:
①修改 Makefile 中CSTD?= c99 为gnu99
②编译中发现linux/ipv6.h 中有结构体in6_pktinfo重复定义,通过查找发现与netinet/in.h中的定义重复
参照主机中的netinet/in.h,修改编译器的in.h 把#ifdef __USE_GNU 移动到结构体in6_pktinfo定义之上问题解决。
468 469 #ifdef __USE_GNU470 /* IPv6 packet information. */471 struct in6_pktinfo472 {473 struct in6_addr ipi6_addr; /* src/dst IPv6 address */474 unsigned int ipi6_ifindex; /* send/recv interface index */475 };476 477 /* IPv6 MTU information. */478 struct ip6_mtuinfo479 {480 struct sockaddr_in6 ip6m_addr; /* dst address including zone ID */481 uint32_t ip6m_mtu; /* path MTU in host byte order */482 };483 484 485 /* Obsolete hop-by-hop and Destination Options Processing (RFC 2292). */486 extern int inet6_option_space (int __nbytes)487 __THROW __attribute_deprecated__;488 extern int inet6_option_init (void *__bp, struct cmsghdr **__cmsgp,489 int __type) __THROW __attribute_deprecated__;490 extern int inet6_option_append (struct cmsghdr *__cmsg,
0 0
- dhcpcd-6.4.3移植记录
- android 4.0.3 dhcpcd使用方法
- Android2.3 WiFi 移植记录
- uboot_2010.3移植记录0
- Android2.3 WiFi 移植记录
- 树莓派3 设置静态ip dhcpcd vs /etc/network/interfaces
- dhcpcd说明
- VS2005 学习记录3-移植处理
- 手机游戏移植记录.
- uboot移植记录之一
- android wifi 移植记录
- ucgui移植记录
- android wifi 移植记录
- wifi移植全过程记录
- ntfs-3g 移植 记录
- android wifi 移植记录
- 开发板移植记录
- uboo移植记录
- Cocos2dx 3.1.1 之 修改屏幕大小
- 对计算机专业学生的几点建议
- C++笔试面试(算法题集一)
- 日记本
- 明确简单的方法在VPN冰岛
- dhcpcd-6.4.3移植记录
- Android ImageCache图片缓存,使用简单,支持预取,支持多种缓存算法,支持不同网络类型,扩展性强
- 虚函数
- HDU 2112 HDU Today(Dijkstra)
- Oracle字符集(一)
- 生活就像巧克力,永远不知道下一块是什么味道
- 谁动了我的奶酪
- Android之文件存储
- sscanf函数用法详解