Skip navigation.

Syndicate

Syndicate content

User login

Building aircrack-ng on OpenBSD 4.1 i386

This is a post to remind myself how to build aircrack-ng on OpenBSD, since I always seem to forget.

The standard OpenBSD make tool doesn’t support $(shell ...) commands, thus the REVISION variable gets set to an empty string instead of 0. As a result, all the code that references the _REVISION macro doesn’t compile right. The failure looks like this:

# make
gcc -O2 -pipe  -D_FILE_OFFSET_BITS=64 -D_REVISION= src/aircrack-ng.c src/crypto.c src/sha1-mmx.S src/common.c src/aircrack-ptw-lib.c -o aircrack-ng -lpthread
src/aircrack-ng.c: In function `main':
src/aircrack-ng.c:2996: error: syntax error before ')' token
*** Error code 1

Stop in /home/anelson/aircrack-ng-0.9.1 (line 27 of Makefile).

The solution is to use GNU make, which under OpenBSD must be installed using the gmake port, and run using gmake instead of make.

When using gmake install to install, I always have to comment out the Makefile line that installs the stuff into SBINDIR, since there are no sbin files; otherwise the install fails thusly:

install -m 755  /sbin
usage: install [-bCcdpSs] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner]
               source [...] target [...]
gmake: *** [install] Error 64

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

air line crack in newly construted building

hello sir , i want to know a solution of air line crack in newly construted building ,how to avoid the air crack .

anelson's picture

Uhh. Use WPA/PSK AES with a

Uhh. Use WPA/PSK AES with a strong passphrase, and maybe a VPN on top of that.