On Mon, Jun 14, 2010 at 6:47 PM, Karel Zak <kzak@xxxxxxxxxx> wrote: > On Thu, Jun 10, 2010 at 06:42:20PM +0900, Masanari Iida wrote: >> As I compile util-linux-ng-2.18-rc1 on RHEL5 box, >> it failed to compile on lscpu >> >> Making all in sys-utils >> make[2]: Entering directory `/tmp/util-linux-ng-2.18-rc1/sys-utils' >> CCLD lscpu >> lscpu.o: In function `add_cpuset_to_array': >> /tmp/util-linux-ng-2.18-rc1/sys-utils/lscpu.c:503: undefined reference >> to `CPU_EQUAL_S' > > Fixed. Please, try > > git clone git://git.kernel.org/pub/scm/utils/util-linux-ng/util-linux-ng.git > cd util-linux-ng > ./autogen.sh > ./configure > make -C sys-utils/ lscpu Hello Karel, On RHEL5 system, autoconf and automake need to be updated from the source, before I run autogen.sh. If I want to compile it from tar ball, I don't need to run autogen.sh, so we don't need to worry about this. Still I see following error message :( make[2]: Entering directory `/tmp/util-linux-ng/sys-utils' gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -include ../config.h -I../include -DLOCALEDIR=\"/usr/share/locale\" -fsigned-char -g -O2 -MT lscpu.o -MD -MP -MF .deps/lscpu.Tpo -c -o lscpu.o lscpu.c lscpu.c: In function 'add_cpuset_to_array': lscpu.c:502: error: '__bits' undeclared (first use in this function) lscpu.c:502: error: (Each undeclared identifier is reported only once lscpu.c:502: error: for each function it appears in.) make[2]: *** [lscpu.o] Error 1 make[2]: Leaving directory `/tmp/util-linux-ng/sys-utils' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/util-linux-ng' make: *** [all] Error 2 FYI, I can compile the same latest tree on Fedora11(32bit). Regards, Masanari Iida -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html