From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: EXIT_SUCCESS and NO_RETURN in /lib-src Date: Mon, 12 Feb 2007 22:46:02 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1171313215 3885 80.91.229.12 (12 Feb 2007 20:46:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2007 20:46:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: "William Xue" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 12 21:46:48 2007 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.50) id 1HGi4S-0000cG-8G for ged-emacs-devel@m.gmane.org; Mon, 12 Feb 2007 21:46:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGi4R-0001VE-Mw for ged-emacs-devel@m.gmane.org; Mon, 12 Feb 2007 15:46:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HGi4G-0001Pz-FZ for emacs-devel@gnu.org; Mon, 12 Feb 2007 15:46:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HGi4G-0001P2-3o for emacs-devel@gnu.org; Mon, 12 Feb 2007 15:46:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGi4F-0001On-Rf for emacs-devel@gnu.org; Mon, 12 Feb 2007 15:46:31 -0500 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HGi4F-0006yS-Cd for emacs-devel@gnu.org; Mon, 12 Feb 2007 15:46:31 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-166-24.inter.net.il [84.228.166.24]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GAP24332 (AUTH halo1); Mon, 12 Feb 2007 22:46:01 +0200 (IST) In-reply-to: (william.xue@gmail.com) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:66313 Archived-At: > Date: Mon, 12 Feb 2007 14:33:49 +0800 > From: "William Xue" > > I build emacs-unicode-2 in winxp with MinGW, and it failed in /lib-src. > > It says that the compile could not find the definition of EXIT_* and > NO_RETURN in hexl.c and ebrowser.c and sorted-doc.c. > > In hexl.c, I added > #ifdef HAVE_STDLIB_H > #include > #endif Can you explain why this problem doesn't happen on HEAD? AFAICS, the MinGW build of Emacs pulls in stdlib.h from src/s/ms-w32.h, which is included by config.h. Can you see why this doesn't happen for you? > in ebrowser.c, I added > #define NO_RETURN Shouldn't be needed, either: NO_RETURN is defined in config.h. > and in sorted-doc.c, I added > #else > #include > #endif > in #ifndef HAVE_STDLIB_H Same here. It sounds like your compilation doesn't include config.h for some reason, or maybe config.h is empty. Please try to see why. > Info: resolving __sys_nerr by linking to __imp___sys_nerr (auto-import) > Info: resolving __sys_errlist by linking to __imp___sys_errlist > (auto-import) > oo-spd/i386/movemail.o(.text+0x358):movemail.c: undefined reference to > `link' > fu000001.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname' > fu000003.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname' > nmth000000.o(.idata$4+0x0): undefined reference to `_nm___sys_nerr' > nmth000002.o(.idata$4+0x0): undefined reference to `_nm___sys_errlist' > mingw32-make: *** [oo-spd/i386/movemail.exe] Error 1 Probably for the same reason: the Windows build is not supposed to compile the code that uses the `link' function.