Package: palo
Version: 1.9
palo fails to build the ipl boot code:
make[2]: Entering directory `/mnt/sda7/palo/palo-1.10/ipl'
cc -D__ASSEMBLY__ -traditional -c -o crt0.o crt0.S
cc -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -c -o byteio.o
byteio.c
cc -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -c -o elf64.o
../lib/elf64.c
cc -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -c -o ipl.o ipl.c
cc -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -c -o offset.o
offset.c
cc -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -c -o diskpart.o
../lib/diskpart.c
cc -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -c -o ext2.o ext2.c
In file included from /usr/include/linux/percpu_counter.h:13,
from /usr/include/linux/ext2_fs_sb.h:20,
from /usr/include/linux/ext2_fs.h:20,
from ext2.c:23:
/usr/include/linux/percpu.h: In function '__alloc_percpu':
/usr/include/linux/percpu.h:45: error: 'GFP_KERNEL' undeclared (first use in
this function)
/usr/include/linux/percpu.h:45: error: (Each undeclared identifier is reported
only once
/usr/include/linux/percpu.h:45: error: for each function it appears in.)
In file included from /usr/include/linux/ext2_fs.h:20,
from ext2.c:23:
/usr/include/linux/ext2_fs_sb.h: At top level:
/usr/include/linux/ext2_fs_sb.h:49: error: syntax error before 'u32'
/usr/include/linux/ext2_fs_sb.h:51: error: syntax error before '*' token
/usr/include/linux/ext2_fs_sb.h:56: error: syntax error before '}' token
make[2]: *** [ext2.o] Error 1
A previous bug was raised for failure to build the palo executable,
and I'm using the cvs code so I have that fix already.
I'm using linux-kernel-headers 2.6.13+0rc3-2.
The following patch allows the build to complete, but it is not a
particularly clean fix. I tried including gfp.h to get GFP_KERNEL
defined, but then other things are undefined. Possibly palo should
provide its own ext2_fs.h instead.
diff -ur --new-file -x CVS palo/ipl/ext2.c palo-1.10/ipl/ext2.c
--- palo/ipl/ext2.c 2004-05-15 18:18:02.000000000 +0000
+++ palo-1.10/ipl/ext2.c 2005-10-29 14:49:01.169113032 +0000
@@ -13,6 +13,14 @@
* This file has been ported from the DEC 32-bit Linux version
* by David Mosberger ([EMAIL PROTECTED]).
*/
+
+/* The following defines are necessary to satisfy ext2_fs.h and
+ * things it pulls in.
+ */
+typedef unsigned int u32;
+typedef unsigned char u8;
+#define GFP_KERNEL 0
+
#include <linux/stat.h>
#include <linux/types.h>
#include <linux/ext2_fs.h>
Richard
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]