From owner-freebsd-current@FreeBSD.ORG Fri Dec 17 08:15:03 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D88E16A4CE for ; Fri, 17 Dec 2004 08:15:03 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id B95D343D2D for ; Fri, 17 Dec 2004 08:15:02 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id iBH8ExJG036787; Fri, 17 Dec 2004 02:14:59 -0600 (CST) (envelope-from dan) Date: Fri, 17 Dec 2004 02:14:59 -0600 From: Dan Nelson To: Matt Rowley Message-ID: <20041217081458.GB10368@dan.emsphone.com> References: <20041211004038.GC50516@dragon.nuxi.com> <11A4B937C9C745F2DD5B75EC@elric.arin.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11A4B937C9C745F2DD5B75EC@elric.arin.net> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org Subject: Re: FreeBSD 5.3 and Adaptec raidutils (again) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 08:15:03 -0000 In the last episode (Dec 16), Matt Rowley said: > > In order for the asr(4) utilities to work under FreeBSD 5.x someone > > just needs to convert the ports/sysutils/asr-utils port I made to > > build from sources as a first step -- patch submission welcomed. > > Incidentally, the source code won't build under FreeBSD 5.3. > It barfs out with: > scsi_obj.cpp:424: error: cannot bind packed field > `basic_P->dptBasic_S::attachedTo' to `uLONG& > > I believe that "cannot bind packed field" stuff is a restriction introduced > in gcc 3.4.2, yes? Yes; you can work around it by declaring a temp variable, assigning it the value of attachedTo, making whatever modification is necessary, then assigning attachedTo=temp. Do this every time you get that error. You /might/ also be able to just remove the PACKed attribute from the attachedTo field, but that will cause havoc if the struct is supposed to line up with something generated by the card. -- Dan Nelson dnelson@allantgroup.com