unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: cyd@stupidchicken.com, angelo.graziosi@alice.it, emacs-devel@gnu.org
Subject: Re: Warning starting Emacs  (Cygwin)
Date: Sat, 02 Aug 2008 22:54:21 +0300	[thread overview]
Message-ID: <umyjvkxaq.fsf@gnu.org> (raw)
In-Reply-To: <200808021930.m72JUTrw014872@sallyv1.ics.uci.edu>

> From: Dan Nicolaescu <dann@ics.uci.edu>
> Date: Sat, 02 Aug 2008 12:30:29 -0700
> Cc: emacs-devel@gnu.org, Angelo Graziosi <angelo.graziosi@alice.it>
> 
> Chong Yidong <cyd@stupidchicken.com> writes:
> 
>   > Dan Nicolaescu <dann@ics.uci.edu> writes:
>   > 
>   > > Unfortunately none of these ring a bell to me.  Yidong I assume this
>   > > code is the reason you added the HAVE_GETRLIMIT autoconf check, can you
>   > > guess what can be wrong here?
>   > 
>   > The reason I added the getrlimit check was because of the bug reported
>   > here (bug#86):
> 
> The check is very likely fine, I was hoping you understand the code the
> macro guards...  Please see Angelo's messages, he gives a lot of details
> that might ring a bell.

It's quite clear from what Angelo wrote that Cygwin's getrlimit is not
a fully functional emulation.  Just to be sure, I looked into the
Cygwin sources and found this gem:

    extern "C" int
    getrlimit (int resource, struct rlimit *rlp)
    {

      [...]

      switch (resource)
	{
	[...]
	case RLIMIT_AS:
	  rlp->rlim_cur = 0x80000000UL;
	  rlp->rlim_max = 0x80000000UL;
	  break;

This obviously cannot work with vm-limit.c.

I think the test in configure should compare rlim_cur with rlim_max,
and if they are identical, deduce that getrlimit is non-functional and
not set HAVE_GETRLIMIT.




  reply	other threads:[~2008-08-02 19:54 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-31 14:45 Failure bootstrapping Emacs (Cygwin) Angelo Graziosi
2008-07-31 16:27 ` Angelo Graziosi
2008-07-31 16:57   ` Angelo Graziosi
2008-07-31 17:00   ` Dan Nicolaescu
2008-08-01 10:38     ` Warning starting Emacs (was Re: Failure bootstrapping Emacs (Cygwin)) Angelo Graziosi
2008-08-01 12:51       ` Warning starting Emacs (Cygwin) Angelo Graziosi
2008-08-01 13:08         ` Dan Nicolaescu
2008-08-01 14:13           ` Angelo Graziosi
2008-08-01 14:36             ` Dan Nicolaescu
2008-08-01 20:47               ` Angelo Graziosi
2008-08-02  4:06                 ` Dan Nicolaescu
2008-08-02 14:29                   ` Angelo Graziosi
2008-08-02 15:02                     ` Angelo Graziosi
2008-08-02 18:59                     ` Dan Nicolaescu
2008-08-02 19:14                       ` Chong Yidong
2008-08-02 19:30                         ` Dan Nicolaescu
2008-08-02 19:54                           ` Eli Zaretskii [this message]
2008-08-02 20:19                           ` Chong Yidong
2008-08-02 20:24                             ` Chong Yidong
2008-08-03  3:26                               ` Eli Zaretskii
2008-08-03  6:20                         ` Andreas Vögele
2008-08-03 14:10                           ` Chong Yidong
2008-08-03 22:35                             ` Angelo Graziosi
2008-08-04  6:25                               ` Andreas Vögele

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=umyjvkxaq.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=angelo.graziosi@alice.it \
    --cc=cyd@stupidchicken.com \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).