CCnut / feed-netkeeper

Openwrt闪讯插件
GNU General Public License v2.0
121 stars 56 forks source link

有点语法问题要改,不然用最新版的源码编译会报错 #25

Open yuhanjin opened 2 years ago

yuhanjin commented 2 years ago

用lean最新版源码编译时,编译器报错

根据报错提示,把 https://github.com/CCnut/feed-netkeeper/blob/LUCI-LUA-UCITRACK/netkeeper-interception/src/netkeeper-interception-c.c 14行和15行的 uint8_t 改成 u_int8_t

https://github.com/CCnut/feed-netkeeper/blob/LUCI-LUA-UCITRACK/netkeeper-interception/src/netkeeper-interception-s.c 15,16行的

void print_hex __P(( unsigned char *, uint8_t,  printer_func, void *));
void print_hex_to_file __P(( unsigned char *, uint8_t,  printer_func, FILE *));

改成

void print_hex(unsigned char *, uint8_t,  printer_func, void *);
void print_hex_to_file(unsigned char *, uint8_t,  printer_func, FILE *);

即可通过编译

急着要用的话可以用我的fork https://github.com/yuhanjin/feed-netkeeper

我感觉是gcc对于c语言的语法标准变严了,有些不太标准的语法在老版本的gcc上可以编译通过,在新版gcc上就直接报错了

由于只编译通过,没测试过实际能不能用,就不并入原代码了,实际能用的话再改把

Rian-l commented 1 year ago

ERROR: package/feed-netkeeper/netkeeper-interception failed to build.

请问我的显示的构建失败,是语法的问题吗?使用lede最新源码编译的。

Rian-l commented 1 year ago

使用的默认分支,需要改为LUCI-LUA-UCITRACK分支吗?

yuhanjin commented 1 year ago

使用的默认分支,需要改为LUCI-LUA-UCITRACK分支吗?

我只尝试过LUCI-LUA-UCITRACK分支,主分支没用过

Rian-l commented 1 year ago

Netkeeper Interception仅显示Specifies the LAN Interface to listen一个选项,是正常的吗?

Rian-l commented 1 year ago

您好,我在使用lede最新源码,使用您的分支编译出来后,wan选择闪讯拨号会显示“未安装协议支持”,请问可能是哪里的问题呢? git clone -b LUCI-LUA-UCITRACK https://github.com/yuhanjin/feed-netkeeper.git 使用的是lua分支。

yuhanjin commented 1 year ago

您好,我在使用lede最新源码,使用您的分支编译出来后,wan选择闪讯拨号会显示“未安装协议支持”,请问可能是哪里的问题呢? git clone -b LUCI-LUA-UCITRACK https://github.com/yuhanjin/feed-netkeeper.git 使用的是lua分支。

我自己已经很久没碰这个项目了,对于编译问题不是很清楚 如果是想实现闪讯自动拨号的话,你可以参考 https://github.com/miao1007/Openwrt-NetKeeper/blob/master/netkeeper4-use-pppoer-server/README.md