因为项目需求,需求移植linux-2.6.14版别的内核,PC机上的linux是Ubuntu11.04,在运用make xconfig编译内核时呈现如下过错:
root@czu:~/桌面/socket/linux-2.6.14# make xconfig
HOSTCXX scripts/kconfig/qconf.o
In file included from scripts/kconfig/qconf.cc:24:0:
scripts/kconfig/qconf.h:25:18: 过错: 有剩余的限制‘ConfigSettings::’在成员‘readSizes’上 [-fpermissive]
scripts/kconfig/qconf.h:26:7: 过错: 有剩余的限制‘ConfigSettings::’在成员‘writeSizes’上 [-fpermissive]
scripts/kconfig/qconf.h:127:7: 过错: 有剩余的限制‘ConfigList::’在成员‘updateMenuList’上 [-fpermissive]
make[1]: *** [scripts/kconfig/qconf.o] 过错 1
make: *** [xconfig] 过错 2
HOSTCXX scripts/kconfig/qconf.o
In file included from scripts/kconfig/qconf.cc:24:0:
scripts/kconfig/qconf.h:25:18: 过错: 有剩余的限制‘ConfigSettings::’在成员‘readSizes’上 [-fpermissive]
scripts/kconfig/qconf.h:26:7: 过错: 有剩余的限制‘ConfigSettings::’在成员‘writeSizes’上 [-fpermissive]
scripts/kconfig/qconf.h:127:7: 过错: 有剩余的限制‘ConfigList::’在成员‘updateMenuList’上 [-fpermissive]
make[1]: *** [scripts/kconfig/qconf.o] 过错 1
make: *** [xconfig] 过错 2
现已安装了qt库,之前移植Linux-2.6.30.4版别内核时没有呈现这样的过错,先用make menuconfig吧,今后有时间再深入研究,也顺边学习一下。