Actions
Bug #416
closedCompilation failure related to AF_PACKET
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
Updated by Eric Leblond almost 13 years ago
- File 0001-Improve-check-of-min-requirement-for-AF_PACKET.patch 0001-Improve-check-of-min-requirement-for-AF_PACKET.patch added
- % Done changed from 0 to 80
Attached patch improve detection of correct version of AF_PACKET.
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