NetBSD Problem Report #33431
From bernd@arresum.veego.de Sun May 7 04:52:06 2006
Return-Path: <bernd@arresum.veego.de>
Received: from sklave3.rackland.de (sklave3.rackland.de [88.198.248.38])
by narn.netbsd.org (Postfix) with ESMTP id 4C93663B898
for <gnats-bugs@gnats.NetBSD.org>; Sun, 7 May 2006 04:52:05 +0000 (UTC)
Message-Id: <200605070451.k474pnR0028628@arresum.veego.de>
Date: Sun, 7 May 2006 06:51:49 +0200 (CEST)
From: Bernd Ernesti <pr200605@veego.de>
Reply-To: Bernd Ernesti <pr200605@veego.de>
To: gnats-bugs@netbsd.org, Jason Thorpe <thorpej@NetBSD.org>
Subject: i386 stand doesn't compile
X-Send-Pr-Version: 3.95
>Number: 33431
>Category: port-i386
>Synopsis: i386 stand doesn't compile
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: thorpej
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 07 04:55:00 +0000 2006
>Closed-Date: Mon Aug 28 14:52:16 +0000 2006
>Last-Modified: Mon Aug 28 14:52:16 +0000 2006
>Originator: Bernd Ernesti
>Release: NetBSD 3.99.19
>Organization:
>Environment:
System: NetBSD 3.99.19
Architecture: i386
Machine: i386
>Description:
The i386 stand subdirectory can not be compiled after libprop was
added:
# compile kern/prop_array.o
cc -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Os -ffreestanding -Werror -mcpu=i386 -I/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/arch/i386 -DBOOTXX -I /src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../lib -I /usr/obj/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1 -DBOOTXX_SECTORS=15 -DPRIMARY_LOAD_ADDRESS=0x600 -DSECONDARY_LOAD_ADDRESS=0x10000 -DXXfs_open=ffsv1_open -DXXfs_close=ffsv1_close -DXXfs_read=ffsv1_read -DXXfs_stat=ffsv1_stat -DFS=ffsv1 -DNO_LBA_CHECK -nostdinc -D_STANDALONE -I/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../../ -DLIBSA_SINGLE_FILESYSTEM=xxfs -DLIBSA_NO_TWIDDLE -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS -DLIBSA_NO_FS_WRITE -DLIBSA_NO_FS_SEEK -DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET -DLIBSA_SINGLE_DEVICE=blkdev -DLIBKERN_OPTIMISE_SPACE -D"blkdevioctl(x,y,z)=EINVAL" -D"blkdevclose(f)=0" -D"devopen(f,n,fl)=(*(fl)=(void *)n,0)" -DLIBSA_NO_DISKLABEL_MSGS -I/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/quad -I/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/string -I/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/arch/i386/string -I/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/quad -I/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/string -I/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libc/arch/i386/string -c /src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libkern/../../../common/lib/libprop/prop_array.c -o prop_array.o
/src/common/lib/libprop/prop_array.c:39:29: prop/prop_array.h: No such file or directory
In file included from /src/common/lib/libprop/prop_array.c:40:
Note the missing include for src/common/include.
I tried to change src/common/lib/libprop/Makefile.inc to:
COMMON_DIR:=${.PARSEDIR}
.PATH: ${COMMON_DIR}
SRCS+= prop_array.c prop_bool.c prop_data.c prop_dictionary.c \
prop_number.c prop_object.c prop_string.c
CPPFLAGS+=-I${COMMON_DIR}/../../include
But that caused an error:
In file included from /src/common/include/prop/prop_array.h:42,
from /src/common/lib/libprop/prop_array.c:39:
/src/common/include/prop/prop_object.h:46: error: redefinition of `boolean_t'
/src/sys/sys/types.h:197: error: `boolean_t' previously declared here
*** Error code 1
Maybe src/common/include/prop/prop_array.h needs an check for _STANDALONE too.
>How-To-Repeat:
cd src/sys/arch/i386/stand
make
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: port-i386-maintainer->thorpej
Responsible-Changed-By: veego@netbsd.org
Responsible-Changed-When: Sun, 07 May 2006 05:49:19 +0000
Responsible-Changed-Why:
Jason added this code.
From: Havard Eidnes <he@NetBSD.org>
To: gnats-bugs@netbsd.org, pr200605@veego.de
Cc: netbsd-bugs@netbsd.org
Subject: Re: port-i386/33431: i386 stand doesn't compile
Date: Tue, 09 May 2006 11:32:57 +0200 (CEST)
With -current sources, I don't see the first build problem -- for
me prop_array.c and the other libprop objects build just fine in
the i386/stand tree. The .d file for prop_array.c indicates that
it picks up prop_array.h from $DESTDIR/usr/include/prop/.
As for the second problem, could you please retry the build with
revision 1.2 of common/include/prop/prop_object.h (and make sure
it gets installed before rebuilding)? I think this revision
fixes the problem with redefined boolean_t.
Regards,
- H=E5vard
From: Izumi Tsutsui <tsutsui@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/33431 CVS commit: src/sys/lib/libkern
Date: Mon, 28 Aug 2006 13:34:19 +0000 (UTC)
Module Name: src
Committed By: tsutsui
Date: Mon Aug 28 13:34:18 UTC 2006
Modified Files:
src/sys/lib/libkern: Makefile
Log Message:
Add src/common/include to include header search path so that
standalone programs can be built without installed ${DESTDIR} tree.
Okayed by christos, and should close PR 33431.
To generate a diff of this commit:
cvs rdiff -r1.80 -r1.81 src/sys/lib/libkern/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: tsutsui@netbsd.org
State-Changed-When: Mon, 28 Aug 2006 23:52:16 +0900
State-Changed-Why:
Fix committed.
>Unformatted:
(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.