Actions
Bug #1293
closedarm: af-packet compilation failure
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:
Description
Debian wheezy from http://www.igorpecovnik.com/2014/08/19/cubox-i-hummingboard-debian-sd-image/
Linux cubox-i 3.14.14-cubox #7 SMP Wed Sep 24 00:20:19 CEST 2014 armv7l GNU/Linux
CC source-af-packet.o source-af-packet.c: In function ‘AFPGetDevFlags’: source-af-packet.c:1261:18: error: storage size of ‘ifr’ isn’t known source-af-packet.c:1261:18: warning: unused variable ‘ifr’ [-Wunused-variable] source-af-packet.c: In function ‘AFPGetIfnumByDev’: source-af-packet.c:1278:18: error: storage size of ‘ifr’ isn’t known source-af-packet.c:1278:18: warning: unused variable ‘ifr’ [-Wunused-variable] source-af-packet.c: In function ‘AFPGetDevLinktype’: source-af-packet.c:1295:18: error: storage size of ‘ifr’ isn’t known source-af-packet.c:1307:14: error: ‘ARPHRD_LOOPBACK’ undeclared (first use in this function) source-af-packet.c:1307:14: note: each undeclared identifier is reported only once for each function it appears in source-af-packet.c:1309:14: error: ‘ARPHRD_PPP’ undeclared (first use in this function) source-af-packet.c:1295:18: warning: unused variable ‘ifr’ [-Wunused-variable] source-af-packet.c: In function ‘AFPCreateSocket’: source-af-packet.c:1474:21: error: ‘IFF_UP’ undeclared (first use in this function) source-af-packet.c:1575:14: error: ‘ARPHRD_PPP’ undeclared (first use in this function) source-af-packet.c:1576:14: error: ‘ARPHRD_ATM’ undeclared (first use in this function) source-af-packet.c: In function ‘AFPGetIfnumByDev’: source-af-packet.c:1291:1: warning: control reaches end of non-void function [-Wreturn-type] source-af-packet.c: In function ‘AFPGetDevFlags’: source-af-packet.c:1273:1: warning: control reaches end of non-void function [-Wreturn-type] source-af-packet.c: In function ‘AFPGetDevLinktype’: source-af-packet.c:1314:1: warning: control reaches end of non-void function [-Wreturn-type] make[3]: *** [source-af-packet.o] Error 1 make[3]: Leaving directory `/home/victor/suricata/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/victor/suricata/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/victor/suricata' make: *** [all] Error 2
Is there anything x86 specific about what we do in afpacket?
Updated by Victor Julien over 9 years ago
It seems that we have a failing configure check:
configure:13126: checking for linux/if_arp.h configure:13126: gcc -c -g -O2 -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -Wno-unused-parameter -std=gnu99 conftest.c >&5 In file included from /usr/include/linux/kernel.h:4:0, from /usr/include/linux/netlink.h:4, from /usr/include/linux/if_link.h:5, from /usr/include/linux/netdevice.h:31, from /usr/include/linux/if_arp.h:26, from conftest.c:65: /usr/include/linux/sysinfo.h:8:2: error: unknown type name '__kernel_long_t' /usr/include/linux/sysinfo.h:9:2: error: unknown type name '__kernel_ulong_t' /usr/include/linux/sysinfo.h:10:2: error: unknown type name '__kernel_ulong_t' /usr/include/linux/sysinfo.h:11:2: error: unknown type name '__kernel_ulong_t' /usr/include/linux/sysinfo.h:12:2: error: unknown type name '__kernel_ulong_t' /usr/include/linux/sysinfo.h:13:2: error: unknown type name '__kernel_ulong_t' /usr/include/linux/sysinfo.h:14:2: error: unknown type name '__kernel_ulong_t' /usr/include/linux/sysinfo.h:15:2: error: unknown type name '__kernel_ulong_t' /usr/include/linux/sysinfo.h:18:2: error: unknown type name '__kernel_ulong_t' /usr/include/linux/sysinfo.h:19:2: error: unknown type name '__kernel_ulong_t' /usr/include/linux/sysinfo.h:21:22: error: '__kernel_ulong_t' undeclared here (not in a function) configure:13126: $? = 1
Updated by Victor Julien over 9 years ago
Looks like this is an issue that is caused by a missing declaration somewhere in the arm specific headers of the system.
However, it does show that our af-packet configure detection isn't working properly.
Updated by Victor Julien almost 8 years ago
- Status changed from New to Closed
- Assignee deleted (
Eric Leblond) - Target version deleted (
TBD)
I can no longer reproduce this.
Actions