From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: Revision 103880 broke the Windows build Date: Sun, 10 Apr 2011 20:53:06 +0100 Message-ID: <82r59951el.fsf@gmail.com> References: <83ei5armws.fsf@gnu.org> <4DA1F6F3.2050604@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302465213 21826 80.91.229.12 (10 Apr 2011 19:53:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Apr 2011 19:53:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 10 21:53:29 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q90hM-0004VR-FQ for ged-emacs-devel@m.gmane.org; Sun, 10 Apr 2011 21:53:28 +0200 Original-Received: from localhost ([127.0.0.1]:42165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q90hM-0008FZ-1e for ged-emacs-devel@m.gmane.org; Sun, 10 Apr 2011 15:53:28 -0400 Original-Received: from [140.186.70.92] (port=52347 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q90hH-0008FU-Dx for emacs-devel@gnu.org; Sun, 10 Apr 2011 15:53:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q90hG-0001iP-8f for emacs-devel@gnu.org; Sun, 10 Apr 2011 15:53:23 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:49812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q90hG-0001i7-3D for emacs-devel@gnu.org; Sun, 10 Apr 2011 15:53:22 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q90hD-0004SS-KI for emacs-devel@gnu.org; Sun, 10 Apr 2011 21:53:19 +0200 Original-Received: from 82-69-64-228.dsl.in-addr.zen.co.uk ([82.69.64.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Apr 2011 21:53:19 +0200 Original-Received: from andrewjmoreton by 82-69-64-228.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Apr 2011 21:53:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 82-69-64-228.dsl.in-addr.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:/ge7S+xa9sFuBzVYVFqYrJJZT8I= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138363 Archived-At: On Sun 10 Apr 2011, Paul Eggert wrote: > On 04/10/2011 11:17 AM, Eli Zaretskii wrote: >> Here's the error message: >> >> oo-spd/i386/temacs2.a(xdisp.o)(.text+0x277ba): In function `message': >> D:\gnu\bzr\emacs\trunk\src/xdisp.c:8420: undefined reference to `strnlen' > > Windows has strnlen, according to > . > So why does the build fail on Windows? > > I suppose we can add a replacement for strnlen on Windows, but that > would be pretty odd if Windows already had it. The mingw import libs do not appear to support strnlen(). Looking at the DLLs installed in C:\WINDOWS\System32 on my WinXP system, only msvcr100.dll exports strnlen(). This appears to be a part of the Visual Studio 2010 redistributables: http://msdn.microsoft.com/en-us/library/8kche8ah.aspx A replacement seems necessary (or revert the changes). AndyM