Cannot get hwk to compile in either Kali or Ubuntu 18.04
Getting the following errors when I run make
cc -O2 -s -std=gnu99 -Wall -Wextra -pedantic -Iinclude -o bin/hawk src/hawk.c src/*.o -pthread -lpcap
/usr/bin/ld: src/field.o: relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: src/iw.o: relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: src/list.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
Hi @azmatt,
thanks for opening an issue on this. The release archive hwk-0.4.tar.gz contains some outdated binary object files, just run make clean && make so the tool gets recompiled.
Kind regards