Project

General

Profile

Actions

Bug #416

closed

Compilation failure related to AF_PACKET

Added by Victor Julien almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

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

Files

Actions #1

Updated by Eric Leblond almost 13 years ago

Attached patch improve detection of correct version of AF_PACKET.

Actions #2

Updated by Victor Julien almost 13 years ago

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

Applied and confirmed it's fixed. Thanks Eric!

Actions

Also available in: Atom PDF