Re: FreeBSD 4.6(ish) compilation
"M. Warner Losh" <[email protected]> Fri, 23 Aug 2002 07:50:51 -0600 (MDT)
| Newsgroups | gmane.network.wireless.bsd.airtools |
|---|---|
| Message-ID | <[email protected]> |
In message: <[email protected]> Carl Schmidt <[email protected]> writes: : On Fri, Aug 23, 2002 at 10:49:50AM -0400, Jacob Frelinger wrote: : > On Mon, Aug 19, 2002 at 02:35:56PM +0930, Daniel O'Connor wrote: : > > I am trying to compile bsd-airtools on a 4.6-PRERELEASE system, I get : > > the following.. : > > [chowder 14:34] ~/projects/bsd-airtools/dstumbler >./configure : > > : > <SNIP> : > > gcc -Wall -I/usr/local/include -c main.c : > > In file included from main.c:54: : > > dstumbler.h:50: bat/common.h: No such file or directory : > > *** Error code 1 : > > : > > Stop in /usr/home/darius/projects/bsd-airtools/dstumbler. : > > : > > : > > Any hints? : > > I can't find common.h anywhere in the archive, nor in the patches : > > supplied - which I don't believe are necessary to apply to 4.6 as they : > > were merged in but I'm not 100% sure. : > : > if you have a recient enough stable, the whole bsd-airtools has been : > added to the ports collection. see /usr/ports/net/bsd-airtools/ : > : > otherwise you'll have to go though and replace all the #include : > <bat/common.h> with #include <dev/wi/if_wavelan_ieee.h> : : This is incorrect. The port only builds on -CURRENT because -CURRENT has the : /usr/include/dev/wi layout. 4.x does not have this layout therefore : common.h.in (source-mods/common/) must be used. So you mv common.h.in to : common.h and you edit that file to include <machine/if_wavelan_ieee.h>, : which is where the header is located. "common.h" is required on 4.x because : the header changes in -CURRENT have not made it to 4.x. -CURRENT : if_wavelan_ieee.h saw an assimilation of the common.h file from bsd-airtools. Ummmm, you are in error. -stable a before the 4.6-RELEASE has the new layout, but missed a file. Just after the 4.6-Release branch was made, I corrected the missing file, so a new enough -stable doesn't need patches. The port that's in freebsd now does assume that you have a new enough version of -stable or -current, I think. Warner