Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yuhanjin opened this issue May 31, 2022 · 6 comments
Open

Comments

@yuhanjin
Copy link

用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
Copy link

Rian-l commented Sep 26, 2022

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

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

@Rian-l
Copy link

Rian-l commented Sep 26, 2022

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

@yuhanjin
Copy link
Author

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

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

@Rian-l
Copy link

Rian-l commented Sep 26, 2022

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

@Rian-l
Copy link

Rian-l commented Sep 26, 2022

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

@yuhanjin
Copy link
Author

您好,我在使用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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants