* [linux-lvm] Problems compiling userland LVM on sparc debian unstable
@ 2001-11-09 18:50 Chris Danis
2001-11-12 4:12 ` Patrick Caulfield
0 siblings, 1 reply; 2+ messages in thread
From: Chris Danis @ 2001-11-09 18:50 UTC (permalink / raw)
To: linux-lvm
Hello all,
I'm running Debian unstable on a Sparcstation 20. I've managed to
patch the kernel (2.4.14) fine, but I can't seem to get the userspace
tools to compile. There seems to be some kind of conflict with the
headers, but not knowing much C, I'm a bit at a loss for what is going
on.
The build looks like this:
gallagher% make
make[1]: Entering directory `/home/danish/LVM/1.0.1-rc4/tools'
make[2]: Entering directory `/home/danish/LVM/1.0.1-rc4/tools/lib'
make[3]: Entering directory `/home/danish/LVM/1.0.1-rc4/tools/lib'
gcc -c -pipe -g -O2 -Wall -pg -DDEBUG -I../../tools/lib -I../../tools -I/home/danish/LVM/1.0.1-rc4/tools/lib -o basename.o basename.c
In file included from /usr/include/asm/signal.h:11,
from /usr/include/asm-sparc/processor.h:21,
from /usr/include/asm/processor.h:11,
from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from ../../tools/lib/lvm.h:115,
from ../../tools/lib/liblvm.h:96,
from basename.c:34:
/usr/include/asm-sparc/signal.h:112: conflicting types for `sigset_t'
/usr/include/sys/select.h:38: previous declaration of `sigset_t'
make[3]: *** [basename.o] Error 1
make[3]: Leaving directory `/home/danish/LVM/1.0.1-rc4/tools/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/danish/LVM/1.0.1-rc4/tools/lib'
make[2]: Entering directory `/home/danish/LVM/1.0.1-rc4/tools/man8'
make[3]: Entering directory `/home/danish/LVM/1.0.1-rc4/tools/man8'
make[3]: Leaving directory `/home/danish/LVM/1.0.1-rc4/tools/man8'
make[2]: Leaving directory `/home/danish/LVM/1.0.1-rc4/tools/man8'
make[2]: Entering directory `/home/danish/LVM/1.0.1-rc4/tools'
gcc -c -pipe -g -O2 -Wall -pg -DDEBUG -I../tools/lib -I../tools -I/home/danish/LVM/1.0.1-rc4/tools/lib -o e2fsadm.o e2fsadm.c
In file included from /usr/include/asm/signal.h:11,
from /usr/include/asm-sparc/processor.h:21,
from /usr/include/asm/processor.h:11,
from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from ../tools/lib/lvm.h:115,
from ../tools/lib/liblvm.h:96,
from ../tools/lvm_user.h:41,
from e2fsadm.c:53:
/usr/include/asm-sparc/signal.h:112: conflicting types for `sigset_t'
/usr/include/sys/select.h:38: previous declaration of `sigset_t'
make[2]: *** [e2fsadm.o] Error 1
make[2]: Leaving directory `/home/danish/LVM/1.0.1-rc4/tools'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/danish/LVM/1.0.1-rc4/tools'
make[1]: Entering directory `/home/danish/LVM/1.0.1-rc4'
**********************************
There were errors in your compile.
**********************************
make[1]: *** [.touchbuilt] Error 1
make[1]: Leaving directory `/home/danish/LVM/1.0.1-rc4'
make: *** [all] Error 2
gallagher%
Any advice, of course, would be greatly appreciated.
thanks,
-chris
--
(I subscribe to all lists that I post to;
please do not Cc me on list reply)
Chris Danis
screechco@home.com / danish@debian.org
Debian GNU/Linux - www.debian.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] Problems compiling userland LVM on sparc debian unstable
2001-11-09 18:50 [linux-lvm] Problems compiling userland LVM on sparc debian unstable Chris Danis
@ 2001-11-12 4:12 ` Patrick Caulfield
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Caulfield @ 2001-11-12 4:12 UTC (permalink / raw)
To: linux-lvm
On Fri, Nov 09, 2001 at 07:51:16PM -0500, Chris Danis wrote:
>
> Hello all,
>
> I'm running Debian unstable on a Sparcstation 20. I've managed to
> patch the kernel (2.4.14) fine, but I can't seem to get the userspace
> tools to compile. There seems to be some kind of conflict with the
> headers, but not knowing much C, I'm a bit at a loss for what is going
> on.
>
> /usr/include/asm-sparc/signal.h:112: conflicting types for `sigset_t'
> /usr/include/sys/select.h:38: previous declaration of `sigset_t'
Argh. This is because lvm.h pulls in kernel header files when compiling
user-mode programs, which it really shouldn't.
The following patch should make it compile OK (it works on my SPARC machine
running woody) even though it's more than a little naff!
Index: lvm.h
===================================================================
RCS file: /cvs/LVM/kernel/lvm.h,v
retrieving revision 1.35
diff -u -r1.35 lvm.h
--- lvm.h 2001/11/02 02:11:43 1.35
+++ lvm.h 2001/11/12 10:00:52
@@ -112,7 +112,9 @@
#else
#define __KERNEL__
#include <linux/kdev_t.h>
-#include <linux/list.h>
+struct list_head {
+ struct list_head *next, *prev;
+};
#undef __KERNEL__
#endif /* #ifndef __KERNEL__ */
patrick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-11-12 4:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-09 18:50 [linux-lvm] Problems compiling userland LVM on sparc debian unstable Chris Danis
2001-11-12 4:12 ` Patrick Caulfield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).