Date: Tue, 25 Apr 2000 11:04:36 +0200 From: Luca Berra Subject: Re: [linux-lvm] Tools - Compile Problem Message-ID: <20000425110435.A8218@colombina.comedia.it> Reply-To: bluca@comedia.it References: <200004242244.AAA18723@musashi.stan.de> Mime-Version: 1.0 In-Reply-To: <200004242244.AAA18723@musashi.stan.de> Sender: owner-linux-lvm Errors-To: owner-linux-lvm List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-lvm@msede.com Cc: rgooch@atnf.csiro.au 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@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. > > I wasn't able to find any clues on this in the faq or list archives, > may someone has any ideas on this. > > the environment is: > Kernel 2.2.14 (patched) > Glibc 2.1.1 > egcs 2.91.66 > caldera openlinux 2.3 > > the error message is: > > [...] > make[3]: Entering directory `/usr/local/src/LVM/0.8final/tools/lib' > cc -c -pipe -Wall -O2 -D_GNU_SOURCE -DDEBUG -I/usr/local/src/LVM/0.8final/tools/lib -I/usr/local/src/LVM/0.8final/tools -o basename.o basename.c > In file included from /usr/include/linux/genhd.h:14, > from /usr/local/src/LVM/0.8final/tools/lib/liblvm.h:69, > from basename.c:34: > /usr/include/linux/devfs_fs_kernel.h:57: warning: `struct file_operations' declared inside parameter list > /usr/include/linux/devfs_fs_kernel.h:57: warning: its scope is only this definition or declaration, > /usr/include/linux/devfs_fs_kernel.h:57: warning: which is probably not what you want. > /usr/include/linux/devfs_fs_kernel.h:67: warning: `struct file' declared inside parameter list > /usr/include/linux/devfs_fs_kernel.h:67: warning: `struct inode' declared inside parameter list > /usr/include/linux/devfs_fs_kernel.h:76: warning: `struct inode' declared inside parameter list > In file included from /usr/local/src/LVM/0.8final/tools/lib/liblvm.h:71, > from basename.c:34: > /usr/local/src/LVM/0.8final/tools/lib/lvm.h:393: field `hash' has incomplete type > /usr/local/src/LVM/0.8final/tools/lib/lvm.h:395: parse error before `kdev_t' > /usr/local/src/LVM/0.8final/tools/lib/lvm.h:395: warning: no semicolon at end of struct or union > [...] > > I was able to get around the first errors (struct file_operations, > struct file and struct inode) but not the following ones. I havent > included the remaining 400 lines - but could do so if it will help to > rsolve the problem. > > > Hope someone can give me some help on this, > > tia > /stk > > > > > > -- > Stefan K email: stk@rmi.de > Aix-la-Chapelle fax/data: +49-241-533353 > -- Luca Berra -- bluca@comedia.it Communication Media & Services S.r.l.