zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: Zsh workers <zsh-workers@sunsite.auc.dk>
Subject: Compile problem on Linux
Date: Fri, 10 Mar 2000 10:27:33 +0000	[thread overview]
Message-ID: <38C8CE15.1FF2D76F@u.genie.co.uk> (raw)

When compiling zsh on my PC (which runs SuSE Linux 6.1). I got errors
relating to RLIM_NLIMITS being undefined. I traced the cause of this
down to autoconf erroneously reporting sys/resource.h to not exist
(while correctly finding getrlimit).

Checking config.log, I found:

configure:2496: gcc -E  conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/sys/resource.h:27,
                 from configure:2492:
/usr/include/resourcebits.h:103: warning: `RLIM_INFINITY' redefined
/usr/include/asm/resource.h:25: warning: this is the location of the previous definition
configure: failed program was:
#line 2491 "configure"
#include "confdefs.h"
#include <sys/resource.h>

confdefs.h was apparently empty and indeed the following gave the same
warnings:
echo "#include <sys/resource.h>" > t.c
gcc -E t.c >/dev/null

Is this a problem with autoconf not effectively determining if
conftest.out indicates an error, are the include files on my system
broken or should zsh's configure.in be putting some sort of work-around
in confdefs.h?

Looking at the include files, resourcebits.h has the definition:
/* Kinds of resource limit.  */
enum __rlimit_resource
{
 .
 .
 .
  /* Value to indicate that there is no limit.  */
  RLIM_INFINITY = (long int)(~0UL >> 1)
#define RLIM_INFINITY RLIM_INFINITY
};

And in asm/resource.h:
/*
 * SuS says limits have to be unsigned.
 * Which makes a ton more sense anyway.
 */
#define RLIM_INFINITY   (~0UL)

Any ideas? Should I be sending this to the autoconf maintainers? The
problem could have been around a while - I recently cleared out my
autoconf cache to solve another problem (see msg 9602 (thanks Sven
that was the problem)). My old configure cache reported
sys/resource.h's presence but I may have manually edited it -
regenerating the configure script with an old autoconf was no help.

Oliver Kiddle


             reply	other threads:[~2000-03-10 10:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-10 10:27 Oliver Kiddle [this message]
2000-03-10 12:25 ` Bart Schaefer

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=38C8CE15.1FF2D76F@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --cc=zsh-workers@sunsite.auc.dk \
    /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.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).