Re: FreeBSD 4.6(ish) compilation

"Alan B. Clegg" <[email protected]> Fri, 23 Aug 2002 11:59:47 -0400
Newsgroups gmane.network.wireless.bsd.airtools
Message-ID <[email protected]>
Unless the network is lying to me again, Carl Schmidt said: 
> 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:

> > 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. 

This is incorrect:

--SNIP--
skippy 33} pwd
/usr/include/dev/wi
skippy 34} uname -a
FreeBSD skippy.wetworks.org 4.6-STABLE FreeBSD 4.6-STABLE #7: Sun Aug  4 18:47:27 EDT 2002     [email protected]:/usr/obj/usr/src/sys/skippy  i386
skippy 35} cd /usr/ports/net/bsd-airtools
skippy 36} make clean
===>  Cleaning for bsd-airtools-0.2
skippy 37} make
>> bsd-airtools-v0.2.tgz doesn't seem to exist in /usr/ports/distfiles/.
>> Attempting to fetch from ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/.
fetch: bsd-airtools-v0.2.tgz: File unavailable (e.g., file not found, no access)
>> Attempting to fetch from http://www.dachb0den.com/projects/bsd-airtools/.
Receiving bsd-airtools-v0.2.tgz (78060 bytes): 100%
78060 bytes transferred in 2.4 seconds (32.12 kBps)
===>  Extracting for bsd-airtools-0.2
>> Checksum OK for bsd-airtools-v0.2.tgz.
===>  Patching for bsd-airtools-0.2
===>  Applying FreeBSD patches for bsd-airtools-0.2
===>  Configuring for bsd-airtools-0.2
===>  Building for bsd-airtools-0.2

*** configuring dstumbler v0.4 ***
*** by h1kari - (c) 2001 Dachb0den Labs ***

checking for host os... freebsd
checking for ncurses... yes

freebsd system configured with the following compilation options:
  CFLAGS=-Wall -I/usr/local/include
  LDFLAGS=-L/usr/local/lib -lncurses

at this time you can make any last minute changes to the Makefile if 
needed. once you are satisfied, run make to compile dstumbler.

gcc -Wall -I/usr/local/include -c main.c
gcc -Wall -I/usr/local/include -c misc.c
gcc -Wall -I/usr/local/include -c aps.c
gcc -Wall -I/usr/local/include -c nodes.c
gcc -Wall -I/usr/local/include -c menu.c
gcc -Wall -I/usr/local/include -c wistat.c
gcc -Wall -I/usr/local/include -c gps.c
gcc -Wall -I/usr/local/include -c mon.c
gcc -Wall -I/usr/local/include -c audio.c
gcc -Wall -I/usr/local/include -c log.c
gcc -Wall -I/usr/local/include -o dstumbler main.o misc.o aps.o nodes.o menu.o wistat.o gps.o mon.o audio.o log.o -L/usr/local/lib -lncurses -lpcap
gcc -Wall -g -I/usr/local/include -O2 -c main.c
gcc -Wall -g -I/usr/local/include -O2 -c brute.c
gcc -Wall -g -I/usr/local/include -O2 -c weakksa.c
gcc -Wall -g -I/usr/local/include -O2 -c wordfile.c
gcc -Wall -g -I/usr/local/include -O2 -c wep.c
gcc -Wall -g -I/usr/local/include -O2 -c misc.c
gcc -Wall -g -I/usr/local/include -O2 -o dwepcrack main.o brute.o weakksa.o wordfile.o wep.o misc.o -lpcap -lcrypto
gcc -Wall -I/usr/local/include -c dwepdump.c
gcc -Wall -I/usr/local/include -o dwepdump dwepdump.o -lpcap
gcc -Wall -I/usr/local/include -c dwepkeygen.c
gcc -Wall -I/usr/local/include -o dwepkeygen dwepkeygen.o -lcrypto
gcc -Wall -c prism2ctl.c
gcc -Wall -o prism2ctl prism2ctl.o 
gcc -Wall -c prism2dump.c
gcc -Wall -c misc.c
gcc -Wall -c decode_80211.c
gcc -Wall -c decode_data.c
gcc -Wall -c decode_mgmt.c
gcc -Wall -c decode_ctl.c
gcc -Wall -c fields_80211.c
gcc -Wall -c fields_data.c
gcc -Wall -c fields_mgmt.c
gcc -Wall -o prism2dump prism2dump.o misc.o decode_80211.o decode_data.o decode_mgmt.o decode_ctl.o fields_80211.o fields_data.o fields_mgmt.o -lpcap
skippy 38} 

--SNIP--



AlanC
-- 
               | Alan Clegg | Networks | Security | UNIX | 802.11 | 
   "you just have to be smarter than what you're working on." - Scott Lauren
signature.asc (application/pgp-signature, 230 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE9ZlvzyJP8xSfQVdsRAjBgAJ0Z9VtMP+xTilbtrIpEAoIpY4bHqACdEeGr
EhJQkmX2jDXCpoI0bceUhvA=
=YQ0F
-----END PGP SIGNATURE-----