bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash 2.04 and 2.05 possible bug?


From: Jan Svenungson
Subject: bash 2.04 and 2.05 possible bug?
Date: Mon, 4 Jun 2001 13:15:00 +0200

Hola!
Im trying to build bash2.04 and .05 on my workstation but it wont build.

OS is GNU/Linux, running kernel 2.4.2, glibc 2.1.2, CC=egcs-2.91.66. Dont know 
if you need more info on that...

The ./configure works out ok, then make will give error msg:

gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"' -DCONF_OSTYPE='"linux-gnu"' 
-DCONF_MACHTYPE='"i686-pc-linux-gnu"' -DCONF_VENDOR='"pc"' -DSHELL 
-DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -I.  -I. -I./include -I./lib 
-I/usr/local/include -g -O2 -c shell.c
In file included from shell.h:27,
                 from shell.c:45:
general.h:211: parse error before `string_to_rlimtype'
general.h:211: warning: data definition has no type or storage class
general.h:212: parse error before `int'
make: *** [shell.o] Error 1

I fooled around and edited the config.h from:

#define RLIMTYPE rlim_t
to:
#define RLIMTYPE quad_t

Then it seems to work until make reaches the file execute_cmd.c ... Error msg:

gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"' -DCONF_OSTYPE='"linux-gnu"' 
-DCONF_MACHTYPE='"i686-pc-linux-gnu"' -DCONF_VENDOR='"pc"' -DSHELL 
-DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -I.  -I. -I./include -I./lib 
-I/usr/local/include -g -O2 -c execute_cmd.c
execute_cmd.c: In function `time_command':
execute_cmd.c:981: storage size of `selfb' isn't known
execute_cmd.c:981: storage size of `selfa' isn't known
execute_cmd.c:981: storage size of `kidsb' isn't known
execute_cmd.c:981: storage size of `kidsa' isn't known
execute_cmd.c:991: `RUSAGE_SELF' undeclared (first use in this function)
execute_cmd.c:991: (Each undeclared identifier is reported only once
execute_cmd.c:991: for each function it appears in.)
execute_cmd.c:992: `RUSAGE_CHILDREN' undeclared (first use in this function)
make: *** [execute_cmd.o] Error 1

I figured it might haev something to do with the kernel version so i tried to 
compile on my NFS server instead...

OS on that computer is also GNU/Linux, running kernel 2.2.13 but otherwise 
identical glibc and CC version...
The RLIMTYPE in config.h is:
#define RLIMTYPE rlim_t
on this machine to, if i change it to quad_t on this machine it (w8, compiling 
again ;)) compiles ok...
I dont know how to code C so i cant really look into it and i dont even know if 
this is an apropriate way to contact you, if i mailed the wrong adress, i beg 
your pardon...
Anyways, thats it hope i've been to some use...

-- 

Jan Svenungson | jan.svenungson@linux.nu
The bigger they are, the harder they hit you.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]