Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RNvpi-0000gW-9a for mharc-grub-devel@gnu.org; Tue, 08 Nov 2011 19:16:02 -0500 Received: from eggs.gnu.org ([140.186.70.92]:55257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNvpg-0000fV-KG for grub-devel@gnu.org; Tue, 08 Nov 2011 19:16:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNvpf-0005am-P4 for grub-devel@gnu.org; Tue, 08 Nov 2011 19:16:00 -0500 Received: from rcsinet15.oracle.com ([148.87.113.117]:22244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNvpf-0005ac-G5 for grub-devel@gnu.org; Tue, 08 Nov 2011 19:15:59 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pA90FvU7011805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 Nov 2011 00:15:58 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pA90FuT7023964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 9 Nov 2011 00:15:57 GMT Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pA90FpV7020639 for ; Tue, 8 Nov 2011 18:15:51 -0600 Received: from bergsoft (/10.132.136.136) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 08 Nov 2011 16:15:51 -0800 Date: Tue, 8 Nov 2011 16:14:32 -0800 (PST) From: Seth Goldberg X-X-Sender: sethg@bergsoft To: grub-devel@gnu.org Subject: Issue in netbsd_bootinfo.h Message-ID: User-Agent: Alpine 2.00 (GSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4EB9C63E.006B,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 00:16:01 -0000 Hi, The following structure definition is causing linker failures (not with GNU ld) when building GRUB2: struct grub_netbsd_btinfo_bootwedge { grub_uint32_t biosdev; grub_disk_addr_t startblk; grub_uint64_t nblks; grub_disk_addr_t matchblk; grub_uint64_t matchnblks; grub_uint8_t matchhash[16]; /* MD5 hash */ } __packed; The question is: Is this a valid way to declare a structure with a packed data structure on NetBSD? Or did you mean to add "__attribute__((packed))" there? The linker error is due to multiply-defined __packed symbols: ld: fatal: symbol '__packed' is multiply-defined: (file loader/i386/bsd_module-bsd.o type=OBJT; file loader/i386/bsd_module-bsd32.o type=OBJT); ld: fatal: symbol '__packed' is multiply-defined: (file loader/i386/bsd_module-bsd.o type=OBJT; file loader/i386/bsd_module-bsd64.o type=OBJT); ld: fatal: file processing errors. No output written to bsd.module --S