janbbeck / weplab-0.1.6

WEP key cracking program. Can use statistical methods or brute force.
GNU General Public License v2.0
0 stars 0 forks source link

Multiple definition of 'variable' #1

Open codi639 opened 9 months ago

codi639 commented 9 months ago

Hey, I know it's been a long time, but I'm trying to get weplab. But when I'm doing the make command (after the configure) I got an issue: # make gcc -g -O2 -Wall -pipe -std=gnu89 -o weplab main.o analpfile.o bruteforce.o capture.o debug.o dictionary.o globals.o heuristics.o md5.o wep.o attack.o -lpcap /usr/bin/ld: capture.o:/home/kali/Root-Me/weplab/weplab-0.1.6/capture.c:46: multiple definition of 'actualTime'; bruteforce.o:/home/kali/Root-Me/weplab/weplab-0.1.6/bruteforce.c:45: first defined here /usr/bin/ld: capture.o:/home/kali/Root-Me/weplab/weplab-0.1.6/capture.c:45: multiple definition of 'lastTime'; bruteforce.o:/home/kali/Root-Me/weplab/weplab-0.1.6/bruteforce.c:44: first defined here /usr/bin/ld: dictionary.o:/home/kali/Root-Me/weplab/weplab-0.1.6/dictionary.c:133: multiple definition of 'arrayProcesses'; bruteforce.o:/home/kali/Root-Me/weplab/weplab-0.1.6/bruteforce.c:47: first defined here /usr/bin/ld: dictionary.o:/home/kali/Root-Me/weplab/weplab-0.1.6/dictionary.c:130: multiple definition of 'actualTime'; bruteforce.o:/home/kali/Root-Me/weplab/weplab-0.1.6/bruteforce.c:45: first defined here /usr/bin/ld: dictionary.o:/home/kali/Root-Me/weplab/weplab-0.1.6/dictionary.c:129: multiple definition of 'lastTime'; bruteforce.o:/home/kali/Root-Me/weplab/weplab-0.1.6/bruteforce.c:44: first defined here /usr/bin/ld: dictionary.o:/home/kali/Root-Me/weplab/weplab-0.1.6/dictionary.c:128: multiple definition of 'initialTime'; bruteforce.o:/home/kali/Root-Me/weplab/weplab-0.1.6/bruteforce.c:43: first defined here /usr/bin/ld: heuristics.o:/home/kali/Root-Me/weplab/weplab-0.1.6/heuristics.c:52: multiple definition of 'actualTime'; bruteforce.o:/home/kali/Root-Me/weplab/weplab-0.1.6/bruteforce.c:45: first defined here /usr/bin/ld: heuristics.o:/home/kali/Root-Me/weplab/weplab-0.1.6/heuristics.c:51: multiple definition of 'lastTime'; bruteforce.o:/home/kali/Root-Me/weplab/weplab-0.1.6/bruteforce.c:44: first defined here /usr/bin/ld: heuristics.o:/home/kali/Root-Me/weplab/weplab-0.1.6/heuristics.c:48: multiple definition of 'key'; bruteforce.o:/home/kali/Root-Me/weplab/weplab-0.1.6/bruteforce.c:42: first defined here /usr/bin/ld: heuristics.o:/home/kali/Root-Me/weplab/weplab-0.1.6/heuristics.c:50: multiple definition of 'initialTime'; bruteforce.o:/home/kali/Root-Me/weplab/weplab-0.1.6/bruteforce.c:43: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:173: weplab] Error 1 I've tried to modify the bruteforce.h file but didn't get any good result after the configure... any idear?

janbbeck commented 9 months ago

The wheel of time has moved compiler default behavior :) Downgrade compiler, or use this: make CFLAGS="-fcommon" LDFLAGS="-Wl,--allow-multiple-definition"

Please let me know how that goes.

codi639 commented 9 months ago

Thank you, it worked with the new "make" command you provided me!