From owner-freebsd-ports@FreeBSD.ORG Thu Nov 8 16:04:45 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B31516A419 for ; Thu, 8 Nov 2007 16:04:45 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id DF45713C4B6 for ; Thu, 8 Nov 2007 16:04:44 +0000 (UTC) (envelope-from sam@errno.com) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id lA8Fg9mc008922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Nov 2007 07:42:09 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <47332E51.8030700@errno.com> Date: Thu, 08 Nov 2007 07:42:09 -0800 From: Sam Leffler User-Agent: Thunderbird 2.0.0.6 (X11/20070814) MIME-Version: 1.0 To: Andrew Thompson References: <20071107182928.GA66533@sepulcator.local.yandex.ru> <473297D0.6010705@FreeBSD.org> <20071108055010.GA62962@heff.fud.org.nz> <20071108092241.GC1777@sepulcator.yandex.ru> <20071108093531.GA65172@heff.fud.org.nz> In-Reply-To: <20071108093531.GA65172@heff.fud.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-Rhyolite-Metrics: o.com; whitelist Cc: freebsd-net@freebsd.org, Denis Barov , freebsd-ports@freebsd.org Subject: Re: net-mgmt/bsd-airtools broken not because of gcc4 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 16:04:45 -0000 Andrew Thompson wrote: > On Thu, Nov 08, 2007 at 12:22:41PM +0300, Denis Barov wrote: > >> On Thu Nov 08, 2007 at 18:50:10 +1300, Andrew Thompson wrote: >> >>> On Thu, Nov 08, 2007 at 08:00:00AM +0300, Sergey Matveychuk wrote: >>> >>>> Denis Barov wrote: >>>> >>>>> Hi all! >>>>> I found, that port net-mgmt/bsd-airtools marked as broken: >>>>> BROKEN= Does not compile with GCC 4.2 >>>>> but, it's not really so. It's broken after Wed Jul 11 21:25:48 2007 UTC >>>>> commit by >>>>> thompsa@freebsd.org, when some ioctls was deleted from kernel. >>>>> For example, after patching /usr/include/dev/wi/if_wavelan_ieee.h >>>>> bsd-airtools compiled well: >>>>> --- /usr/include/dev/wi/if_wavelan_ieee.h 2007-11-07 >>>>> >>>> I guess you should back not just these header definitions but ioctl >>>> implementations too. Or ask thompsa if you could use something instead. >>>> >>> The net80211 system supports the IEEE80211_IOC_SCAN_REQ and >>> IEEE80211_IOC_SCAN_RESULTS ioctls which work on _all_ wireless >>> interfaces. These have been present since 6.0 and the above wi(4) >>> specific interface have been removed as the driver has been brought into >>> line. >>> >> Does that mean I need to rewrite some bsd-airtools code? >> > > Yes, src/sbin/ifconfig/ifieee80211.c is the best reference and others > have already converted other wireless scanning apps. > > I can't recall if dstumbler is part of airtools but I've had a hack port to the new ioctls sitting here for years: http://www.freebsd.org/~sam/dstumbler.tgz It's certainly bitrot'd. I gave up trying to get the maintainer's attention long ago. OTOH ifconfig's code is definitely the best reference right now. wpa_supplicant also does scanning; check usr.sbin/wpa/wpa_supplicant/driver_freebsd.c. Sam