新的 glibc 2.16 下该如何才能成功编译 nash 呢?
cd mkinitrd-6.0.51+ LANG=C
+ export LANG
+ unset DISPLAY
+ make LIB=lib
making /root/rpmbuild/BUILD/mkinitrd-6.0.51/version.h
make: Entering directory `/root/rpmbuild/BUILD/mkinitrd-6.0.51/nash'
making /root/rpmbuild/BUILD/mkinitrd-6.0.51/nash/version.h
Package libdhcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdhcp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libdhcp' found
gcc -Wall -g -D_FORTIFY_SOURCE=2 -Wno-unused-function -fPIC -std=gnu99 -D_GNU_SOURCE=1 -I/root/rpmbuild/BUILD/mkinitrd-6.0.51/nash/include -I/root/rpmbuild/BUILD/mkinitrd-6.0.51/bdevid/include -c -o lib.o lib.c
In file included from /usr/include/stdio.h:27:0,
from lib.c:24:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
In file included from lib.h:40:0,
from lib.c:33:
vitals.h:56:19: error: duplicate member 'unique_id'
vitals.h:61:19: error: duplicate member 'unique_id'
vitals.h:66:19: error: duplicate member 'unique_id'
vitals.h:71:19: error: duplicate member 'unique_id'
make: *** Error 1
make: Leaving directory `/root/rpmbuild/BUILD/mkinitrd-6.0.51/nash'
make: *** Error 1
error: Bad exit status from /var/tmp/rpm-tmp.IQLCVL (%build)
修改 MakefIle 将 SUBDIRS = bdevid grubby nash 中的 nash 去掉可以编译成功 mkinitrd
那 nash 该如何编译? 根据提示将 vitals.h 指定行的 unique_id 相关指针去掉(不是全部封杀,也不懂哪重复定义了),把只有 unique_id 指针的函数去掉,然后再编译结果成功编译运行。 :shock:
不是已经换成 dracut 了吗? MGC 2.6 还在用啊,3.0 几时出公开测试版? 原帖由 haulm 于 2013-3-20 10:19 发表 http://forum.linuxfans.org/images/common/back.gif
MGC 2.6 还在用啊,3.0 几时出公开测试版?
公开测试版本还需要等一段时间,至少没有大的bug才能行。
页:
[1]