From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20043 invoked by alias); 18 Dec 2013 12:50:12 -0000 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 Received: (qmail 20025 invoked by uid 89); 18 Dec 2013 12:50:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-pb0-f52.google.com Received: from mail-pb0-f52.google.com (HELO mail-pb0-f52.google.com) (209.85.160.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 18 Dec 2013 12:50:10 +0000 Received: by mail-pb0-f52.google.com with SMTP id uo5so8406416pbc.39 for ; Wed, 18 Dec 2013 04:50:08 -0800 (PST) X-Received: by 10.68.66.33 with SMTP id c1mr33301310pbt.73.1387371008421; Wed, 18 Dec 2013 04:50:08 -0800 (PST) Received: from [192.168.1.101] ([115.199.127.143]) by mx.google.com with ESMTPSA id om6sm40916608pbc.43.2013.12.18.04.50.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 04:50:07 -0800 (PST) Message-ID: <52B199A9.5080804@gmail.com> Date: Wed, 18 Dec 2013 12:50:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Pedro Alves CC: GDB Development , Binutils Development Subject: Re: BFD MinGW build error: implicit declaration of function 'wcsncasecmp' References: <52B17083.7040404@gmail.com> <52B1738D.4010409@redhat.com> In-Reply-To: <52B1738D.4010409@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-12/txt/msg00048.txt.bz2 On 2013-12-18 18:06, Pedro Alves wrote: > Hi there, > > Adding the binutils folks. (bfd is maintained by binutils.) > > Looks like fallout from the .rsrc merge support. > > On 12/18/2013 09:53 AM, asmwarrior wrote: >> I see the build error when I build GDB(git head) under MSYS+MinGW, here the is build log >> >> mv -f .deps/pe-i386.Tpo .deps/pe-i386.Plo >> rm -f peigen.c >> sed -e s/XX/pe/g < ../../binutils-gdb/bfd/peXXigen.c > peigen.new >> mv -f peigen.new peigen.c >> /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../binutils-gdb/bfd -D__USE_MINGW_FSEEK -I. -I../../binutils-gdb/bfd -I../../binutils-gdb/bfd/../include -DHAVE_i386pe_vec -DHAVE_i386pei_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR='"/mingw/bin"' -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wno-format -Werror -O0 -g -D__USE_MINGW_ACCESS -MT peigen.lo -MD -MP -MF .deps/peigen.Tpo -c -o peigen.lo peigen.c >> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../binutils-gdb/bfd -D__USE_MINGW_FSEEK -I. -I../../binutils-gdb/bfd -I../../binutils-gdb/bfd/../include -DHAVE_i386pe_vec -DHAVE_i386pei_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR=\"/mingw/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wno-format -Werror -O0 -g -D__USE_MINGW_ACCESS -MT peigen.lo -MD -MP -MF .deps/peigen.Tpo -c peigen.c -o peigen.o >> peigen.c: In function 'rsrc_cmp': >> peigen.c:3006:7: error: implicit declaration of function 'wcsncasecmp' [-Werror=implicit-function-declaration] >> res = wcsncasecmp (& awc, & bwc, 1); >> ^ >> cc1.exe: all warnings being treated as errors >> make[4]: *** [peigen.lo] Error 1 >> make[4]: Leaving directory `/f/build_gdb/mybuild/bfd' >> make[3]: *** [all-recursive] Error 1 >> make[3]: Leaving directory `/f/build_gdb/mybuild/bfd' >> make[2]: *** [all] Error 2 I think under Windows, there is a function: (in wchar.h under my MinGW-W64 toolchain) _CRTIMP int __cdecl _wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount); See:http://msdn.microsoft.com/en-us/library/chd90w8e.aspx Thanks. Yuanhui Zhang