Tests build failure related to pcap.h
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
rohc | Status tracked in Rohc-main | |||||
1.3.x |
Won't Fix
|
Undecided
|
Didier Barvaux | |||
1.4.x |
Won't Fix
|
Undecided
|
Didier Barvaux | |||
Rohc-1.5.x |
Fix Released
|
Medium
|
Didier Barvaux | |||
Rohc-main |
Fix Released
|
Medium
|
Didier Barvaux |
Bug Description
With current branch, I try to build the library and the test programs with :
./autogen.sh
./configure
make clean all
make all
make -C test
make check
cd test/non_regression
make check
cd ../..
And here are the errors:
make test_non_regression
make[1]: entrant dans le répertoire «
/home/dialine/
CC test_non_
test_non_
before ‘pcap_dumper_t’
test_non_
parameter list
test_non_
declaration, which is probably not what you want
test_non_
before ‘pcap_dumper_t’
test_non_
parameter list
test_non_
test_non_
test_non_
function)
test_non_
only once
test_non_
test_non_
‘pcap_dump’
test_non_
test_non_
in this function)
test_non_
function)
test_non_
function)
test_non_
function)
test_non_
this function)
test_non_
function)
test_non_
test_non_
test_non_
‘pcap_open_offline’
test_non_
‘pcap_datalink’
test_non_
function)
test_non_
this function)
test_non_
function)
test_non_
‘pcap_dump_open’
test_non_
‘pcap_next’
test_non_
test_non_
‘compress_
test_non_
‘unsigned char *’
test_non_
‘compress_
test_non_
type ‘int’
test_non_
‘compress_
test_non_
test_non_
‘compress_
test_non_
‘unsigned char *’
test_non_
‘compress_
test_non_
type ‘int’
test_non_
‘compress_
test_non_
‘pcap_close’
test_non_
‘pcap_dump_close’
test_non_
test_non_
test_non_
make[1]: *** [test_non_
make[1]: quittant le répertoire «
/home/dialine/
make: *** [check-am] Erreur 2
tags: | added: build tests |
summary: |
- Build failure related to pcap.h + Tests build failure related to pcap.h |
Fixed in branch 1.5.x: print an explanation message with #error if pcap.h is not located. bazaar. launchpad. net/~didier- barvaux/ rohc/1. 5.x/revision/ 535
See http://
The build output now is:
$ make check -C test/non_ regression/ 1.5.x/test/ non_regression' 1.5.x/test/ non_regression' regression- test_non_ regression. o regression. c:108:4: error: #error "pcap.h header not found, did you specified --enable-rohc-tests for ./configure ? If yes, check configure output and config.log" regression. c:139:32: error: unknown type name 'pcap_dumper_t' regression. c:410:32: error: unknown type name 'pcap_dumper_t' regression. c: In function 'test_comp_ and_decomp' : regression. c:716:14: error: 'PCAP_ERRBUF_SIZE' undeclared (first use in this function) regression. c:716:14: note: each undeclared identifier is reported only once for each function it appears in regression. c:717:2: error: unknown type name 'pcap_t' regression. c:718:2: error: unknown type name 'pcap_t' regression. c:719:2: error: unknown type name 'pcap_dumper_t' regression. c:722:21: error: storage size of 'header' isn't known regression. c:723:21: error: storage size of 'cmp_header' isn't known regression. c:748:2: warning: implicit declaration of function 'pcap_open_offline' [-Wimplicit- function- declaration] regression. c:759:2: warning: implicit declaration of function 'pcap_datalink' [-Wimplicit- function- declaration] regression. c:760:28: error: 'DLT_EN10MB' undeclared (first use in this function) regression. c:761:28: error: 'DLT_LINUX_SLL' undeclared (first use in this function) regression. c:762:28: error: 'DLT_RAW' undeclared (first use in this function) regression. c:789:3: warning: implicit declaration of function 'pcap_dump_open' [-Wimplicit- function- declaration] regression. c:789:10: warning: assignment makes pointer from integer without a cast [enabled by default] regression. c:1019: 2: warning: implicit declaration of function 'pcap_next' [-Wimplicit- function- declaration] regression. c:1034: 3: warning: implicit declaration of function 'compress_ decompress' [-Wimplicit- function- declaration] regression. c:1157: 3: warning: implicit declaration of function 'pcap_close' [-Wimplicit- function- declaration] regression. c:1162: 3: warning: implicit declaration of function 'pcap_dump_close' [-Wimplicit- function- declaration] regression. c:723:21: warning: unused variable 'cmp_header' [-Wunused-variable] regression. c:722:21: warning: unused variable 'header' [-Wunused-variable] regression. c:716:7: warning: unused variable 'errbuf' [-Wunused-variable] regression. c: At top level: regression. c:1197: 12: warning: 'compare_packets' defined but not used [-Wunused-function] regression- test_non_ regression. o] Error 1 1.5.x/test/ non_regression'
make: Entering directory `rohc/rohc-
make test_non_regression
make[1]: Entering directory `rohc/rohc-
CC test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
test_non_
make[1]: *** [test_non_
make[1]: Leaving directory `rohc/rohc-
make: *** [check-am] Error 2
mak...