bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Problem installing time-1.7 on Solaris SPARC 2.8


From: Paul Eggert
Subject: Re: Problem installing time-1.7 on Solaris SPARC 2.8
Date: Wed, 18 Apr 2001 06:15:40 -0700 (PDT)

> From: Jim McMaster <address@hidden>
> Date: Thu, 12 Apr 2001 16:09:47 -0600
> 
> I am trying to install time-1.7 on Solaris 2.8.  It will not make.  I get:
> 
> </usr/local/time-1.7> tatanka.mcmaster{58} gmake
> gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_STRING_H=1 -DRETSIGTYPE=void -DHAVE_TIMEVAL=1 -DHAVE_VPRINTF=1 
> -DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1  -I. -I.    -g -O time.c
> In file included from time.c:34:
> resuse.h:44: redefinition of `struct rusage'
> time.c: In function `main':
> time.c:633: warning: return type of `main' is not `int'
> gmake: *** [time.o] Error 1

I don't get that error when building time-1.7 on Solaris 2.8.
Here's what I get:

gcc -c -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 
-DRETSIGTYPE=void -DHAVE_TIMEVAL=1 -DHAVE_VPRINTF=1 -DHAVE_WAIT3=1 
-DHAVE_STRERROR=1 -DHAVE_GETPAGESIZE=1  -I. -I..   -g -O ../time.c
../time.c: In function `main':
../time.c:633: warning: return type of `main' is not `int'

My invocation of GCC defines HAVE_WAIT3 but yours does not.  This is
odd, since the C library defines wait3 in Solaris 8.  You might want
to see why that is occurring on your box, as that is what is causing
your problem.  You can work around the problem by hand by putting
-DHAVE_WAIT3 in your Makefile.

If it matters, I'm using GCC 2.95.3 on Solaris 8 01/01 with all the
recommended Solaris 8 patches.



reply via email to

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