configure does not find BLKGETSIZE64 + HD partitions not found

Frederik Himpe fhimpe at telenet.be
Sun Jan 23 09:30:51 PST 2005


On Sun, 23 Jan 2005 00:42:47 +0100, Kay Sievers wrote:

> On Sat, 2005-01-22 at 18:14 +0100, Frederik Himpe wrote:
>> On Sat, 22 Jan 2005 14:47:35 +0100, Kay Sievers wrote:
>> 
>> > On Sat, 2005-01-22 at 14:17 +0100, Frederik Himpe wrote:
>> >> When I run the configure script of hal 0.4.6, I get this error:
>> >> 
>> >> checking for BLKGETSIZE64... no
>> >> configure: error: BLKGETSIZE64 is not defined

> Looks good so far. What does:
>   [kay at pim udev.kay]$ find /usr/include/ -name "*.h" -print |xargs grep BLKGETSIZE64
>   /usr/include/linux/fs.h:#define BLKGETSIZE64 _IOR(0x12,114,size_t)
>   /usr/include/sys/mount.h:#define BLKGETSIZE64 _IOR(0x12,114,size_t) /* return device size.  */

> print on your box?

$ find /usr/include/ -name "*.h" -print |xargs grep BLKGETSIZE64
/usr/include/sys/mount.h:#define BLKGETSIZE64 _IOR(0x12,114,size_t) /* return device size.  */
/usr/include/linux/fs.h:#define BLKGETSIZE64 _IOR(0x12,114,size_t)      /* return device size in bytes (u64 *arg) */

> 
>> >> With hal 0.4.5, I also have the problem that my hard disk partitions are
>> >> not found. Also, all information for the hard drives (such as vendor and
>> >> model) is defined as "Unknown". I think this is related to the kernel I'm
>> >> running, as IIRC this was working with 2.6.8 Mandrakelinux compiled
>> >> kernel. I've put the output of lshal on
>> >> http://users.telenet.be/fhimpe/hal/lshal.txt
>> >> and verbose output of hald on
>> >> http://users.telenet.be/fhimpe/hal/hal-verbose.txt

> What does:
>   ls -l /sys/block/hda/*

$ ls -l /sys/block/hda/*
-r--r--r--  1 root root 4096 jan 23 18:18 /sys/block/hda/dev
lrwxrwxrwx  1 root root    0 jan 23 18:18 /sys/block/hda/device -> ../../devices/pci0000:00/0000:00:10.0/ide0/0.0/
-r--r--r--  1 root root 4096 jan 23 18:18 /sys/block/hda/range
-r--r--r--  1 root root 4096 jan 23 18:18 /sys/block/hda/removable
-r--r--r--  1 root root 4096 jan 23 18:18 /sys/block/hda/size
-r--r--r--  1 root root 4096 jan 23 18:18 /sys/block/hda/stat

/sys/block/hda/hda1:
total 0
-r--r--r--  1 root root 4096 jan 23 18:18 dev
-r--r--r--  1 root root 4096 jan 23 18:18 size
-r--r--r--  1 root root 4096 jan 23 18:18 start
-r--r--r--  1 root root 4096 jan 23 18:18 stat

/sys/block/hda/hda10:
total 0
-r--r--r--  1 root root 4096 jan 23 18:18 dev
-r--r--r--  1 root root 4096 jan 23 18:18 size
-r--r--r--  1 root root 4096 jan 23 18:18 start
-r--r--r--  1 root root 4096 jan 23 18:18 stat

/sys/block/hda/hda2:
total 0
-r--r--r--  1 root root 4096 jan 23 18:18 dev
-r--r--r--  1 root root 4096 jan 23 18:18 size
-r--r--r--  1 root root 4096 jan 23 18:18 start
-r--r--r--  1 root root 4096 jan 23 18:18 stat

/sys/block/hda/hda5:
total 0
-r--r--r--  1 root root 4096 jan 23 18:18 dev
-r--r--r--  1 root root 4096 jan 23 18:18 size
-r--r--r--  1 root root 4096 jan 23 18:18 start
-r--r--r--  1 root root 4096 jan 23 18:18 stat

/sys/block/hda/hda6:
total 0
-r--r--r--  1 root root 4096 jan 23 18:18 dev
-r--r--r--  1 root root 4096 jan 23 18:18 size
-r--r--r--  1 root root 4096 jan 23 18:18 start
-r--r--r--  1 root root 4096 jan 23 18:18 stat

/sys/block/hda/hda7:
total 0
-r--r--r--  1 root root 4096 jan 23 18:18 dev
-r--r--r--  1 root root 4096 jan 23 18:18 size
-r--r--r--  1 root root 4096 jan 23 18:18 start
-r--r--r--  1 root root 4096 jan 23 18:18 stat

/sys/block/hda/hda8:
total 0
-r--r--r--  1 root root 4096 jan 23 18:18 dev
-r--r--r--  1 root root 4096 jan 23 18:18 size
-r--r--r--  1 root root 4096 jan 23 18:18 start
-r--r--r--  1 root root 4096 jan 23 18:18 stat

/sys/block/hda/hda9:
total 0
-r--r--r--  1 root root 4096 jan 23 18:18 dev
-r--r--r--  1 root root 4096 jan 23 18:18 size
-r--r--r--  1 root root 4096 jan 23 18:18 start
-r--r--r--  1 root root 4096 jan 23 18:18 stat

/sys/block/hda/queue:
total 0
drwxr-xr-x  2 root root    0 jan 23 14:10 iosched/
-r--r--r--  1 root root 4096 jan 23 18:18 max_hw_sectors_kb
-rw-r--r--  1 root root 4096 jan 23 18:18 max_sectors_kb
-rw-r--r--  1 root root 4096 jan 23 18:18 nr_requests
-rw-r--r--  1 root root 4096 jan 23 18:18 read_ahead_kb
-rw-r--r--  1 root root 4096 jan 23 18:18 scheduler



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



More information about the Hal mailing list