compiler-errors - 在ubuntu上编译内核时出错

标签 compiler-errors linux-kernel kernel

我正在Windows 7 pc上安装的vmware上使用ubuntu 12.04 ...我正在尝试编译linux-2.6.0源文件(从kernel.org下载)...我按照网络上的指示进行操作,但是有问题...

所以我搜索了一下并碰到了this ...我按照答案中的说明进行操作,但是仍然执行了第二步之后,当我继续执行第三步(make menuconfig)时,出现以下错误。

make[1]: `scripts/fixdep' is up to date.
HOSTCC  scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91:21: error: static declaration of ‘current_menu’ follows
non-static declaration
scripts/kconfig/lkc.h:63:21: note: previous declaration of ‘current_menu’ was here
scripts/kconfig/mconf.c: In function ‘show_textbox’:
scripts/kconfig/mconf.c:553:7: warning: ignoring return value of ‘write’, declared with
attribute warn_unused_result [-Wunused-result]
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:225:6: warning: ignoring return value of ‘pipe’, declared with
attribute warn_unused_result [-Wunused-result]
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2

使用make xconfig时发生相同的错误...请告诉我应该怎么做?提前致谢。

最佳答案

Here is the answer
只是从scripts/kconfig/mconf.c中的“静态结构菜单* current_ment”行中删除“static”关键字

关于compiler-errors - 在ubuntu上编译内核时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10828208/

相关文章:

c - 使用内核模块中的 sysctl 接口(interface)

c - 在 Debian 中显示进程名称和 pid

macos - 在Mac上安装ige-mac-integration时出错

linux - Linux 上无法识别的 USB 设备

Linux 内核 makefile cscope 目标

linux - Linux 上的可清除内存区域

c - tcp_cubic.c 中的 printk

javascript - const utf8Encoder = new TextEncoder();在 Node js

C++ 错误 : 'x' is not a constant expression, 如何修复?

c - 推荐的 C 的 GCC 警告选项