Tools - Compile Problem
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
Signature · 2 lines
Stefan K email: [email protected] Aix-la-Chapelle fax/data: +49-241-533353
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
Quoted 54 lines · On Tue, Apr 25, 2000 at 12:44:26AM +0200, [email protected] 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.3the 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.obasename.cIn 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: `structfile_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: fieldhash' has incomplete type /usr/local/src/LVM/0.8final/tools/lib/lvm.h:395: parse error beforekdev_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
/stkSignature · 2 lines
Stefan K email: [email protected] Aix-la-Chapelle fax/data: +49-241-533353
Signature · 2 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l.
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 trip.
thanx and
best regards
Stefan
Quoted 20 lines · Luca Berra
This is a problem with devfs, i believe.
Actually it is due to kernel includes residing into/usr/includewhere they should not be.anyway i addedd
#ifdef__KERNEL__
and
#endif /*__KERNEL__*/
at the beginning and end of/usr/include/linux/devfs_fs_kernel.hi CCed Richard Gooch, author of devfs so maybe he can comment on this
Regards,
LucaQuoted 4 lines · On Tue, Apr 25, 2000 at 12:44:26AM +0200, [email protected] wrote:
Hello,
i have problems compiling the user space tools from lvm0.8final, I have already applied patch-lvm_0.8final-2 cleanly.
Signature · 2 lines
Stefan K email: [email protected] Aix-la-Chapelle fax/data: +49-241-533353