Bug #416

Compilation failure related to AF_PACKET

Added by Victor Julien about 2 years ago. Updated about 2 years ago.

Status:ClosedStart date:02/24/2012
Priority:HighDue date:
Assignee:Eric Leblond% Done:

100%

Category:-
Target version:1.3beta1

Description

Debian version 5.0.9

gcc -DHAVE_CONFIG_H -I. -I..  -I../libhtp    -g -O2 -Wextra -Wall -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter -std=gnu99  -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -march=native -DLIBPCAP_VERSION_MAJOR=0 -DUNITTESTS -DPROFILING -DREVISION="2197f1a" -MT source-af-packet.o -MD -MP -MF .deps/source-af-packet.Tpo -c -o source-af-packet.o source-af-packet.c
source-af-packet.c: In function 'AFPReadFromRing':
source-af-packet.c:371: error: dereferencing pointer to incomplete type
source-af-packet.c:381: error: dereferencing pointer to incomplete type
source-af-packet.c:395: error: dereferencing pointer to incomplete type
source-af-packet.c:395: error: dereferencing pointer to incomplete type
source-af-packet.c:400: error: dereferencing pointer to incomplete type
source-af-packet.c:400: error: dereferencing pointer to incomplete type
source-af-packet.c:406: error: dereferencing pointer to incomplete type
source-af-packet.c:407: error: dereferencing pointer to incomplete type
source-af-packet.c:424: error: dereferencing pointer to incomplete type
source-af-packet.c:430: error: dereferencing pointer to incomplete type
source-af-packet.c:438: error: dereferencing pointer to incomplete type
source-af-packet.c: In function 'AFPCreateSocket':
source-af-packet.c:680: error: 'TPACKET_V2' undeclared (first use in this function)
source-af-packet.c:680: error: (Each undeclared identifier is reported only once
source-af-packet.c:680: error: for each function it appears in.)
source-af-packet.c:682: error: 'PACKET_HDRLEN' undeclared (first use in this function)
source-af-packet.c:693: error: 'PACKET_VERSION' undeclared (first use in this function)
make[3]: *** [source-af-packet.o] Error 1
make[3]: Leaving directory `/home/victor/dev/oisf/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/victor/dev/oisf/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/victor/dev/oisf'
make: *** [all] Error 2

0001-Improve-check-of-min-requirement-for-AF_PACKET.patch Magnifier (1.37 KB) Eric Leblond, 03/26/2012 12:07 PM

History

#1 Updated by Eric Leblond about 2 years ago

Attached patch improve detection of correct version of AF_PACKET.

#2 Updated by Victor Julien about 2 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 80 to 100

Applied and confirmed it's fixed. Thanks Eric!

Also available in: Atom PDF