barak/ettercap — pull request #9 by LocutusOfBorg (2014-02-25 14:57:39+00:00)
Title: Fixing build failure on gentoo/powerpc.

REFERENCE debian build log
https://buildd.debian.org/status/fetch.php?pkg=ettercap&arch=powerpc&ver=1%3A0.8.0-1&stamp=1393280350

For some reasons B0 is not well accepted for a variable name, and the build fails

http://bpaste.net/raw/181909/

/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0_build/src && /usr/bin/powerpc-unknown-linux-gnu-gcc -Dlib_ettercap_EXPORTS -DNDEBUG -O2 -pipe -fPIC -I/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0_build/include -I/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/include -o CMakeFiles/lib_ettercap.dir/ec_encryption_ccmp.c.o -c /var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:46:35: error: expected ';', ',' or ')' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:47:62: error: expected ';', ',' or ')' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:48:46: error: expected ';', ',' or ')' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c: In function 'wpa_ccmp_decrypt':
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:61:11: error: expected identifier or '(' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:84:20: error: 'A' undeclared (first use in this function)
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:84:20: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:90:6: error: subscripted value is neither array nor pointer nor vector
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:91:6: error: subscripted value is neither array nor pointer nor vector
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:91:15: error: subscripted value is neither array nor pointer nor vector
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:92:20: error: 'B' undeclared (first use in this function)
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c: At top level:
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:145:35: error: expected ';', ',' or ')' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:163:62: error: expected ';', ',' or ')' before numeric constant
/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0/src/ec_encryption_ccmp.c:190:46: error: expected ';', ',' or ')' before numeric constant
make[2]: *** [src/CMakeFiles/lib_ettercap.dir/ec_encryption_ccmp.c.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0_build'
make[1]: *** [src/CMakeFiles/lib_ettercap.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/ettercap-0.8.0-r1/work/ettercap-0.8.0_build'
make: *** [all] Error 2