Subject: bin/6718: mbrlabel doesnt link on LDFLAGS=-static builds
To: None <>
From: Ignatios Souvatzis <>
List: netbsd-bugs
Date: 01/02/1999 21:38:38
>Number:         6718
>Category:       bin
>Synopsis:       mbrlabel doesnt link on arm32
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan  2 12:50:03 1999
>Originator:     Ignatios Souvatzis
>Release:        1998 Dec 30
System: NetBSD emmi 1.3H NetBSD 1.3H (SHARK) #0: Sat Oct  3 17:35:14 BST 1998     root@temporal:/home/rubycon/src-19981001/src/sys/arch/arm32/compile/SHARK arm32

	Compiling mbrlabel.c, the compiler sees two definitions of
	struct mbr_partition on arm32:
	from <machine/disklabel_mbr.h> and from "mbrlabel.h".
	echo LDFLAGS=-static > /etc/mk.conf
	make build

	rename struct mbr_partition to something else in mbrlabel.{h,c}


	create sys/disklabel_mbr.h containing only the structure, and use
	it everywhere, eliminating duplicates.