From owner-freebsd-current@FreeBSD.ORG Fri Dec 17 16:03:31 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 E7D8316A4CE for ; Fri, 17 Dec 2004 16:03:31 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AD1F43D39 for ; Fri, 17 Dec 2004 16:03:31 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id iBHG69Fr061491; Fri, 17 Dec 2004 09:06:09 -0700 (MST) (envelope-from scottl@freebsd.org) Message-ID: <41C30321.5060209@freebsd.org> Date: Fri, 17 Dec 2004 09:02:41 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040929 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Nelson References: <20041211004038.GC50516@dragon.nuxi.com> <11A4B937C9C745F2DD5B75EC@elric.arin.net> <20041217081458.GB10368@dan.emsphone.com> In-Reply-To: <20041217081458.GB10368@dan.emsphone.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: freebsd-current@freebsd.org cc: Matt Rowley 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 16:03:32 -0000 Dan Nelson wrote: > 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. > I'd highly recommend against removing the packed attribute. Scott