|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On CentOS 7.2 gcc seems to need some gentle encouragment to compile etisnoop with autotools.
I was experiencing the following issues and found that adding `--std=gnu99` through autoconf makes it compile.
```
CC src/firecode.o
src/firecode.c: In function 'firecode_crc':
src/firecode.c:34:5: error: 'for' loop initial declarations are only allowed in C99 mode
for (size_t len = 0; len < size; len++) {
^
src/firecode.c:34:5: note: use option -std=c99 or -std=gnu99 to compile your code
src/firecode.c:35:9: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0x80; i != 0; i >>= 1) {
^
make[1]: *** [src/firecode.o] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/etisnoop-1.1.0'
```
|