This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [2.19] hpux 11.31 does not ship sys/user.h (kernel header) any more
- From: Michael Haubenwallner <michael dot haubenwallner at salomon dot at>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 26 Nov 2008 14:19:46 +0100
- Subject: Re: [2.19] hpux 11.31 does not ship sys/user.h (kernel header) any more
- References: <1227651543.7478.31.camel@salomon-22> <492D1F22.1020509@redhat.com>
On Wed, 2008-11-26 at 10:04 +0000, Nick Clifton wrote:
> Hi Michael,
>
> > HP-UX 11.31 does not ship with <sys/user.h> (and others) any more,
> > because it is a kernel header.
> >
> > Any idea what to do with this error now on hppa2.0w-hp-hpux11.31?
> >
> > binutils-2.19/bfd/hpux-core.c", line 69: error 4036: Can't open include file 'sys/user.h'.
>
> What is needed from this file ? ie if you leave it out, does
> hpux-core.c fail to compile ?
Indeed!
Simply dropping this line works, have successfully built binutils-2.19
on hppa2.0w-hp-hpux11.31 now.
Using HP-cc also requires this patch:
http://sourceware.org/ml/binutils/2008-10/msg00254.html
Thanks!
/haubi/
--- binutils-2.19/bfd/hpux-core.c.orig 2008-11-26 14:04:28.499475000 +0100
+++ binutils-2.19/bfd/hpux-core.c 2008-11-26 14:04:41.549106000 +0100
@@ -66,7 +66,6 @@
#ifdef HPUX_CORE
#include <machine/reg.h>
#endif
-#include <sys/user.h> /* After a.out.h */
#include <sys/file.h>
/* Kludge: There's no explicit mechanism provided by sys/core.h to