configure does not find BLKGETSIZE64 + HD partitions not found

Alexey Morozov alex at idisys.iae.nsk.su
Mon Jan 24 01:40:26 PST 2005


Frederik Himpe writes:

>OK, I guess we have found the culprit:
>
>$ gcc -o blkgetsize blkgetsize.c
>In file included from /usr/include/linux/fs.h:18,
>                 from blkgetsize.c:3:
>/usr/include/linux/prio_tree.h:22: error: syntax error before "pgoff_t"
>/usr/include/linux/prio_tree.h:27: error: syntax 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: (Each undeclared identifier is reported only once
>/usr/include/linux/prio_tree.h:29: error: for each function it appears in.)
>/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)
>
>I guess I'll have to contact glibc/kernel headers packager to sort this
>problem out.
>  
>
Kernel headers included from userspace are fundamentally broken. W/ 
2.6.10 you _CANNOT_ build hal using kernel headers. For example you can 
find the following lines in the 
/usr/include/linux-2.6.10/include/linux/list.h:

#ifdef __KERNEL__
.... /* define some useful stuff */
#else
#warning "don't include kernel headers in userspace"
#endif /* __KERNEL__ */

The solution you needed is called linux-libc-headers (in some 
distributions they're called glibc-kernheaders, glibc-kernelheaders):

I found headers for 2.6 kernel in PLD (Polish Linux distribution): 
http://ep09.pld-linux.org/~mmazur/linux-libc-headers/. You can also 
check http://rpm.pbone.net for their RPMs of the package. I built HAL w/ 
them (linux-libc-headers-2.6.10.0) and it works /almost fine/ for me 
(minor bugs I described so far are unlikely caused by those headers).

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



More information about the Hal mailing list