pkgsrc-Users archive

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

RE: pkgsrc hash problems on Linux



> > Alright. Check your memory and your compiler. Something is very
> broken
> > on that box :)
> 
> And check the compiler warnings as well. Set CFLAGS="-Wall -Wextra -
> Os",
> and maybe you discover something. In a similar situation I
> discovered
> some 64-bit issue combined with a missing function prototype.

Thanks, Roland.  Finally getting back around to looking at this issue.  I added 
the CFLAGS mentioned to my mk.conf, and tried again.

===> Building for digest-20080510
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"powerpc-unknown-linux-gnu\" 
-DVERSION=\"20080510\"  -Wall -Wextra -Os -c digest.c -o digest.o
digest.c:92: warning: missing initializer
digest.c:92: warning: (near initialization for 'algorithms[0].hash_ctx')
digest.c:95: warning: missing initializer
digest.c:95: warning: (near initialization for 'algorithms[1].hash_ctx')
digest.c:98: warning: missing initializer
digest.c:98: warning: (near initialization for 'algorithms[2].hash_ctx')
digest.c:101: warning: missing initializer
digest.c:101: warning: (near initialization for 'algorithms[3].hash_ctx')
digest.c:104: warning: missing initializer
digest.c:104: warning: (near initialization for 'algorithms[4].hash_ctx')
digest.c:107: warning: missing initializer
digest.c:107: warning: (near initialization for 'algorithms[5].hash_ctx')
digest.c:110: warning: missing initializer
digest.c:110: warning: (near initialization for 'algorithms[6].hash_ctx')
digest.c:113: warning: missing initializer
digest.c:113: warning: (near initialization for 'algorithms[7].hash_ctx')
digest.c:114: warning: missing initializer
digest.c:114: warning: (near initialization for 'algorithms[8].hash_len')
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"powerpc-unknown-linux-gnu\" 
-DVERSION=\"20080510\"  -Wall -Wextra -Os -c md5c.c -o md5c.o
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"powerpc-unknown-linux-gnu\" 
-DVERSION=\"20080510\"  -Wall -Wextra -Os -c rmd160.c -o rmd160.o
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"powerpc-unknown-linux-gnu\" 
-DVERSION=\"20080510\"  -Wall -Wextra -Os -c rmd160hl.c -o rmd160hl.o
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"powerpc-unknown-linux-gnu\" 
-DVERSION=\"20080510\"  -Wall -Wextra -Os -c sha2.c -o sha2.o
sha2.c:178: warning: 'static' is not at beginning of declaration
sha2.c:198: warning: 'static' is not at beginning of declaration
sha2.c:210: warning: 'static' is not at beginning of declaration
sha2.c:254: warning: 'static' is not at beginning of declaration
sha2.c:266: warning: 'static' is not at beginning of declaration
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"powerpc-unknown-linux-gnu\" 
-DVERSION=\"20080510\"  -Wall -Wextra -Os -c sha2hl.c -o sha2hl.o
sha2hl.c: In function 'SHA256_File':
sha2hl.c:103: warning: pointer targets in passing argument 2 of 'SHA256_End' 
differ in signedness
sha2hl.c: In function 'SHA256_End':
sha2hl.c:130: warning: pointer targets in return differ in signedness
sha2hl.c: In function 'SHA384_End':
sha2hl.c:178: warning: pointer targets in assignment differ in signedness
sha2hl.c:191: warning: pointer targets in return differ in signedness
sha2hl.c: In function 'SHA512_End':
sha2hl.c:239: warning: pointer targets in assignment differ in signedness
sha2hl.c:252: warning: pointer targets in return differ in signedness
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"powerpc-unknown-linux-gnu\" 
-DVERSION=\"20080510\"  -Wall -Wextra -Os -c md5hl.c -o md5hl.o
md5hl.c: In function 'MD5File':
md5hl.c:104: warning: comparison of unsigned expression < 0 is always false
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"powerpc-unknown-linux-gnu\" 
-DVERSION=\"20080510\"  -Wall -Wextra -Os -c sha1.c -o sha1.o
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"powerpc-unknown-linux-gnu\" 
-DVERSION=\"20080510\"  -Wall -Wextra -Os -c sha1hl.c -o sha1hl.o
sha1hl.c: In function 'SHA1File':
sha1hl.c:89: warning: comparison of unsigned expression < 0 is always false
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"powerpc-unknown-linux-gnu\" 
-DVERSION=\"20080510\"  -Wall -Wextra -Os -c tiger.c -o tiger.o
tiger.c: In function 'TIGERFinal':
tiger.c:712: warning: unused parameter 'digest'
gcc -DHAVE_CONFIG_H -I. -I. -DHOST=\"powerpc-unknown-linux-gnu\" 
-DVERSION=\"20080510\"  -Wall -Wextra -Os -c whirlpool.c -o whirlpool.o
whirlpool.c: In function 'whirlpool_end':
whirlpool.c:1640: warning: pointer targets in passing argument 1 of 
'whirlpool_finalize' differ in signedness
gcc -Wall -Wextra -Os -Wl,-R/usr/pkg/lib -o digest digest.o md5c.o rmd160.o 
rmd160hl.o sha2.o sha2hl.o  md5hl.o sha1.o sha1hl.o tiger.o whirlpool.o
=> Unwrapping files-to-be-installed.


Home | Main Index | Thread Index | Old Index