From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13643 invoked by alias); 20 Oct 2004 15:47:15 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13608 invoked from network); 20 Oct 2004 15:47:13 -0000 Received: from unknown (HELO walton.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org with SMTP; 20 Oct 2004 15:47:13 -0000 Received: from elgar.sibelius.xs4all.nl (elgar.sibelius.xs4all.nl [192.168.0.2]) by walton.sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id i9KFlAT7011886; Wed, 20 Oct 2004 17:47:10 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (localhost [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6) with ESMTP id i9KFl9XL022715; Wed, 20 Oct 2004 17:47:09 +0200 (CEST) (envelope-from kettenis@elgar.sibelius.xs4all.nl) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6/Submit) id i9KFl8i6022712; Wed, 20 Oct 2004 17:47:08 +0200 (CEST) Date: Wed, 20 Oct 2004 15:47:00 -0000 Message-Id: <200410201547.i9KFl8i6022712@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: brobecker@gnat.com CC: gdb-patches@sources.redhat.com In-reply-to: <20041020152441.GD3527@gnat.com> (message from Joel Brobecker on Wed, 20 Oct 2004 08:24:41 -0700) Subject: Re: gdbserver build broken on amd64-linux References: <20041020053216.GB3527@gnat.com> <20041020142645.GA24010@nevyn.them.org> <20041020152441.GD3527@gnat.com> X-SW-Source: 2004-10/txt/msg00338.txt.bz2 Date: Wed, 20 Oct 2004 08:24:41 -0700 From: Joel Brobecker > How about ths instead? > > #ifndef ARCH_GET_FS > #define ARCH_SET_GS 0x1001 > #define ARCH_SET_FS 0x1002 > #define ARCH_GET_FS 0x1003 > #define ARCH_GET_GS 0x1004 > #endif That's better, since it's dangerous to include kernel headers directly. Yes, that should work too. I'm curious as to why these macros are not defined for me, or said differently how it is that they are defined for others (assuming others can build this code on amd64-linux unmodified). It all depends on the combination of installed kernel headers and glibc headers whether it'll work or not. There are broken combinations out there, even on i386. It's inherent to the way GNU/Linux is developped since there is no real attempt to keep kernel and libc in sync. Learn to live with or switch to a free operating system with decent release management . Cheers, Mark