Subject: bin/6718: mbrlabel doesnt link on LDFLAGS=-static builds
To: None <gnats-bugs@gnats.netbsd.org>
From: Ignatios Souvatzis <is@jocelyn.rhein.de>
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
>Last-Modified:
>Originator:     Ignatios Souvatzis
>Organization:
	myself
>Release:        1998 Dec 30
>Environment:
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


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

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

	Fix:

	create sys/disklabel_mbr.h containing only the structure, and use
	it everywhere, eliminating duplicates.
>Audit-Trail:
>Unformatted: