From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4802 invoked by alias); 29 Mar 2005 15:43:06 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 4554 invoked from network); 29 Mar 2005 15:42:54 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 29 Mar 2005 15:42:54 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j2TFgsT7024539 for ; Tue, 29 Mar 2005 10:42:54 -0500 Received: from pobox.surrey.redhat.com (pobox.surrey.redhat.com [172.16.10.17]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j2TFgpO28217; Tue, 29 Mar 2005 10:42:52 -0500 Received: from [172.31.0.98] (vpnuser2.surrey.redhat.com [172.16.9.2]) by pobox.surrey.redhat.com (8.12.8/8.12.8) with ESMTP id j2TFgmpS028874; Tue, 29 Mar 2005 16:42:50 +0100 Message-ID: <424976C8.8060300@redhat.com> Date: Tue, 29 Mar 2005 16:42:00 -0000 From: Nick Clifton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) MIME-Version: 1.0 To: "Aaron W. LaFramboise" CC: binutils Subject: Re: getopt.h getopt() decl broken for many targets References: <4243856A.7040909@aaronwl.com> In-Reply-To: <4243856A.7040909@aaronwl.com> Content-Type: multipart/mixed; boundary="------------040205010308080200010209" X-SW-Source: 2005-03/txt/msg00865.txt.bz2 This is a multi-part message in MIME format. --------------040205010308080200010209 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1225 Hi Aaron, > Targets, such as Windows, that don't have getopt() will probably have > get the following error when compiling binutils. > /aaronwl/cs/compilers/binutils/src/cvs/src/binutils/../include/getopt.h:116: > warning: function declaration isn't a prototype > Is the situation described in this comment still true? Would it be > possible to turn this whitelist into a blacklist? If your build-time environment does provide a prototype for getopt() which is compatible with the one in include/getopt.h then you may find that the attached two patches help. The first one fixes the configure system in the binutils/ subdirectory so that it checks for a working getopt() prototype. (You will need to regenerate the configure files after applying the patch). The second patch fixes the sources for addr2line.c so that the config.h file is included before bfd.h so that it can pick up the definition of HAVE_DECL_GETOPT which should now be in config.h. Note - this issue is being discussed on a thread on the bug-binutils@gnu.org mailing list started by Vladimir Merzliakov. Unfortunately it appears that this list is not being archived at the moment so I cannot give you a URL to follow. Cheers Nick --------------040205010308080200010209 Content-Type: text/plain; name="addr2line.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="addr2line.c.patch" Content-length: 534 Index: binutils/addr2line.c =================================================================== RCS file: /cvs/src/src/binutils/addr2line.c,v retrieving revision 1.21 diff -c -3 -p -r1.21 addr2line.c *** binutils/addr2line.c 15 Jun 2004 01:19:13 -0000 1.21 --- binutils/addr2line.c 29 Mar 2005 15:33:56 -0000 *************** *** 29,34 **** --- 29,35 ---- both forms write results to stdout, the second form reads addresses to be converted from stdin. */ + #include "config.h" #include #include "bfd.h" --------------040205010308080200010209 Content-Type: application/x-bzip2; name="binutils.config.patch.supplimental.bz2" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="binutils.config.patch.supplimental.bz2" Content-length: 3250 QlpoOTFBWSZTWRPnI0cACRVfgGA4ff///7/v327/79/qYAud77d3Hr17sKep 2Pld8zuL61QKAABQAAho1EJqPEymgemkHqA0aGgaMmIMgwg0DA0g0TFT9NU9 qNQNMgDQABoAAAAZAGpmo0IFAGgaAAAAAAAAAANPKkkIPU0wAEHqGmmRoxGC ZAZMEMQaBFFNEDSaTQ09Eeo9Q0A9R6hkAGgemoyNHlGgIlCBNAJglPahqYTS bQMmpmgmgBo00G0j1MmYuOQAAAAAABhiVUlXT650OS/KhKKEc+8DWDyAPSvG HiLe2Wg1iQbxWcpxmswHDu9wME1mYnmB/5/sJBrcJPODQ9YN4MCuQ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