找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 353|回复: 4

编译openflow1.3报错 openwrt

[复制链接]
用的lede的源码,编译openflow1.3是报错,openflow1.3的github地址是[color=rgb(0, 153, 0) !important]https:/[color=rgb(0, 136, 0) !important]/github.com/[color=rgb(0, 153, 0) !important]CPqD/openflow-openwrt.git
报错信息如下:
下载dl库时:


单线程编译时:


有没有帅哥靓女解答下


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
编译openflow-1.3需要进行2处修改:
1. 修改Makefile,修复无法下载源码的问题:
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ PKG_RELEASE:=1
PKG_SOURCE:=open_wrt.zip
PKG_SOURCE_URL:= https://github.com/CPqD/ofsoftswitch13/archive/
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME_SHORT)-open_wrt
+PKG_HASH:=d531c406a0f61d0646579c1c0c234d240f12231f3325ea68fae00c10e96553ba

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/kernel.mk

2.在patches目录里添加999-fix-build.patch补丁文件,修复编译报错:
--- a/lib/netdev.c
+++ b/lib/netdev.c
@@ -71,7 +71,6 @@
#include <fcntl.h>
#include <arpa/inet.h>
#include <inttypes.h>
-#include <linux/if_tun.h>
#include <linux/if_packet.h>


@@ -95,10 +94,6 @@
#define s64 __s64
#endif

-#include <linux/ethtool.h>
-#include <linux/rtnetlink.h>
-#include <linux/sockios.h>
-#include <linux/version.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
@@ -110,6 +105,11 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <linux/ethtool.h>
+#include <linux/rtnetlink.h>
+#include <linux/sockios.h>
+#include <linux/version.h>
+#include <linux/if_tun.h>

#include "fatal-signal.h"
#include "list.h"
--- a/udatapath/action_set.c
+++ b/udatapath/action_set.c
@@ -179,7 +179,7 @@ action_set_write_actions(struct action_s
     for (i=0; i<actions_num; i++) {
         action_set_write_action(set, actions);
     }
-    VLOG_DBG_RL(LOG_MODULE, &rl, action_set_to_string(set));
+    VLOG_DBG_RL(LOG_MODULE, &rl, "%s", action_set_to_string(set));
}

void
--- a/udatapath/dp_buffers.c
+++ b/udatapath/dp_buffers.c
@@ -64,6 +64,8 @@ static struct vlog_rate_limit rl = VLOG_

#define OVERWRITE_SECS  1

+#define PATH_MAX 4096
+
struct packet_buffer {
     struct packet *pkt;
     uint32_t       cookie;

点评

你的回复有乱码的地方,可以发文件吗或者价格好友交流下  详情 回复 发表于 2023-10-15 13:01
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
13062678135 发表于 2023-10-15 11:20
编译openflow-1.3需要进行2处修改:
1. 修改Makefile,修复无法下载源码的问题:
--- a/Makefile

你的回复有乱码的地方,可以发文件吗或者价格好友交流下

点评

把这个包解压到openwrt/package目录里。编译即可。  详情 回复 发表于 2023-10-15 14:05
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

shiquan_1 发表于 2023-10-15 13:01
你的回复有乱码的地方,可以发文件吗或者价格好友交流下

把这个包解压到openwrt/package目录里。编译即可。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

好的,我试下,非常感谢  详情 回复 发表于 2023-10-15 14:16
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
13062678135 发表于 2023-10-15 14:05
把这个包解压到openwrt/package目录里。编译即可。

好的,我试下,非常感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 10:13

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表