From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "William Xue" Newsgroups: gmane.emacs.devel Subject: Re: EXIT_SUCCESS and NO_RETURN in /lib-src Date: Tue, 13 Feb 2007 11:07:26 +0800 Organization: wv Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 Content-Transfer-Encoding: Quoted-Printable X-Trace: sea.gmane.org 1171336069 18632 80.91.229.12 (13 Feb 2007 03:07:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2007 03:07:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Eli Zaretskii" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 13 04:07:40 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 1HGo15-0008RL-PJ for ged-emacs-devel@m.gmane.org; Tue, 13 Feb 2007 04:07:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGo15-0003ZV-79 for ged-emacs-devel@m.gmane.org; Mon, 12 Feb 2007 22:07:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HGo0p-0003Xc-9C for emacs-devel@gnu.org; Mon, 12 Feb 2007 22:07:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HGo0n-0003U5-6I for emacs-devel@gnu.org; Mon, 12 Feb 2007 22:07:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGo0m-0003Tp-UP for emacs-devel@gnu.org; Mon, 12 Feb 2007 22:07:21 -0500 Original-Received: from nz-out-0506.google.com ([64.233.162.229]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HGo0m-00074P-I5 for emacs-devel@gnu.org; Mon, 12 Feb 2007 22:07:20 -0500 Original-Received: by nz-out-0506.google.com with SMTP id s1so1721832nze for ; Mon, 12 Feb 2007 19:07:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:to:subject:from:organization:cc:content-type:mime-version:references:content-transfer-encoding:message-id:in-reply-to:user-agent; b=N2gwkAwSyIzP8TivBLrbZuEp8tw79hDluZbZQwzRx5V9oN2frWETXqwj6mFIf/yIAyJaUpP03KZIA94o0fzNg2sP9MXuzkdIY+F7TjV9bx7huGVBrlKaiHQ9Eyp/LB/hNRDy4/jNciY/aarpRO0mrb2Y4vWQI1ZDSNPl3SLgCSg= Original-Received: by 10.35.80.20 with SMTP id h20mr164079pyl.1171336040146; Mon, 12 Feb 2007 19:07:20 -0800 (PST) Original-Received: from williamnb ( [58.33.96.191]) by mx.google.com with ESMTP id c1sm10854311nzd.2007.02.12.19.07.17; Mon, 12 Feb 2007 19:07:19 -0800 (PST) In-Reply-To: User-Agent: Opera Mail/9.20 (Win32) X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) 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:66326 Archived-At: On Tue, 13 Feb 2007 04:46:02 +0800, Eli Zaretskii wrote: >> 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-sr= c. >> >> 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. NO_RETURN is defined in config.h, like this: 474 #ifndef NO_RETURN 475 #if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ =3D=3D 2 && = __GNUC_MINOR >=3D 5)) 476 #define NO_RETURN __attribute__ ((__noreturn__)) 477 #else 478 #define NO_RETURN /* nothing */ 479 #endif 480 #endif maybe is skipped by line 475. > >> 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. > IMHO, config.h was included. But could you teld how to confirm it? >> Info: resolving __sys_nerr by linking to __imp___sys_nerr (auto-impor= t) >> Info: resolving __sys_errlist by linking to __imp___sys_errlist >> (auto-import) >> oo-spd/i386/movemail.o(.text+0x358):movemail.c: undefined reference t= o >> `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. I havn't known how to resolve this problem. -- = Sincerely yours, William