Ettercap/ettercap — pull request #493 by LocutusOfBorg (2014-02-23 15:37:46+00:00)
Title: Fixing build failure on gentoo/powerpc.

Please read below, I'm still thinking if the issue is in ettercap or not.
Do we follow variable naming conventions by having a "B0" variable?

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