Actions
Support #3193
closedCompile: error: implicit declaration of function 'htp_config_set_lzma_memlimit' is invalid in C99
Status:
Closed
Priority:
Normal
Assignee:
-
Affected Versions:
Label:
Description
Issue compiling latest git pull of 5.0-dev.
Ubuntu 18.04.3 LTS
Kernel: 4.15.0-64-generic
@CC=clang ./configure --prefix=/usr/ --sysconfdir=/etc/ --localstatedir=/var/ --enable-luajit --enable-geoip --enable-ebpf --enable-ebpf-build
CC app-layer-htp.o
app-layer-htp.c:2383:5: error: implicit declaration of function 'htp_config_set_lzma_memlimit' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
htp_config_set_lzma_memlimit(cfg_prec->cfg,
^
app-layer-htp.c:2383:5: note: did you mean 'htp_config_set_field_limits'?
./../libhtp/htp/htp_config.h:427:6: note: 'htp_config_set_field_limits' declared here
void htp_config_set_field_limits(htp_cfg_t *cfg, size_t soft_limit, size_t hard_limit);
^
app-layer-htp.c:2383:5: warning: this function declaration is not a prototype [-Wstrict-prototypes]
htp_config_set_lzma_memlimit(cfg_prec->cfg,
^
app-layer-htp.c:2387:5: error: implicit declaration of function 'htp_config_set_compression_bomb_limit' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
htp_config_set_compression_bomb_limit(cfg_prec->cfg,
^
app-layer-htp.c:2387:5: warning: this function declaration is not a prototype [-Wstrict-prototypes]
app-layer-htp.c:2711:13: error: implicit declaration of function 'htp_config_set_lzma_memlimit' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
htp_config_set_lzma_memlimit(cfg_prec->cfg, (size_t)limit);
^
app-layer-htp.c:2716:17: error: implicit declaration of function 'htp_config_set_lzma_memlimit' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
htp_config_set_lzma_memlimit(cfg_prec->cfg, 0);
^
app-layer-htp.c:2732:13: error: implicit declaration of function 'htp_config_set_compression_bomb_limit' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
htp_config_set_compression_bomb_limit(cfg_prec->cfg, (size_t)limit);
^
2 warnings and 5 errors generated.
Makefile:1819: recipe for target 'app-layer-htp.o' failed@
Actions