2.4.2-ac18 and lvm_0.9

From: Byeong-ryeol Kim (jinbo21@hananet.net)
Date: Sun Mar 18 2001 - 20:43:39 EST


I met following errors errors when compiling lvm_0.9(lvm-0.9 in latest
Rawhide) with gcc-2.95.3-test5 under kernel-2.4.2-ac18 and glibc-2.2.2.

....
make[1]: Entering directory `/usr/src/redhat/BUILD/LVM/0.9/tools'
make[2]: Entering directory `/usr/src/redhat/BUILD/LVM/0.9/tools/lib'
make[3]: Entering directory `/usr/src/redhat/BUILD/LVM/0.9/tools/lib'
gcc -c -pipe -D_GNU_SOURCE -O2 -march=i686 -mcpu=i686 -pipe -Wall \
-I../../tools/lib -I../../tools -o basename.o basename.c
In file included from /usr/include/linux/prefetch.h:13,
                 from /usr/include/linux/list.h:6,
                 from ../../tools/lib/lvm.h:98,
                 from ../../tools/lib/liblvm.h:90,
                 from basename.c:34:
/usr/include/asm/processor.h:47: parse error before `u16'
/usr/include/asm/processor.h:47: warning: no semicolon at end of struct \
or union
/usr/include/asm/processor.h:56: parse error before `}'
make[3]: *** [basename.o] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/LVM/0.9/tools/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/LVM/0.9/tools/lib'
make[2]: Entering directory `/usr/src/redhat/BUILD/LVM/0.9/tools/man8'
make[3]: Entering directory `/usr/src/redhat/BUILD/LVM/0.9/tools/man8'
make[3]: Leaving directory `/usr/src/redhat/BUILD/LVM/0.9/tools/man8'
make[2]: Leaving directory `/usr/src/redhat/BUILD/LVM/0.9/tools/man8'
make[2]: Entering directory `/usr/src/redhat/BUILD/LVM/0.9/tools'
gcc -c -pipe -D_GNU_SOURCE -O2 -march=i686 -mcpu=i686 -pipe -Wall \
-I../tools/lib -I../tools -o e2fsadm.o e2fsadm.c
In file included from /usr/include/linux/prefetch.h:13,
                 from /usr/include/linux/list.h:6,
                 from ../tools/lib/lvm.h:98,
                 from ../tools/lib/liblvm.h:90,
                 from ../tools/lvm_user.h:44,
                 from e2fsadm.c:45:
/usr/include/asm/processor.h:47: parse error before `u16'
/usr/include/asm/processor.h:47: warning: no semicolon at end of \
struct or union
/usr/include/asm/processor.h:56: parse error before `}'
make[2]: *** [e2fsadm.o] Error 1
....

This is true to 2.4.2-20, too.
After applying folling patch to kernel source, the compile process of
lvm-0.9 went through flawlessly. I guess it is a typo introduced into
2.4.2-ac18 or so.

--- linux/include/asm/processor.h.orig Tue Mar 13 03:55:41 2001
+++ linux/include/asm/processor.h Tue Mar 13 03:52:16 2001
@@ -44,7 +44,7 @@
         char x86_model_id[64];
         int x86_cache_size; /* in KB - valid for CPUS which support this
                                     call */
- u16 clockmul; /* Clock multiplier */
+ __u16 clockmul; /* Clock multiplier */
         int fdiv_bug;
         int f00f_bug;
         int coma_bug;

-- 
 "Where there is a will, there is a way."  jinbo21@hananet.net
  For the future of you and me!            hitel: jinbo21

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 23 2001 - 21:00:11 EST