我在一个基于Linux的路由器上工作,我用inotify_init()编写了监控文件的代码。交叉编译是在没有警告或错误消息的情况下完成的,但是当我尝试执行代码时,它显示一个类似function not implemented的错误
if ( (fp = inotify_init()) < 0 ) {
printf("something went wrong with inotify_init()! %s\n", strerror(errno));
printf("#### 1 can't open file\n");
g
我需要在我的系统(路由器)中禁用IPv6重定向,我得到了以下错误:
sysctl -w net.ipv6.conf.all.send_redirects=0
sysctl: cannot stat /proc/sys/net/ipv6/conf/all/send_redirects: No such file or directory
root@hostname:~$ uname -a
Linux hostname 4.4.0-131-generic #157-Ubuntu SMP Thu Jul 12 15:51:36 UTC 2018 x86_64 x86_64 x86_64 GNU/L
我正在尝试为MIPS系统(路由器)构建一个交叉编译器,但遇到了一些问题。到目前为止,我已经尝试了builtroot和crosstool ng,但没有成功,所以我想确保我这样做是正确的。
我的测试代码(hello.c)编译成功,但在目标上失败,出现以下错误:
Syntax error: "(" unexpected
系统信息-->
cat version
Linux version 2.6.31 (june.lin@dnixm-compiler3) (gcc version 4.3.3 (GCC) ) #1 The Dec 18 16:24:21
cat cpuinfo