Bug#957929: weplab: ftbfs with GCC-10
Package: src:weplab
Version: 0.1.5-4
Severity: normal
Tags: sid bullseye
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-10
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.
The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/weplab_0.1.5-4_unstable_gcc10.log
The last lines of the build log are at the end of this report.
To build with GCC 10, either set CC=gcc-10 CXX=g++-10 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-10/porting_to.html
[...]
from /usr/include/pcap.h:43,
from dictionary.c:26:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:1: note: expected ‘const char * __restrict__’ but argument is of type ‘unsigned char *’
88 | __NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
| ^~~~~
dictionary.c:294:20: warning: pointer targets in passing argument 1 of ‘wep_keygen128’ differ in signedness [-Wpointer-sign]
294 | wep_keygen128(word, keys);
| ^~~~
| |
| unsigned char *
dictionary.c:71:26: note: expected ‘char *’ but argument is of type ‘unsigned char *’
71 | void wep_keygen128(char *str, unsigned char *keys){
| ~~~~~~^~~
dictionary.c:300:19: warning: pointer targets in passing argument 1 of ‘wep_keygen40’ differ in signedness [-Wpointer-sign]
300 | wep_keygen40(word, keys);
| ^~~~
| |
| unsigned char *
dictionary.c:104:25: note: expected ‘char *’ but argument is of type ‘unsigned char *’
104 | void wep_keygen40(char *str, u_char *keys){
| ~~~~~~^~~
gcc -DPACKAGE_NAME=\"weplab\" -DPACKAGE_TARNAME=\"weplab\" -DPACKAGE_VERSION=\"0.1.5\" -DPACKAGE_STRING=\"weplab\ 0.1.5\" -DPACKAGE_BUGREPORT=\"TopoLB\ -\ Jose\ Ignacio\ Sanchez\ \<topolb@users.sourceforge.net\>\" -DPACKAGE_URL=\"\" -DPACKAGE=\"weplab\" -DVERSION=\"0.1.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_TIME_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_WAIT_H=1 -DSTDC_HEADERS=1 -DHAVE_LIBPCAP=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu89 -Wall -pipe -c -o wep.o wep.c
heuristics.c: In function ‘GuessOutputByte’:
heuristics.c:61:10: warning: unused variable ‘E’ [-Wunused-variable]
61 | u_char E, S[N];
| ^
heuristics.c: In function ‘GetWeakPackets’:
heuristics.c:325:42: warning: implicit declaration of function ‘target_bssid’ [-Wimplicit-function-declaration]
325 | if (global_v.target_bssid_selected) if (target_bssid(pkt)) {
| ^~~~~~~~~~~~
heuristics.c: In function ‘CalculateSimpleHeuristics’:
heuristics.c:397:101: warning: unknown conversion type character ‘)’ in format [-Wformat=]
397 | printf("Perhaps you should increase the default probability (--perc) to a higher value (default 70%), or capture more packets.\n");
| ^
wep.c: In function ‘GetLessSizedPackets’:
wep.c:289:8: warning: implicit declaration of function ‘target_bssid’ [-Wimplicit-function-declaration]
289 | if (target_bssid(pkt)) {
| ^~~~~~~~~~~~
wep.c:294:8: warning: implicit declaration of function ‘GetPacketBssid’ [-Wimplicit-function-declaration]
294 | if (GetPacketBssid(pkt,global_v.target_bssid)){
| ^~~~~~~~~~~~~~
wep.c:360:30: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
360 | printf("Total packets read: %u\n",totalPackets);
| ~^ ~~~~~~~~~~~~
| | |
| | long unsigned int
| unsigned int
| %lu
gcc -DPACKAGE_NAME=\"weplab\" -DPACKAGE_TARNAME=\"weplab\" -DPACKAGE_VERSION=\"0.1.5\" -DPACKAGE_STRING=\"weplab\ 0.1.5\" -DPACKAGE_BUGREPORT=\"TopoLB\ -\ Jose\ Ignacio\ Sanchez\ \<topolb@users.sourceforge.net\>\" -DPACKAGE_URL=\"\" -DPACKAGE=\"weplab\" -DVERSION=\"0.1.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_PCAP_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_TIME_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_WAIT_H=1 -DSTDC_HEADERS=1 -DHAVE_LIBPCAP=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu89 -Wall -pipe -c -o attack.o attack.c
attack.c: In function ‘AttackAndEvaluate’:
attack.c:88:16: warning: variable ‘foundWeak’ set but not used [-Wunused-but-set-variable]
88 | unsigned char foundWeak[NUMBER_ATTACKS];
| ^~~~~~~~~
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu89 -Wall -pipe -Wl,-z,relro -Wl,-z,now -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:./capture.c:45: multiple definition of `actualTime'; bruteforce.o:./bruteforce.c:45: first defined here
/usr/bin/ld: capture.o:./capture.c:44: multiple definition of `lastTime'; bruteforce.o:./bruteforce.c:44: first defined here
/usr/bin/ld: dictionary.o:./dictionary.c:132: multiple definition of `arrayProcesses'; bruteforce.o:./bruteforce.c:47: first defined here
/usr/bin/ld: dictionary.o:./dictionary.c:129: multiple definition of `actualTime'; bruteforce.o:./bruteforce.c:45: first defined here
/usr/bin/ld: dictionary.o:./dictionary.c:128: multiple definition of `lastTime'; bruteforce.o:./bruteforce.c:44: first defined here
/usr/bin/ld: dictionary.o:./dictionary.c:127: multiple definition of `initialTime'; bruteforce.o:./bruteforce.c:43: first defined here
/usr/bin/ld: heuristics.o:./heuristics.c:52: multiple definition of `actualTime'; bruteforce.o:./bruteforce.c:45: first defined here
/usr/bin/ld: heuristics.o:./heuristics.c:51: multiple definition of `lastTime'; bruteforce.o:./bruteforce.c:44: first defined here
/usr/bin/ld: heuristics.o:./heuristics.c:48: multiple definition of `key'; bruteforce.o:./bruteforce.c:42: first defined here
/usr/bin/ld: heuristics.o:./heuristics.c:50: multiple definition of `initialTime'; bruteforce.o:./bruteforce.c:43: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:404: weplab] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:8: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: