tools icon indicating copy to clipboard operation
tools copied to clipboard

Cannot get hwk to compile in either Kali or Ubuntu 18.04

Open azmatt opened this issue 5 years ago • 1 comments

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

azmatt avatar Jul 07 '20 21:07 azmatt

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

tobiasgyoerfi avatar Nov 10 '20 18:11 tobiasgyoerfi