Re: Bug#144819: time: Fail to compile on alpha
On Sun, Apr 28, 2002 at 10:39:11AM +0200, Petter Reinholdtsen wrote:
>
> Package: time
> Version: 1.7-12
> Severity: serious
>
> The current source fail to build on alpha. The problem is that
> configure fail to detect a working wait3(), but the struct rusage is
> already defined.
>
> checking for sys/rusage.h... no
> checking for working const... yes
> checking for pid_t... yes
> checking for size_t... yes
> checking return type of signal handlers... void
> checking for struct timeval in sys/time.h... yes
> checking for vprintf... yes
> checking for wait3 that fills in rusage... no
This is the actual bug, and it might be an autoconf issue ...
> [...]
> 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. -O2
> -g -Wall time.c
> In file included from time.c:34:
> resuse.h:44: redefinition of `struct rusage'
... as in resuse.h, we have
#if HAVE_SYS_RUSAGE_H
/* This rusage structure measures nanoseconds instead of microseconds. */
# define TV_MSEC tv_nsec / 1000000
# include <sys/rusage.h>
#else
# define TV_MSEC tv_usec / 1000
# if HAVE_WAIT3
# include <sys/resource.h>
# else
/* Process resource usage structure. */
struct rusage
{
struct timeval ru_utime; /* User time used. */
struct timeval ru_stime; /* System time used. */
int ru_maxrss, ru_ixrss, ru_idrss, ru_isrss,
ru_minflt, ru_majflt, ru_nswap, ru_inblock,
ru_oublock, ru_msgsnd, ru_msgrcv, ru_nsignals,
ru_nvcsw, ru_nivcsw;
};
# endif
#endif
so that the redefinition is only use when HAVE_WAIT3 fails. Now, we don't
need the redifinition, but autoconf doesn't tell us.
Any debian-alpha people here who could comment on this? Should we add an
additional "or if ALPHA_LINUX" on Alpha?
Dirk
> I do not have an alpha, so I can't suggest any workarounds. This bug
> is serious as it keeps the latest version out of Woody. From
> update-excuses:
>
> - time (1.7-11 to 1.7-12)
> - Maintainer: Dirk Eddelbuettel
> - 14 days old (needed 10 days)
> - out of date on alpha: time (from 1.7-11)
> - Not considered
--
Good judgement comes from experience; experience comes from bad judgement.
-- Fred Brooks
--
To UNSUBSCRIBE, email to debian-alpha-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: