Subject: Re: pkg/31901: build of pkgtools/digest on Tru64 5.1 fails
To: None <svs+pr@grep.ru>
From: grant beattie <grant@NetBSD.org>
List: pkgsrc-bugs
Date: 10/27/2005 20:06:52
On Sun, Oct 23, 2005 at 09:47:00PM +0000, svs+pr@grep.ru wrote:

> >Number:         31901
> >Category:       pkg
> >Synopsis:       build of pkgtools/digest on Tru64 5.1 fails
> >Confidential:   no
> >Severity:       serious
> >Priority:       low
> >Responsible:    pkg-manager
> >State:          open
> >Class:          sw-bug
> >Submitter-Id:   net
> >Arrival-Date:   Sun Oct 23 21:47:00 +0000 2005
> >Originator:     Sergey Svishchev
> >Release:        
> >Organization:
> >Environment:
> >Description:
> Build chokes on missing definition of int64_t:
> 
> cc -DHAVE_CONFIG_H -I. -I. -DHOST=\"alpha-dec-osf5.1\" -DVERSION=\"20050323\"  -O2 -c whirlpool.c -o whirlpool.o
> cc: Error: whirlpool.c, line 1449: In this declaration, "int64_t" must specify a type. (badparsedecl)
>     int64_t sourceBits = sourceBytes * 8;
> <...>
> 
> >How-To-Repeat:
> 
> >Fix:
> --- pkgtools/digest/files/whirlpool.c	24 Mar 2005 15:37:40 -0000	1.2
> +++ pkgtools/digest/files/whirlpool.c	3 Oct 2005 12:26:16 -0000
> @@ -71,6 +71,8 @@
>  #include <unistd.h>
>  #include <time.h>
>  
> +#include <digest-types.h>
> +
>  #include "whirlpool.h"
>  
>  /*
> 

I added this #include to whirlpool.c back in August to fix the same
problem observed on BSD/OS.

I suspect, based on the datestamp of the diff you provided, that you
are using an older pkgsrc branch which did not have this change.. or
that you need to update your tree if using pkgsrc-current.

grant.