From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30874 invoked by alias); 15 Jan 2008 07:33:53 -0000 Received: (qmail 30866 invoked by uid 22791); 15 Jan 2008 07:33:53 -0000 X-Spam-Check-By: sourceware.org Received: from ctb-mesg-2-3.saix.net (HELO ctb-mesg-2-3.saix.net) (196.25.240.83) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 15 Jan 2008 07:33:31 +0000 Received: from [192.168.0.8] (dsl-242-6-244.telkomadsl.co.za [41.242.6.244]) by ctb-mesg-2-3.saix.net (Postfix) with ESMTP id C00A61D7C4; Tue, 15 Jan 2008 09:33:27 +0200 (SAST) From: "Gerrit van Niekerk" To: DJ Delorie Date: Tue, 15 Jan 2008 07:33:00 -0000 MIME-Version: 1.0 Subject: Re: GDB/Mingw make problem Reply-to: gerritvn@gpvno.co.za,gpvno@telkomsa.net CC: gdb@sourceware.org Message-ID: <478C7DE1.26386.407C750@gerritvn.gpvno.co.za> In-reply-to: <200801142112.m0ELCgA2007612@greed.delorie.com> References: <478A8022.18277.6CAB521@gerritvn.gpvno.co.za>, (message from Eli Zaretskii on Mon, 14 Jan 2008 22:39:05 +0200), <200801142112.m0ELCgA2007612@greed.delorie.com> X-mailer: Pegasus Mail for Windows (4.41) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-IsSubscribed: yes 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-01/txt/msg00105.txt.bz2 On 14 Jan 2008 at 16:12, DJ Delorie wrote: > > > ?? I'd expect --target=djgpp do that automatically (it's a > > cross-compilation, right?) > > It's the difference between a cygwin-x-djgpp cross compiler and a > mingw-x-djgpp cross compiler. If --host is mingw, you're actually > doing a canadian (although configure doesn't realize it, so it's not > the traditional build/host/target canadian), so you need to ensure > that CC is set right. > > Otherwise, in the example given, you're trying to build cygwin > programs using mingw headers, or something like that. Subtle bugs > ensue. The idea is to get a cross debugger to debug a remote DJGPP system using a MinGw GDB and a TCP/IP connection. The stock MinGW GDB works fine, except that it expects a PE target and fails to do address to symbol conversions correctly. The other way round works fine and one can do debugging, but a backtrace gives completely wrong results. I have managed to move on from the last reported problem which was caused by configure/make specifying the wrong include path for libintl.h. I solved that one by copying libintl.h to the specified directory. Now I am having a problem with conflicts between winsock2.h and unistd.h both declaring Winsock functions like gethostname(). It seems that the makefile uses Cygwin headers rather than MinGW headers.