Compiling Hal from CVS with 2.6.9 kernel

Dean Jones dj at cleancode.org
Thu Nov 11 21:58:28 PST 2004


Ok, got the network card working.  I'm following the directions on the
hal site on how to compile the source from CVS. Anyway, Here are the
compiling errors:

make[3]: Entering directory `/root/hal/hal/hald'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_SYSCONF_DIR=\""/etc"\"
-DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\"
-DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LOCALSTATEDIR=
\""/usr/var"\" -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include      -g -O2 -Wall
-Wchar-subscripts -Wmissing-declarations -Wnested-externs
-Wpointer-arith -Wcast-align -Wsign-compare -MT block_class_device.o -MD
-MP -MF ".deps/block_class_device.Tpo" -c -o block_class_device.o `test
-f 'linux/block_class_device.c' || echo './'`linux/block_class_device.c;
\
then mv -f ".deps/block_class_device.Tpo" ".deps/block_class_device.Po";
else rm -f ".deps/block_class_device.Tpo"; exit 1; fi
In file included from /usr/include/asm/byteorder.h:57,
                 from /usr/include/linux/cdrom.h:14,
                 from linux/block_class_device.c:48:
/usr/include/linux/byteorder/little_endian.h:43: error: parse error
before "__cpu_to_le64p"
/usr/include/linux/byteorder/little_endian.h: In function
`__cpu_to_le64p':
/usr/include/linux/byteorder/little_endian.h:45: error: `__le64'
undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h:45: error: (Each undeclared
identifier is reported only once
/usr/include/linux/byteorder/little_endian.h:45: error: for each
function it appears in.)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:47: error: parse error
before '*' token
/usr/include/linux/byteorder/little_endian.h: In function
`__le64_to_cpup':
/usr/include/linux/byteorder/little_endian.h:49: error: `p' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:51: error: parse error
before "__cpu_to_le32p"
/usr/include/linux/byteorder/little_endian.h: In function
`__cpu_to_le32p':
/usr/include/linux/byteorder/little_endian.h:53: error: `__le32'
undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:55: error: parse error
before '*' token
/usr/include/linux/byteorder/little_endian.h: In function
`__le32_to_cpup':
/usr/include/linux/byteorder/little_endian.h:57: error: `p' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:59: error: parse error
before "__cpu_to_le16p"
/usr/include/linux/byteorder/little_endian.h: In function
`__cpu_to_le16p':
/usr/include/linux/byteorder/little_endian.h:61: error: `__le16'
undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:63: error: parse error
before '*' token
/usr/include/linux/byteorder/little_endian.h: In function
`__le16_to_cpup':
/usr/include/linux/byteorder/little_endian.h:65: error: `p' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:67: error: parse error
before "__cpu_to_be64p"
/usr/include/linux/byteorder/little_endian.h: In function
`__cpu_to_be64p':
/usr/include/linux/byteorder/little_endian.h:69: error: `__be64'
undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h:69: error: parse error
before "__swab64p"
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:71: error: parse error
before '*' token
/usr/include/linux/byteorder/little_endian.h: In function
`__be64_to_cpup':
/usr/include/linux/byteorder/little_endian.h:73: error: `p' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:75: error: parse error
before "__cpu_to_be32p"
/usr/include/linux/byteorder/little_endian.h: In function
`__cpu_to_be32p':
/usr/include/linux/byteorder/little_endian.h:77: error: `__be32'
undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h:77: error: parse error
before "__swab32p"
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:79: error: parse error
before '*' token
/usr/include/linux/byteorder/little_endian.h: In function
`__be32_to_cpup':
/usr/include/linux/byteorder/little_endian.h:81: error: `p' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:83: error: parse error
before "__cpu_to_be16p"
/usr/include/linux/byteorder/little_endian.h: In function
`__cpu_to_be16p':
/usr/include/linux/byteorder/little_endian.h:85: error: `__be16'
undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h:85: error: parse error
before "__swab16p"
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:87: error: parse error
before '*' token
/usr/include/linux/byteorder/little_endian.h: In function
`__be16_to_cpup':
/usr/include/linux/byteorder/little_endian.h:89: error: `p' undeclared
(first use in this function)
In file included from /usr/include/linux/fs.h:19,
                 from linux/block_class_device.c:49:
/usr/include/linux/prio_tree.h: At top level:
/usr/include/linux/prio_tree.h:22: error: parse error before "pgoff_t"
/usr/include/linux/prio_tree.h:27: error: parse error before "pgoff_t"
/usr/include/linux/prio_tree.h: In function `prio_tree_iter_init':
/usr/include/linux/prio_tree.h:29: error: `iter' undeclared (first use
in this function)
/usr/include/linux/prio_tree.h:29: error: `root' undeclared (first use
in this function)
/usr/include/linux/prio_tree.h:30: error: `r_index' undeclared (first
use in this function)
make[3]: *** [block_class_device.o] Error 1
make[3]: Leaving directory `/root/hal/hal/hald'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/hal/hal/hald'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/hal/hal'
make: *** [all] Error 2

On Fri, 2004-11-12 at 00:45 -0500, Dean Jones wrote:
> Hi,
> 
> I'm having some troubles compiling HAL from CVS with the 2.6.9 kernel...
> It seems to be having troubles with a linux kernel header
> "/usr/include/linux/byteorder/little_endian.h.  I can't really give the
> output because it's on another PC and the network card isn't working on
> it right now and it's an amazing amount of errors the scroll down the
> screen...
> 
> Is hal safe to compile from CVS?  Or do people submit code to the CVS
> server that isn't compilable always?
> 
> Dean
> 
> 
> _______________________________________________
> hal mailing list
> hal at freedesktop.org
> http://freedesktop.org/mailman/listinfo/hal

_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list