Re: gradm fails to build on sparc
On Thu, Jan 15, 2004 at 12:07:05AM -0500, Daniel Jacobowitz wrote:
> On Wed, Jan 14, 2004 at 11:01:53PM -0600, Steve Langasek wrote:
> > On Wed, Jan 14, 2004 at 10:29:20PM -0500, Ben Collins wrote:
> > > On Thu, Jan 15, 2004 at 12:22:36AM +0100, martin f krafft wrote:
> > > > Hi there,
> >
> > > > please have a look at
> >
> > > > http://buildd.debian.org/fetch.php?&pkg=gradm&ver=1.9.13-1&arch=sparc&stamp=1073283146&file=log&as=raw
> >
> > > > and tell me what's going on here... the package builds fine
> > > > everywhere else... just not sparc.
> >
> > > > I am clueless...
> >
> > > It's a bug in asm-sparc/elf.h. It includes headers that it shouldn't
> > > when __KERNEL__ is undefined. I've sent a patch for this already to
> > > Dave. It should be in 2.6.1 when that releases. The package that
> > > provides those headers will need to be updated when that is available.
> >
> > Does this mean it's something that can be fixed in our
> > linux-kernel-headers package in advance of 2.6.1's release?
>
> Yes, and in fact since we are not going to update the kernel version
> the headers come from again before sarge, a bug against linux-kernel-headers
> is the only way this will get fixed. I had not heard of this problem
> before; someone please file one.
Pretty easy to fix. Here's the diff.
--- /usr/include/asm-sparc/elf.h~ 2004-01-10 15:57:54.000000000 -0500
+++ /usr/include/asm-sparc/elf.h 2004-01-16 11:56:51.002957991 -0500
@@ -8,8 +8,11 @@
#include <linux/config.h>
#include <asm/ptrace.h>
+
+#ifdef __KERNEL__
#include <asm/mbus.h>
#include <asm/uaccess.h>
+#endif
/*
* Sparc section types
--
Debian - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
Reply to: