From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20630 invoked by alias); 9 Oct 2006 19:11:02 -0000 Received: (qmail 20622 invoked by uid 22791); 9 Oct 2006 19:11:01 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 09 Oct 2006 19:10:59 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GX0We-0005zx-T0; Mon, 09 Oct 2006 15:10:56 -0400 Date: Mon, 09 Oct 2006 19:11:00 -0000 From: Daniel Jacobowitz To: Joel Sherrill Cc: gdb-patches@sourceware.org Subject: Re: GDB 6.5 RTEMS patch Message-ID: <20061009191056.GA22848@nevyn.them.org> Mail-Followup-To: Joel Sherrill , gdb-patches@sourceware.org References: <44B6AFEF.6050903@oarcorp.com> <20060724202837.GE15759@nevyn.them.org> <44DCF2F0.6010504@oarcorp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44DCF2F0.6010504@oarcorp.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00079.txt.bz2 Sorry about dropping the ball on this again. This was about this change: > >> #if !HAVE_DECL_STRSTR > >>-extern char *strstr (); > >>+/* extern char *strstr (); */ > >> #endif On Fri, Aug 11, 2006 at 04:13:20PM -0500, Joel Sherrill wrote: > I just ran into a configuration tripping the need for this again. I am > in a chroot'ed > RH73 environment building RPMs. gcc is from the RPM gcc-2.96-113. Apparently > strstr is a macro on this configuration. When compiling the interp.c > file from some > of the simulators, you get this error. > > ../../../gdb-6.5/bfd/sysdep.h:138:22: macro "strstr" requires 2 > arguments, but only 1 given > > I think this is the macro is in /usr/include/bits/string2.h causing this: The macro itself isn't a problem. The problem is that we didn't find the prototype for the actual function, or the macro, during configure. I would recommend taking a look at the config.log for the gdb subdirectory, and searching for the strstr test. There should be a failed program logged; maybe it's not included some header that it ought to have. A guess: does adding ACX_HEADER_STRING to gdb/configure.ac and regenerating configure help? -- Daniel Jacobowitz CodeSourcery