【开发者测试/功能测试/代码检视】
iSula版本信息及项目分支
操作系统版本及编译器版本
开发板:rk3399pro
系统:debian9
编译器:aarch64-linux-gnu-
问题描述及重现步骤
在rk3399pro上编译"lxc", autogen.sh configure后输出如下
----------------------------
Binaries
- Command Line Tools:
- lxc-attach: yes
- lxc-autostart: yes
- lxc-cgroup: yes
- lxc-checkpoint: yes
- lxc-config: yes
- lxc-console: yes
- lxc-copy: yes
- lxc-create: yes
- lxc-destroy: yes
- lxc-device: yes
- lxc-execute: yes
- lxc-freeze: yes
- lxc-info: yes
- lxc-ls: yes
- lxc-monitor: yes
- lxc-snapshot: yes
- lxc-start: yes
- lxc-stop: yes
- lxc-top: yes
- lxc-unfreeze: yes
- lxc-unshare: yes
- lxc-wait: yes
- liblxc Commands:
- lxc-checkconfig: yes
- lxc-update-config: yes
- lxc-init: yes
- lxc-monitord: yes
- lxc-user-nic: yes
- lxc-usernsexec: yes
Environment:
- compiler: gcc
- distribution: debian
- init script type(s): upstart,systemd
- rpath: no
- OpenSSL: yes
- Bash integration: yes
Security features:
- Apparmor: no
- Linux capabilities: no
- seccomp: no
- SELinux: no
- memfd rexec: yes
PAM:
- PAM module: no
- cgroup PAM module:
Documentation:
- examples: yes
- API documentation: no
- user documentation: no
Debugging:
- tests: no
- ASAN: no
- mutex debugging: no
Paths:
- Logs in configpath: no
Thread-safety:
- enforce: yes
Dlog:
- enable: no
然后在make时,报了如下错误:
conf.c: In function ‘lxc_drop_caps’:
conf.c:5307:7: error: ‘caplist’ undeclared (first use in this function)
free(caplist);
^~~~~~~
conf.c:5307:7: note: each undeclared identifier is reported only once for each function it appears in
conf.c:5308:9: error: ‘ret’ undeclared (first use in this function)
return ret;
^~~
conf.c:5306:1: error: label ‘out’ defined but not used [-Werror=unused-label]
out:
^~~
conf.c:5309:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
Makefile:2001: recipe for target 'liblxc_la-conf.lo' failed
make[3]: *** [liblxc_la-conf.lo] Error 1
make[3]: Leaving directory '/home/linaro/lxc/lxc-4.0.3/src/lxc'
Makefile:434: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/linaro/lxc/lxc-4.0.3/src'
Makefile:373: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/linaro/lxc/lxc-4.0.3/src'
Makefile:531: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
不知道是不是我这边缺少什么东西吗
预期结果