Subject: problems in 1.5.3 source?
To: None <netbsd-users@netbsd.org>
From: Steve Bellovin <smb@research.att.com>
List: netbsd-users
Date: 03/30/2002 12:12:10
On a 1.5.2 machine, I grabbed the complete current 1.5.3 code via 
anoncvs, and tried to build it.  It died trying to compile libcrypt/crypt.c:

all ===> lib/libcrypt
lint -chapbxzF  -i /usr/src/lib/libcrypt/crypt.c
/usr/src/lib/libcrypt/crypt.c(315): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(493): _PASSWORD_NONDES undefined
/usr/src/lib/libcrypt/crypt.c(520): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(521): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(559): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(559): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(560): warning: conversion to 'long' due to prototype, arg #3
/usr/src/lib/libcrypt/crypt.c(568): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(569): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(570): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(574): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(575): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(576): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(579): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(580): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(612): warning: cast discards 'const' from pointer target type
/usr/src/lib/libcrypt/crypt.c(612): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(613): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(614): warning: cast discards 'const' from pointer target type
/usr/src/lib/libcrypt/crypt.c(614): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(614): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(614): warning: conversion from 'long' may lose accuracy
/usr/src/lib/libcrypt/crypt.c(614): warning: cast discards 'const' from pointer target type
/usr/src/lib/libcrypt/crypt.c(614): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(614): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(617): warning: cast discards 'const' from pointer target type
/usr/src/lib/libcrypt/crypt.c(617): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(617): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(617): warning: cast discards 'const' from pointer target type
/usr/src/lib/libcrypt/crypt.c(617): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(617): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(618): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(619): warning: cast discards 'const' from pointer target type
/usr/src/lib/libcrypt/crypt.c(620): warning: cast discards 'const' from pointer target type
/usr/src/lib/libcrypt/crypt.c(620): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(620): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(620): warning: conversion from 'long' may lose accuracy
/usr/src/lib/libcrypt/crypt.c(620): warning: cast discards 'const' from pointer target type
/usr/src/lib/libcrypt/crypt.c(620): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(620): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(649): warning: conversion from 'long' may lose accuracy
/usr/src/lib/libcrypt/crypt.c(650): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(650): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(650): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(664): warning: cast discards 'const' from pointer target type
/usr/src/lib/libcrypt/crypt.c(664): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(664): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(664): warning: cast discards 'const' from pointer target type
/usr/src/lib/libcrypt/crypt.c(664): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(664): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(671): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(671): warning: conversion from 'long' may lose accuracy
/usr/src/lib/libcrypt/crypt.c(674): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(675): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: conversion from 'long' may lose accuracy
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(723): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(723): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: conversion from 'long' may lose accuracy
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(724): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(724): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(726): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(726): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(726): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(736): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(736): warning: conversion from 'unsigned long' may lose accuracy
/usr/src/lib/libcrypt/crypt.c(737): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(737): warning: conversion from 'unsigned long' may lose accuracy
/usr/src/lib/libcrypt/crypt.c(739): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(745): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(745): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(745): warning: possible pointer alignment problem
/usr/src/lib/libcrypt/crypt.c(745): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(864): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(865): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(866): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(867): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(868): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(869): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(871): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(872): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(873): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(874): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(878): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(882): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(882): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(882): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(882): warning: conversion from 'long' may lose accuracy
/usr/src/lib/libcrypt/crypt.c(886): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(886): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(886): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(886): warning: conversion from 'long' may lose accuracy
/usr/src/lib/libcrypt/crypt.c(911): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(915): warning: bitwise operation on signed value possibly nonportable
/usr/src/lib/libcrypt/crypt.c(900): warning: argument chars_in unused in function init_perm
/usr/src/lib/libcrypt/crypt.c(960): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(960): warning: pointer casts may be troublesome
/usr/src/lib/libcrypt/crypt.c(966): warning: bitwise operation on signed value possibly nonportable
*** Error code 1


		--Steve Bellovin, http://www.research.att.com/~smb
		Full text of "Firewalls" book now at http://www.wilyhacker.com