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: Tue, 13 Feb 2007 06:25:15 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1171340748 28308 80.91.229.12 (13 Feb 2007 04:25:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2007 04:25:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: "William Xue" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 13 05:25:35 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 1HGpEU-0007GR-HD for ged-emacs-devel@m.gmane.org; Tue, 13 Feb 2007 05:25:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGpET-0000h7-Vh for ged-emacs-devel@m.gmane.org; Mon, 12 Feb 2007 23:25:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HGpEI-0000gs-BR for emacs-devel@gnu.org; Mon, 12 Feb 2007 23:25:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HGpEF-0000gY-Vv for emacs-devel@gnu.org; Mon, 12 Feb 2007 23:25:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGpEF-0000gV-Oo for emacs-devel@gnu.org; Mon, 12 Feb 2007 23:25:19 -0500 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HGpEF-0002Eq-Cm for emacs-devel@gnu.org; Mon, 12 Feb 2007 23:25:19 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-124-22.inter.net.il [84.229.124.22]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id HCP32290 (AUTH halo1); Tue, 13 Feb 2007 06:25:20 +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:66327 Archived-At: > Date: Tue, 13 Feb 2007 11:07:26 +0800 > From: "William Xue" > Cc: emacs-devel@gnu.org > > > >> 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__ == 2 && > __GNUC_MINOR >= 5)) > 476 #define NO_RETURN __attribute__ ((__noreturn__)) > 477 #else > 478 #define NO_RETURN /* nothing */ > 479 #endif > 480 #endif > > maybe is skipped by line 475. ??? You did say you use MinGW, didn't you? If so, your compiler is GCC, which defines __GNUC__, and I cannot believe your GCC version is less than 2.5. What does "gcc --version" say? > IMHO, config.h was included. But could you teld how to confirm it? Add to it an #error directive, and see if GCC emits the error message. Add that directive at the beginning, then at the end, and see if the file is used in its entirety. > >> 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. > > I havn't known how to resolve this problem. I think when you find and solve the other problems, this one will be solved with them.