all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "William Xue" <william.xue@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: EXIT_SUCCESS and NO_RETURN in /lib-src
Date: Tue, 13 Feb 2007 06:25:15 +0200	[thread overview]
Message-ID: <uabzi65w4.fsf@gnu.org> (raw)
In-Reply-To: <op.tnn2yokzhkv0w5@williamnb> (william.xue@gmail.com)

> Date: Tue, 13 Feb 2007 11:07:26 +0800
> From: "William Xue" <william.xue@gmail.com>
> 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.

  reply	other threads:[~2007-02-13  4:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-12  6:33 EXIT_SUCCESS and NO_RETURN in /lib-src William Xue
2007-02-12 20:46 ` Eli Zaretskii
2007-02-13  3:07   ` William Xue
2007-02-13  4:25     ` Eli Zaretskii [this message]
2007-02-13  6:11       ` William Xue
2007-02-13  9:09         ` Juanma Barranquero
2007-02-13  9:15           ` William Xue
2007-02-13  9:20             ` Juanma Barranquero
2007-02-14  2:22           ` William Xue
2007-02-14  2:34             ` Juanma Barranquero
2007-02-14  2:44               ` William Xue
2007-02-14  2:58                 ` Juanma Barranquero
2007-02-15  1:52                   ` William Xue
2007-02-14 15:13             ` Eli Zaretskii
2007-02-14 14:53         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uabzi65w4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=william.xue@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.