Sample Header Ad - 728x90

I have a problem while installing mdk4 on Arch based system

0 votes
1 answer
613 views
When I try to install /aicrack-ng/mdk4 I get:
: ld returned 1 exit status makeReferenced image: *** [Makefile:38: mdk4] Error 1 makeReferenced image: Leaving directory '/home/u4/mdk4/src' make: *** [Makefile:10: all] Error 2
This is the end of the output (since when I submit the whole output it is considered as a spam) when I run 'make' in the mdk4 folder.
-g -O3 -Wall -Wextra   -c -o wids.o wids.c
makeReferenced image: Leaving directory '/home/u4/mdk4/src/attacks'
make -C attacks
makeReferenced image: Entering directory '/home/u4/mdk4/src/attacks'
makeReferenced image: Nothing to be done for 'all'.
makeReferenced image: Leaving directory '/home/u4/mdk4/src/attacks'
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk4-v1 -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3  -g -O3 -Wall -Wextra -fcommon  mdk4.c osdep/libosdep.a debug.o helpers.o mac_addr.o linkedlist.o greylist.o dumpfile.o packet.o brute.o osdep.o channelhopper.o ghosting.o fragmenting.o attacks/attacks.o attacks/auth_dos.o attacks/beacon_flood.o attacks/countermeasures.o attacks/deauth.o attacks/dummy.o attacks/eapol.o attacks/fuzzer.o attacks/ieee80211s.o attacks/probing.o attacks/wids.o -o mdk4 -lnl-genl-3 -lnl-3  -lm -Losdep -losdep -lpthread -lpcap
/usr/bin/ld: attacks/auth_dos.o:/home/u4/mdk4/src/attacks/attacks.h:39: multiple definition of `attack_count'; attacks/attacks.o:/home/u4/mdk4/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/beacon_flood.o:/home/u4/mdk4/src/attacks/beacon_flood.c:34: multiple definition of `bssid'; attacks/auth_dos.o:/home/u4/mdk4/src/attacks/auth_dos.c:50: first defined here
/usr/bin/ld: attacks/beacon_flood.o:/home/u4/mdk4/src/attacks/attacks.h:39: multiple definition of `attack_count'; attacks/attacks.o:/home/u4/mdk4/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/countermeasures.o:/home/u4/mdk4/src/attacks/attacks.h:39: multiple definition of `attack_count'; attacks/attacks.o:/home/u4/mdk4/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/deauth.o:/home/u4/mdk4/src/attacks/deauth.c:19: multiple definition of `bssid'; attacks/auth_dos.o:/home/u4/mdk4/src/attacks/auth_dos.c:50: first defined here
/usr/bin/ld: attacks/deauth.o:/home/u4/mdk4/src/attacks/attacks.h:39: multiple definition of `attack_count'; attacks/attacks.o:/home/u4/mdk4/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/dummy.o:/home/u4/mdk4/src/attacks/attacks.h:39: multiple definition of `attack_count'; attacks/attacks.o:/home/u4/mdk4/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/eapol.o:/home/u4/mdk4/src/attacks/attacks.h:39: multiple definition of `attack_count'; attacks/attacks.o:/home/u4/mdk4/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/fuzzer.o:/home/u4/mdk4/src/attacks/attacks.h:39: multiple definition of `attack_count'; attacks/attacks.o:/home/u4/mdk4/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/ieee80211s.o:/home/u4/mdk4/src/attacks/attacks.h:39: multiple definition of `attack_count'; attacks/attacks.o:/home/u4/mdk4/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/probing.o:/home/u4/mdk4/src/attacks/attacks.h:39: multiple definition of `attack_count'; attacks/attacks.o:/home/u4/mdk4/src/attacks/attacks.h:39: first defined here
/usr/bin/ld: attacks/wids.o:/home/u4/mdk4/src/attacks/attacks.h:39: multiple definition of `attack_count'; attacks/attacks.o:/home/u4/mdk4/src/attacks/attacks.h:39: first defined here
collect2: error: ld returned 1 exit status
makeReferenced image: *** [Makefile:38: mdk4] Error 1
makeReferenced image: Leaving directory '/home/u4/mdk4/src'
make: *** [Makefile:10: all] Error 2
- And then I found this solution on github: Installation git clone https://github.com/aircrack-ng/mdk4 cd mdk4 make sudo make install # Using Arch Linux (and derived) append CC=clang after any make in commands. But the thing is I have no idea how to do this > append CC=clang after any make in commands. I use manjaro with bspwm environment What should I do? edit: So I did the CC=clang thing and this time the error is slightly different: ` error: linker command failed with exit code 1 (use -v to see invocation) makeReferenced image: *** [Makefile:38: mdk4] Error 1 makeReferenced image: Leaving directory '/home/u4/mdk4/src' make: *** [Makefile:10: all] Error 2` edit: The first screenshot is the beginning of the output and the seconde one is the end of the output. The beginning of the output The end of the output
Asked by user443355 (1 rep)
Nov 24, 2020, 05:33 AM
Last activity: Nov 25, 2020, 02:37 PM