uname output: SunOS suntools 4.1.1_U1 1 sun3x
Machine Type: m68k-sun-sunos4.1.1_U1
Bash Version: 4.3
Patch Level: 42
Release Status: release
Description:
if running the configure script on SunOS4 the following WARNING occurs:
./configure `cat /export/home/klausz/src/conf_bash-4.3.30`
checking build system type... m68k-sun-sunos4.1.1_U1
checking host system type... m68k-sun-sunos4.1.1_U1
Beginning configuration for bash-4.3-release for m68k-sun-sunos4.1.1_U1
checking for gcc... gcc
...
checking sys/resource.h usability... no
checking sys/resource.h presence... yes
configure: WARNING: sys/resource.h: present but cannot be compiled
configure: WARNING: sys/resource.h: check for missing prerequisite
headers?
configure: WARNING: sys/resource.h: see the Autoconf documentation
configure: WARNING: sys/resource.h: section "Present But Cannot Be
Compiled"
configure: WARNING: sys/resource.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------- ##
configure: WARNING: ## Report this to bug-bash@gnu.org ##
configure: WARNING: ## ------------------------------- ##
checking for sys/resource.h... no
...
checking for snprintf... no <---- no warning here - but!
...
this leads to the following compilation errors later on:
execute_cmd.c: In function `time_command':
execute_cmd.c:1268: storage size of `selfb' isn't known
execute_cmd.c:1268: storage size of `selfa' isn't known
execute_cmd.c:1268: storage size of `kidsb' isn't known
execute_cmd.c:1268: storage size of `kidsa' isn't known
execute_cmd.c:1282: `RUSAGE_SELF' undeclared (first use in this function)
execute_cmd.c:1282: (Each undeclared identifier is reported only once
execute_cmd.c:1282: for each function it appears in.)
execute_cmd.c:1283: `RUSAGE_CHILDREN' undeclared (first use in this
function)
gmake: *** [execute_cmd.o] Error 1
Hi Chet,
I have no clue how to fix the bashversion linking error in the configure
script, besides modifying config.h after
configure has done it's work. However, the compile error in
execute_cmd.c, is directly related to the failed
autoconf test for <sys/resource.h> from above. On SunOS4 a test for
/usr/include/sys/resource.h needs to
include /usr/include/sys/time.h to be successful.
from config.log:
configure:9287: checking sys/resource.h usability
configure:9287: gcc -c -O2 conftest.c >&5
In file included from conftest.c:147:
/usr/include/sys/resource.h:24: field `ru_utime' has incomplete type
/usr/include/sys/resource.h:25: field `ru_stime' has incomplete type
configure:9287: $? = 1
from /usr/include/sys/resource.h:
23 struct rusage {
24 struct timeval ru_utime; /* user time used */
25 struct timeval ru_stime; /* system time used */
from /usr/include/sys/time.h:
16 struct timeval {
17 long tv_sec; /* seconds */
18 long tv_usec; /* and microseconds */
19 };
including <sys/time.h> before checking <sys/resource.h> works.
Other useful information:
configure options used: