Subject: port-i386/1188: libsa won't build
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: Gary D. Duzan <gary@wheel.tiac.net>
List: netbsd-bugs
Date: 07/02/1995 23:05:04
>Number: 1188
>Category: port-i386
>Synopsis: libsa won't build
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 2 23:05:02 1995
>Originator: Gary D. Duzan
>Organization:
Not much, really...
>Release: 7/2/1995
>Environment:
System: NetBSD wheel.tiac.net 1.0A NetBSD 1.0A (WHEEL) #1: Fri Jun 23 19:08:42 EDT 1995 gary@wheel.tiac.net:/usr/src/sys/arch/i386/compile/WHEEL i386
>Description:
cc -O -DSTANDALONE -DCOMPAT_UFS -I/usr/src/sys/lib/libsa -I/usr/src/sys/lib/libsa/../.. -c /usr/src/sys/lib/libsa/nfs.c
/usr/src/sys/lib/libsa/nfs.c:97: braced-group within expression allowed only inside a function
/usr/src/sys/lib/libsa/nfs.c:98: braced-group within expression allowed only inside a function
/usr/src/sys/lib/libsa/nfs.c:99: parse error before `:'
/usr/src/sys/lib/libsa/nfs.c:99: warning: data definition has no type or storage class
/usr/src/sys/lib/libsa/nfs.c:99: parse error before `}'
*** Error code 1
Stop.
>How-To-Repeat:
cd sys/lib/libsa ; make (or just make build)
>Fix:
The problem seems to be with htonl, or its use here, since
it uses __byte_swap_long, which uses __byte_swap_long_variable,
and we are dealing with a constant here. Redo htonl, or use
__byte_swap_long_constant.
>Audit-Trail:
>Unformatted: