From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5646 invoked by alias); 25 Jun 2008 23:09:03 -0000 Received: (qmail 5631 invoked by uid 22791); 25 Jun 2008 23:09:02 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Jun 2008 23:08:45 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 5DFDE2A967D for ; Wed, 25 Jun 2008 19:08:43 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id k+-G+BsXZsBv for ; Wed, 25 Jun 2008 19:08:43 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 45C9B2A967C for ; Wed, 25 Jun 2008 19:08:43 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 0B766E7ACD; Wed, 25 Jun 2008 19:08:43 -0400 (EDT) Date: Wed, 25 Jun 2008 23:09:00 -0000 From: Joel Brobecker To: gdb@sourceware.org Subject: Re: gnulib dependency in gdbserver Message-ID: <20080625230842.GI7272@adacore.com> References: <20080625191621.GI3700@adacore.com> <20080625192247.GA29115@caradoc.them.org> <20080625211342.GF7272@adacore.com> <20080625215802.GA4651@caradoc.them.org> <20080625221538.GH7272@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080625221538.GH7272@adacore.com> User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00263.txt.bz2 > I thought so because memmem.c uses SIZE_MAX. However, I now realized > that I greped in the wrong directory, and now that I grep again in > the right one, the system stdint.h does seem to provide this macro. > So it looks like an issue with the way I setup the build or maybe > the compiler (we've had some issues of this sort a while ago). > Let me dig in a little more. Problem solved - the macro definitions are protected by "#if defined (__STDC_LIMIT_MACROS)", which is not defined by default. Defining this macro allowed me to build memmem.c, and after fixing another issue related to init_registers () being "multi-arched", I finally got an executable. For my penance, if you think that we could document the contents of our discussion somewhere, just let me know, and I'll be happy to do that as my way of thanks. Perhaps in the README file? This file contains instructions, though, so I'm a little hesitant to dilute its contents with information that may not be relevant to the user that just wants to be gdbserver... -- Joel