From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: merlyn@stonehenge.com (Randal L. Schwartz) Newsgroups: gmane.emacs.bugs Subject: bug#10155: 23.3; HEAD broken by recent commit for emacsclient Date: Mon, 28 Nov 2011 09:19:23 -0800 Message-ID: <86lir05fms.fsf@red.stonehenge.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1322501358 5293 80.91.229.12 (28 Nov 2011 17:29:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2011 17:29:18 +0000 (UTC) To: 10155@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 28 18:29:14 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RV50z-0002Om-8G for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Nov 2011 18:29:13 +0100 Original-Received: from localhost ([::1]:59169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV50y-0008J0-NK for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Nov 2011 12:29:12 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV50v-0008Io-5J for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2011 12:29:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RV50t-0000Ao-Mu for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2011 12:29:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV50t-0000Aj-LL for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2011 12:29:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RV52k-0008Aj-FY for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2011 12:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: merlyn@stonehenge.com (Randal L. Schwartz) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Nov 2011 17:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10155 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.132250142031361 (code B ref -1); Mon, 28 Nov 2011 17:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Nov 2011 17:30:20 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RV523-00089m-Q2 for submit@debbugs.gnu.org; Mon, 28 Nov 2011 12:30:20 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RV521-00089f-KW for submit@debbugs.gnu.org; Mon, 28 Nov 2011 12:30:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RV509-0008Je-AG for submit@debbugs.gnu.org; Mon, 28 Nov 2011 12:28:22 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:58085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV509-0008Ja-5q for submit@debbugs.gnu.org; Mon, 28 Nov 2011 12:28:21 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV504-0007zu-Tr for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2011 12:28:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RV503-0008Im-6A for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2011 12:28:16 -0500 Original-Received: from lax-gw09.mailroute.net ([199.89.0.109]:49126 helo=mail.mroute.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV502-0008IX-Va for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2011 12:28:15 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by lax-gw09.mroute.net (Postfix) with ESMTP id 5950D17010F for ; Mon, 28 Nov 2011 17:19:26 +0000 (GMT) X-Virus-Scanned: by MailRoute Original-Received: from red.stonehenge.com (red.stonehenge.com [208.79.95.2]) by lax-gw09.mroute.net (Postfix) with ESMTP id D438C1700DE for ; Mon, 28 Nov 2011 17:19:24 +0000 (GMT) Original-Received: by red.stonehenge.com (Postfix, from userid 1001) id 3986123D0; Mon, 28 Nov 2011 09:19:23 -0800 (PST) x-mayan-date: Long count = 12.19.18.16.11; tzolkin = 5 Chuen; haab = 19 Ceh X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 28 Nov 2011 12:31:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:54371 Archived-At: The commit: Author: Eli Zaretskii Date: Sun Nov 27 20:52:53 2011 +0200 Fix MS-Windows build with MSVC compiler. Parts of the changes by Fabrice Popineau . lib-src/makefile.w32-in (LOCAL_FLAGS): Add $(EMACS_EXTRA_C_FLAGS). lib-src/emacsclient.c (main) : Remove declaration, already pulled in by unistd.h on Posix hosts and stdlib.h on MS-Windows. nt/inc/stdint.h (uint32_t, uint64_t) [_WIN64]: New typedefs. (UINT64_MAX) [_WIN64]: Fix definition. (uintmax_t, intmax_t): Fix definitions. nt/inc/inttypes.h (strtoumax, strtoimax) [!__MINGW32__]: Provide correct definitions. nt/config.nt (HAVE_DECL_STRTOLL): Define. (va_copy) [_WIN64]: Provide a better definition. src/s/ms-w32.h (utimbuf) [_MSC_VER]: Don't define. (snprintf) [_MSC_VER]: Redirect to _snprintf. (strtoll) [_MSC_VER]: Redirect to _strtoi64. (malloc, free, realloc, calloc): Redirect to e_* only when compiling Emacs. src/lisp.h (GCTYPEBITS): Move before first use. (ALIGN_GCTYPEBITS) [_MSC_VER]: Define. (DECL_ALIGN) [_MSC_VER]: Use it, as MSVC doesn't like bit ops in this macro definition. (tzname): Redirect to _tzname for all values of _MSC_VER. Broke emacsclient: cd lib-src; make all \ CC='gcc -std=gnu99' CFLAGS='-g -O2' CPPFLAGS='' \ LDFLAGS='' MAKE='make' gcc -std=gnu99 -c -Wimplicit-function-declaration -Wold-style-definition -Wdeclaration-after-statement -DHAVE_CONFIG_H -I. -I../src -I../lib -I/Users/merlyn/MIRROR/emacs-GIT/lib-src -I/Users/merlyn/MIRROR/emacs-GIT/lib-src/../src -I/Users/merlyn/MIRROR/emacs-GIT/lib-src/../lib -g -O2 -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \ /Users/merlyn/MIRROR/emacs-GIT/lib-src/../src/regex.c gcc -std=gnu99 -Wimplicit-function-declaration -Wold-style-definition -Wdeclaration-after-statement -DHAVE_CONFIG_H -I. -I../src -I../lib -I/Users/merlyn/MIRROR/emacs-GIT/lib-src -I/Users/merlyn/MIRROR/emacs-GIT/lib-src/../src -I/Users/merlyn/MIRROR/emacs-GIT/lib-src/../lib -g -O2 -DEMACS_NAME="\"GNU Emacs\"" \ -DVERSION="\"24.0.91\"" /Users/merlyn/MIRROR/emacs-GIT/lib-src/etags.c \ regex.o ../lib/libgnu.a -o etags gcc -std=gnu99 -Wimplicit-function-declaration -Wold-style-definition -Wdeclaration-after-statement -DHAVE_CONFIG_H -I. -I../src -I../lib -I/Users/merlyn/MIRROR/emacs-GIT/lib-src -I/Users/merlyn/MIRROR/emacs-GIT/lib-src/../src -I/Users/merlyn/MIRROR/emacs-GIT/lib-src/../lib -g -O2 -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" \ -DVERSION="\"24.0.91\"" /Users/merlyn/MIRROR/emacs-GIT/lib-src/etags.c \ regex.o ../lib/libgnu.a -o ctags gcc -std=gnu99 -Wimplicit-function-declaration -Wold-style-definition -Wdeclaration-after-statement -DHAVE_CONFIG_H -I. -I../src -I../lib -I/Users/merlyn/MIRROR/emacs-GIT/lib-src -I/Users/merlyn/MIRROR/emacs-GIT/lib-src/../src -I/Users/merlyn/MIRROR/emacs-GIT/lib-src/../lib -g -O2 /Users/merlyn/MIRROR/emacs-GIT/lib-src/emacsclient.c \ -DVERSION="\"24.0.91\"" \ ../lib/libgnu.a -o emacsclient /Users/merlyn/MIRROR/emacs-GIT/lib-src/emacsclient.c: In function 'set_local_socket': /Users/merlyn/MIRROR/emacs-GIT/lib-src/emacsclient.c:1281: warning: passing argument 2 of 'confstr' discards qualifiers from pointer target type /Users/merlyn/MIRROR/emacs-GIT/lib-src/emacsclient.c: In function 'main': /Users/merlyn/MIRROR/emacs-GIT/lib-src/emacsclient.c:1639: error: 'environ' undeclared (first use in this function) /Users/merlyn/MIRROR/emacs-GIT/lib-src/emacsclient.c:1639: error: (Each undeclared identifier is reported only once /Users/merlyn/MIRROR/emacs-GIT/lib-src/emacsclient.c:1639: error: for each function it appears in.) make[2]: *** [emacsclient] Error 1 make[1]: *** [lib-src] Error 2 make: *** [bootstrap] Error 2 -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion