This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: SPARC and header files



Hi,

On Thu, Mar 16, Jakub Jelinek wrote:

> On Thu, Mar 16, 2000 at 04:06:35PM +0100, Thorsten Kukuk wrote:
> > 
> > Hi,
> > 
> > On SPARC, the following code:
> > 
> > #define _GNU_SOURCE
> > #include <sys/ptrace.h>
> > #include <signal.h>
> > 
> > does not compile. signal includes bits/sigcontext.h, which includes
> > on SPARC asm/ptrace.h -> conflict with sys/ptrace.h
> 
> If you use 2.3.4x+ kernel headers, you should be ok.

Hm, everybody is using 2.2.14 or 2.2.15preXX today.

> sigcontext.h has
> #ifdef __KERNEL__
> #include <asm/ptrace.h>
> #endif
> 
> glibc 2.2 bits/ptrace.h in addition to this should fix
> #include <signal.h>
> #include <sys/ptrace.h>
> 
> no matter which kernel headers you use, but the case you pointed out is
> broken still.
> The sigcontext.h header you posted is wrong though. I'll try to get to it
> today and write relevant bits/ sparc headers (and run them through the
> namespace checker).

What's wrong with it ? I have copied the used part from the previous
included kernel headers. 

  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/       kukuk@suse.de
SuSE GmbH            Schanzaeckerstr. 10            90443 Nuernberg
Linux is like a Vorlon.  It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.

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