Subject: Re: pkgsrc on Linux
To: Marcus Habermehl (BMH1980) <bmh1980de@yahoo.de>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/01/2006 22:26:01
On Thu, 2 Mar 2006, Marcus Habermehl (BMH1980) wrote:

> gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"i686-pc-linux-gnu\"
> -DVERSION=\"20050731\"  -g -O2 -c sha2.c -o sha2.o
> sha2.c:273: warning: large integer implicitly truncated to unsigned type
...
> sha2.c:585: warning: right shift count >= width of type
> sha2.c:585: warning: left shift count >= width of type
> sha2.c: In function 'SHA512_Transform':
...
> gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"i686-pc-linux-gnu\"
> -DVERSION=\"20050731\"  -g -O2 -c sha2hl.c -o sha2hl.o
> sha2hl.c: In function 'SHA256_File':
> sha2hl.c:99: warning: passing argument 2 of 'SHA256_Update' from incompatible
> pointer type
> sha2hl.c:104: warning: pointer targets in passing argument 2 of 'SHA256_End'
> differ in signedness
> sha2hl.c: In function 'SHA256_End':
> sha2hl.c:119: warning: passing argument 1 of 'SHA256_Final' from incompatible
> pointer type
> sha2hl.c:131: warning: pointer targets in return differ in signedness
> sha2hl.c: At top level:
> sha2hl.c:136: error: conflicting types for 'SHA256_Data'
> ./sha2.h:102: error: previous declaration of 'SHA256_Data' was here

I think this the same error as seen in PR #32323.
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=32323

It includes a fix too. I haven't had the problem myself on many Linux 
systems. (But I will look into getting this fixed.)

 Jeremy C. Reed

 	  	 	 technical support & remote administration
	  	 	 http://www.pugetsoundtechnology.com/