This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [2.19] hpux 11.31 does not ship sys/user.h (kernel header) any more


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]