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 14:11:29 +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 1171347135 9704 80.91.229.12 (13 Feb 2007 06:12:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2007 06:12:15 +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 07:12:08 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 1HGqtb-00057n-Ov for ged-emacs-devel@m.gmane.org; Tue, 13 Feb 2007 07:12:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGqtb-0003Vs-3U for ged-emacs-devel@m.gmane.org; Tue, 13 Feb 2007 01:12:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HGqsv-00039j-8i for emacs-devel@gnu.org; Tue, 13 Feb 2007 01:11:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HGqsu-00038o-D5 for emacs-devel@gnu.org; Tue, 13 Feb 2007 01:11:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGqst-00038b-TA for emacs-devel@gnu.org; Tue, 13 Feb 2007 01:11:23 -0500 Original-Received: from nz-out-0506.google.com ([64.233.162.231]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HGqst-0003Vy-HJ for emacs-devel@gnu.org; Tue, 13 Feb 2007 01:11:23 -0500 Original-Received: by nz-out-0506.google.com with SMTP id s1so1759767nze for ; Mon, 12 Feb 2007 22:11:23 -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=FinnoThkyU765OkYRy8RwlbryFeq8Kj5GvCZJIwp4LkkEo4/wwLO/ycOVUHTzP1Txx8yc9vpA0t1FTrVqFQcMzBunXGRH8et9psKWbRHC55AfJexsYig8sBuJqDFi5d0OaSprv6oEPW+NuylvmGc55iEuEQLb21KgXfFMmoT8OY= Original-Received: by 10.35.80.20 with SMTP id h20mr507433pyl.1171347082960; Mon, 12 Feb 2007 22:11:22 -0800 (PST) Original-Received: from williamnb ( [58.33.96.191]) by mx.google.com with ESMTP id a70sm13701948pye.2007.02.12.22.11.19; Mon, 12 Feb 2007 22:11:21 -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:66329 Archived-At: On Tue, 13 Feb 2007 12:25:15 +0800, Eli Zaretskii wrote: >> 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__ =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. > > ??? 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? It is 3.2.3 ---8<--------------------------------------------->8--- F:\MinGW\bin>gcc.exe --version gcc.exe (GCC) 3.2.3 (mingw special 20030504-1) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is = NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO= SE. ---8<--------------------------------------------->8--- I have found something in makefile: ---8<--------------------------------------------->8--- 315 LOCAL_FLAGS =3D -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=3D1 -DNO_LDA= V=3D1 \ 316 -DNO_ARCHIVES=3D1 -DHAVE_CONFIG_H=3D1 -I../nt/inc = \ 317 -I../src ---8<--------------------------------------------->8--- when run configure.bat in nt folder, I have specified '--cflags -I./inc'= . After I removed the -I../nt/inc in the makefile in lib-src folder, the = build is OK. It seems that only one -I flag allowed in this situation. I specified the include path because I put all the graphic's header = files(gif, bmp, jpg, tiff, etc) in there. I did not know many about the flags in MinGW and GCC. Is there something= = wrong or it is the limitation of the compiler? > >> 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 referenc= e = >> to >> >> `link' >> >> fu000001.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_inam= e' >> >> fu000003.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_inam= e' >> >> 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. if removed the -I../nt/inc from makefile, 'mingw32-make movemail' make the following errors: ---8<--------------------------------------------->8--- gcc -o oo-spd/i386/movemail.exe -mno-cygwin oo-spd/i386/movemail.o = oo-spd/i38 6/pop.o oo-spd/i386/ntlib.o oo-spd/i386/getopt.o oo-spd/i386/getopt1.o = -lwsock32 -ladvapi32 oo-spd/i386/movemail.o(.text+0x86d):movemail.c: undefined reference to = `pop_open ' oo-spd/i386/movemail.o(.text+0x88d):movemail.c: undefined reference to = `pop_stat ' oo-spd/i386/movemail.o(.text+0x8a4):movemail.c: undefined reference to = `pop_clos e' oo-spd/i386/movemail.o(.text+0x9c1):movemail.c: undefined reference to = `pop_quit ' oo-spd/i386/movemail.o(.text+0x9d9):movemail.c: undefined reference to = `pop_erro r' oo-spd/i386/movemail.o(.text+0xa08):movemail.c: undefined reference to = `pop_dele te' ---8<--------------------------------------------->8--- if not remvove the flag, make the following errors: ---8<--------------------------------------------->8--- ../src/process.h:81: parse error before "update_tick" ../src/process.h:83: parse error before "decode_coding_system" ../src/process.h:85: parse error before "decoding_buf" ../src/process.h:87: parse error before "decoding_carryover" ../src/process.h:89: parse error before "encode_coding_system" ../src/process.h:91: parse error before "encoding_buf" ../src/process.h:93: parse error before "encoding_carryover" ../src/process.h:96: parse error before "inherit_coding_system_flag" ../src/process.h:102: parse error before "filter_multibyte" ../src/process.h:105: parse error before "adaptive_read_buffering" ../src/process.h:112: parse error before "read_output_delay" ../src/process.h:114: parse error before "read_output_skip" ../src/process.h:126: parse error before ':' token ../src/process.h:128: parse error before '}' token ../src/process.h:136: parse error before "chan_process" ../src/process.h:139: parse error before "Vprocess_alist" In file included from movemail.c:90: ntlib.h:24:17: pwd.h: No such file or directory movemail.c:690:17: pwd.h: No such file or directory ../src/process.h:136: warning: array `chan_process' assumed to have one = = element mingw32-make: *** [oo-spd/i386/movemail.o] Error 1 ---8<--------------------------------------------->8--- I'll still try these things. -- = Sincerely yours, William