Subject: libc fails to build after SHA2 additions
To: Elad Efrat <elad@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: current-users
Date: 08/20/2005 20:40:57
Hi,

libc fails to build as follows:

#   compile  libc/sha2.ln
CC=/opt/tools/i386/bin/i386--netbsdelf-gcc /opt/tools/i386/bin/i386--netbsdelf-lint -chapbxzF -w -X 272 -d /opt/dst/i386/usr/include  -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include -I/usr/src/lib/libc -DHESIOD -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS -I/usr/src/libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn -DCITRUS_ICONV -DWITH_RUNE -I/usr/src/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DPORTMAP -DFLOATING_POINT -DALL_STATE -DUSG_COMPAT    -i /usr/src/lib/libc/hash/sha2/sha2.c
/usr/src/lib/libc/hash/sha2/sha2.c(419): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(419): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(505): warning: conversion from 'unsigned long long' to 'unsigned int' may lose accuracy [132]
/usr/src/lib/libc/hash/sha2/sha2.c(516): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(516): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(528): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(528): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(543): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(543): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(551): warning: conversion from 'unsigned long long' to 'unsigned int' may lose accuracy [132]
/usr/src/lib/libc/hash/sha2/sha2.c(568): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(568): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(581): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(581): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(584): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(584): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(708): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(708): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(795): warning: conversion from 'unsigned long long' to 'unsigned int' may lose accuracy [132]
/usr/src/lib/libc/hash/sha2/sha2.c(806): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(806): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(818): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(818): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(835): warning: conversion from 'unsigned long long' to 'unsigned int' may lose accuracy [132]
/usr/src/lib/libc/hash/sha2/sha2.c(853): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(853): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(866): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(866): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(867): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(867): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(870): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(870): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(874): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(874): warning: pointer casts may be troublesome [247]
/usr/src/lib/libc/hash/sha2/sha2.c(917): warning: possible pointer alignment problem [135]
/usr/src/lib/libc/hash/sha2/sha2.c(917): warning: pointer casts may be troublesome [247]
[...]
Stop.
nbmake: stopped in /usr/src/lib/libc


Cheers, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~