From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id XAA28802 for ; Mon, 1 Jul 1996 23:44:44 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id JAA05157; Mon, 1 Jul 1996 09:28:29 -0400 (EDT) Resent-Date: Mon, 1 Jul 1996 09:28:29 -0400 (EDT) Message-Id: <199607011328.JAA05138@euclid.skiles.gatech.edu> Date: Mon, 1 Jul 1996 15:27:48 +0200 From: "Bas V. de Bakker" To: zsh-workers@math.gatech.edu Subject: pre1 on hpux bug Resent-Message-ID: <"z4Gkc1.0.SG1.y9zrn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1494 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Compiling zsh-3.0-pre1 on HPUX 10.10 crashes with gcc -c -I.. -I. -I. -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O2 -DDEBUG builtin.c In file included from zsh.h:35, from builtin.c:32: system.h:366: warning: `RLIM_NLIMITS' redefined /usr/include/sys/resource.h:134: warning: this is the location of the previous definition builtin.c:3590: #error there are some unknown limits. Fix me! make[1]: *** [builtin.o] Error 1 This is easiliy fixed by the following patch: *** system.h.orig Mon Jul 1 15:17:34 1996 --- system.h Mon Jul 1 15:17:51 1996 *************** *** 350,371 **** #ifdef HAVE_SYS_RESOURCE_H # include - # ifdef __hpux - /* HPUX does have the BSD rlimits in the kernel. Officially they are * - * unsupported but quite a few of them like RLIMIT_CORE seem to work. * - * All the following are in the but made visible * - * only for the kernel. */ - # define RLIMIT_CPU 0 - # define RLIMIT_FSIZE 1 - # define RLIMIT_DATA 2 - # define RLIMIT_STACK 3 - # define RLIMIT_CORE 4 - # define RLIMIT_RSS 5 - # define RLIMIT_NOFILE 6 - # define RLIMIT_OPEN_MAX RLIMIT_NOFILE - # define RLIM_NLIMITS 7 - # define RLIM_INFINITY 0x7fffffff - # endif #endif /* we use the SVR4 constant instead of the BSD one */ --- 350,355 ---- Note that all these definitions are in , but with RLIMIT_AS added and RLIM_NLIMITS defined to 8. The presence of this code suggests that some earlier version of hpux needs this. But as we don't have any other versions here, I'm afraid I'll leave figuring out the details to someone else. Bas.