From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=E6=9D=8E=E4=B8=81?= Newsgroups: gmane.emacs.bugs Subject: bug#12878: 24.2; Compiling failed on Windows 7 with VC 11 Express: _WIN32_WINNT version too low Date: Tue, 13 Nov 2012 19:11:34 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ff1c3561aec3b04ce5e7b8d X-Trace: ger.gmane.org 1352823280 28822 80.91.229.3 (13 Nov 2012 16:14:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Nov 2012 16:14:40 +0000 (UTC) To: 12878@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 13 17:14:50 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TYJ8U-0002F1-5s for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Nov 2012 17:14:50 +0100 Original-Received: from localhost ([::1]:46271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYJ8K-0003Ac-8x for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Nov 2012 11:14:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYJ8F-0003AK-FM for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 11:14:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYJ8C-0005tn-DF for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 11:14:35 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYJ8C-0005tj-9H for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 11:14:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TYJ8g-0001En-KX for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 11:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E6=9D=8E=E4=B8=81?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Nov 2012 16:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12878 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13528232894710 (code B ref -1); Tue, 13 Nov 2012 16:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Nov 2012 16:14:49 +0000 Original-Received: from localhost ([127.0.0.1]:38906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYJ8T-0001Dv-HB for submit@debbugs.gnu.org; Tue, 13 Nov 2012 11:14:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43288) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYEPe-0001fe-IP for submit@debbugs.gnu.org; Tue, 13 Nov 2012 06:12:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYEP8-00047k-1c for submit@debbugs.gnu.org; Tue, 13 Nov 2012 06:11:45 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:44006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYEP7-00047g-Uh for submit@debbugs.gnu.org; Tue, 13 Nov 2012 06:11:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYEP4-0007nr-S3 for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 06:11:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYEP1-00045j-QA for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 06:11:38 -0500 Original-Received: from mail-pa0-f41.google.com ([209.85.220.41]:56863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYEP1-00045Q-Jo for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 06:11:35 -0500 Original-Received: by mail-pa0-f41.google.com with SMTP id fa10so5248409pad.0 for ; Tue, 13 Nov 2012 03:11:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ygMXYaJxeSt5E2kXqXsFRwOey6R2KIslQyoTv8mzoCA=; b=I2j1/fddmBCYlkKS5ZoWM16zza3yfwtEYeiLHrx+yXaAg+JoBLyJFicmoQZEHqZYOu SeSA+vPLGCNDg9QJoaG5c3oZmeXtGGv80D3WAfcpuN2s5o98byjRq2r6GHtUXy2JFMc8 74ZrvTVt1SQKUMBbRhcjTjjX0DndPzYzboFZZ4V2QzJkPpSFHv5r+SkbpUOcVyrAyjSo ihp06teNeVTpAifVKjIQK6Pk+T74jQSVyL4mid6AsBNcsu7QJ5cXeuYuf5uWJnGbxpH3 0EGE6teadQeQaj05ReZFLLAdaEvDaz6wgZ50LuPNlfruGpX1uPfzdr1vwZbNDe2Nwdbv BoeQ== Original-Received: by 10.68.191.10 with SMTP id gu10mr10210268pbc.115.1352805094452; Tue, 13 Nov 2012 03:11:34 -0800 (PST) Original-Received: by 10.68.79.134 with HTTP; Tue, 13 Nov 2012 03:11:34 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -3.4 (---) X-Mailman-Approved-At: Tue, 13 Nov 2012 11:14:48 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -3.4 (---) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66876 Archived-At: --e89a8ff1c3561aec3b04ce5e7b8d Content-Type: text/plain; charset=ISO-8859-1 Hi, I tried to compile emacs 24.2 on Windows 7 with Visual C++ 11.0 Express, and I found that EnumSystemLocales in w32proc.c and w32select.c were compiled as is (not as __stdcall function with postfix decorations), which causes the linking failure. I read through the sources and found that config.h defined _WIN32_WINNT as 0x0400, which corresponds to Windows NT4. However MSDN says that EnumSystemLocales requires at least Windows 2000 (0x0500). So you should probably either require a higher Windows version or use some other mechanism to accomplish what EnumSystemLocales does. Regards, Li Ding --e89a8ff1c3561aec3b04ce5e7b8d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I tried to compile emacs 24.2 on Windows 7 with Visual C++= 11.0 Express, and I found that EnumSystemLocales in w32proc.c and w32selec= t.c were compiled as is (not as __stdcall function with postfix decorations= ), which causes the linking failure.

I read through the sources and found that config.h defi= ned _WIN32_WINNT as 0x0400, which corresponds to Windows NT4. However MSDN = says that EnumSystemLocales requires at least Windows 2000 (0x0500). So you= should probably either require a higher Windows version or use some other = mechanism to accomplish what EnumSystemLocales does.

Regards,
Li Ding
--e89a8ff1c3561aec3b04ce5e7b8d--