[linux-lvm] Tools - Compile Problem

stk at rmi.de stk at rmi.de
Wed Apr 26 09:37:52 UTC 2000

Hello Luca,

thanks for your thoughts.
Meanwhile i have got the user tools to compile.

I added your #ifdef statement in /usr/include/devfs_kernel.h , 
and additionnally  i needed to add the following :

in /usr/include/linux/genhd.h

 #ifdef __KERNEL__
 #include <linux/devfs_kernel.h>
 #endif /* __KERNEL__ */

and in 0.8final/tools/lib/liblvm.h

 typedef struct devfs_entry * devfs_handle_t;

with this changes the user tools compiled cleanly,
but I still need to check the functionality - which
will happen early next week, when i return from a short

thanx and
best regards


On 25 Apr, Luca Berra wrote:
> This is a problem with devfs, i believe.
> Actually it is due to kernel includes residing into /usr/include
> where they should not be.
> anyway i addedd 
> #ifdef __KERNEL__
> and
> #endif  /*  __KERNEL__  */
> at the beginning and end of /usr/include/linux/devfs_fs_kernel.h
> i CCed Richard Gooch, author of devfs so maybe he can comment on this
> Regards,
> Luca
> On Tue, Apr 25, 2000 at 12:44:26AM +0200, stk at rmi.de wrote:
>> Hello,
>> i have problems compiling the user space tools from lvm0.8final,
>> I have already applied patch-lvm_0.8final-2 cleanly.

 Stefan K                                       email:     stk at rmi.de
 Aix-la-Chapelle                                fax/data: +49-241-533353

More information about the linux-lvm mailing list