NetBSD Problem Report #1188

From gnats  Sun Jul  2 22:55:01 1995
Received: from wheel.tiac.net (root@wheel.tiac.net [199.3.131.54]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id WAA05859 for <gnats-bugs@gnats.netbsd.org>; Sun, 2 Jul 1995 22:54:58 -0400
Message-Id: <199507030256.WAA00382@wheel.tiac.net>
Date: Sun, 2 Jul 1995 22:56:40 -0400
From: "Gary D. Duzan" <gary@wheel.tiac.net>
Reply-To: gary@wheel.tiac.net
To: gnats-bugs@gnats.netbsd.org
Subject: libsa won't build
X-Send-Pr-Version: 3.2

>Number:         1188
>Category:       port-i386
>Synopsis:       libsa won't build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 03 03:05:02 +0000 1995
>Closed-Date:    Mon Jul 03 04:57:51 +0000 1995
>Last-Modified:  Wed Aug 07 21:35:44 +0000 2002
>Originator:     Gary D. Duzan
>Release:        7/2/1995
>Organization:
	Not much, really...
>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.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gwr 
State-Changed-When: Mon Jul 3 00:57:51 EDT 1995 
State-Changed-Why:  
Removed htonl() from static initializers. 
Now compiles OK on little-endian machines. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.