From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30072 invoked by alias); 24 Feb 2010 12:51:53 -0000 Received: (qmail 30053 invoked by uid 22791); 24 Feb 2010 12:51:52 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp1.belwue.de (HELO smtp1.belwue.de) (129.143.2.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Feb 2010 12:51:47 +0000 Received: from mx4.science-computing.de (mx4.science-computing.de [193.197.16.30]) by smtp1.belwue.de with ESMTP id o1OCpia0023936 for ; Wed, 24 Feb 2010 13:51:44 +0100 (MET) env-from (prvs=664c95453=H.Koenig@science-computing.de) Received: from localhost (localhost [127.0.0.1]) by scmail.science-computing.de (Postfix) with ESMTP id 82BB3414004; Wed, 24 Feb 2010 13:51:43 +0100 (CET) Received: from scmail.science-computing.de ([127.0.0.1]) by localhost (obitest.science-computing.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CgDqBoxi+uTS; Wed, 24 Feb 2010 13:51:36 +0100 (CET) Received: from atuin.science-computing.de (atuin.science-computing.de [10.10.8.66]) by scmail.science-computing.de (Postfix) with ESMTP id 96A5A414001; Wed, 24 Feb 2010 13:51:36 +0100 (CET) Received: by atuin.science-computing.de (Postfix, from userid 1009) id 7055F89D8D; Wed, 24 Feb 2010 13:51:36 +0100 (CET) Date: Wed, 24 Feb 2010 12:51:00 -0000 From: Harald Koenig To: Harald Koenig Cc: Pedro Alves , bug-gdb@gnu.org, gdb-patches@sourceware.org, Harald Koenig Subject: Re: some compile errors fo gdb-7.0.1 Message-ID: <20100224125136.GA14069@atuin.science-computing.de> References: <20100215141621.GA9469@atuin.science-computing.de> <201002181923.34196.pedro@codesourcery.com> <20100223163505.GA21619@atuin.science-computing.de> <20100223171348.GA31492@atuin.science-computing.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline In-Reply-To: <20100223171348.GA31492@atuin.science-computing.de> User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00587.txt.bz2 --45Z9DzgjV8m4Oswq Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-length: 1799 On Feb 23, Harald Koenig wrote: > right now I'm trying to build gdb on AIX 6.1 which right now fails here > > "gdb-CVS-20100222/gdb/aix-thread.c", line 352.46: 1506-280 (W) Function argument assignment between types "int*" and "unsigned int*" is not allowed. > > where the source reads like this -- hmmmmm.... > > /* getthrds(3) isn't prototyped in any AIX 4.3.3 #include file. */ > extern int getthrds (pid_t, struct thrdsinfo64 *, > int, pthdb_tid_t *, int); with the attached patch AIX 6.1 builds fine, and 5.1 still does so.... (_AIX51 is defined in 5.2/5.3 too! I've not tested 5.0 though which is why I don't check _AIX50 which is defined in 5.1-5.3 too). but: 6.1 has the same break point problems as 5.3: - with no breakpoint before 1st run, break points can't be set later at all - otherwise break points seem to work Harald Koenig -- "I hope to die ___ _____ before I *have* to use Microsoft Word.", 0--,| /OOOOOOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen. <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// Harald Koenig \/\/\/\/\/\/\/\/\/ science+computing ag // / \\ \ koenig@science-computing.de ^^^^^ ^^^^^ -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Michel Lepert Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="aix-thread.c.diff" Content-length: 573 Index: aix-thread.c =================================================================== RCS file: /cvs/src/src/gdb/aix-thread.c,v retrieving revision 1.72 diff -u -r1.72 aix-thread.c --- aix-thread.c 1 Jan 2010 07:31:29 -0000 1.72 +++ aix-thread.c 24 Feb 2010 12:46:26 -0000 @@ -647,9 +647,11 @@ pthdb_tid_t ktid = 0; int result = 0; +#if !defined(_AIX51) && !defined(_AIX61) /* getthrds(3) isn't prototyped in any AIX 4.3.3 #include file. */ extern int getthrds (pid_t, struct thrdsinfo64 *, int, pthdb_tid_t *, int); +#endif while (1) { --45Z9DzgjV8m4Oswq--