From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19263 invoked by alias); 18 Dec 2013 15:35:45 -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 19252 invoked by uid 89); 18 Dec 2013 15:35:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout20.012.net.il Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Dec 2013 15:35:43 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MY000M00DY7CR00@a-mtaout20.012.net.il> for gdb@sourceware.org; Wed, 18 Dec 2013 17:35:40 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MY000MFLDZF2S60@a-mtaout20.012.net.il>; Wed, 18 Dec 2013 17:35:39 +0200 (IST) Date: Wed, 18 Dec 2013 15:35:00 -0000 From: Eli Zaretskii Subject: Re: GDB MinGW build error: implicit declaration of function 'wcsncasecmp' In-reply-to: <52B17083.7040404@gmail.com> To: asmwarrior Cc: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83d2kucgth.fsf@gnu.org> References: <52B17083.7040404@gmail.com> X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00051.txt.bz2 > Date: Wed, 18 Dec 2013 17:53:07 +0800 > From: asmwarrior > > 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); > ^ MinGW doesn't have this function, it needs to be emulated using the non-standard lstrcmpiW.