[0KRunning with gitlab-runner 15.4.0 (43b2dc3d)[0;m [0K on ci-01.labs.nic.cz vsgruxRs[0;m section_start:1669570516:prepare_executor [0K[0K[36;1mPreparing the "docker" executor[0;m[0;m [0KUsing Docker executor with image registry.nic.cz/turris/sentinel/minipot:alpine ...[0;m [0KAuthenticating with credentials from job payload (GitLab Registry)[0;m [0KPulling docker image registry.nic.cz/turris/sentinel/minipot:alpine ...[0;m [0KUsing docker image sha256:c3d82548cf285393465be585cb773d605a987c3907a1ff6bf5c40f408da1f739 for registry.nic.cz/turris/sentinel/minipot:alpine with digest registry.nic.cz/turris/sentinel/minipot@sha256:a24b42da059459a608a2278833fb27cb092fc74a7d1aa604c3514d389a9a3745 ...[0;m section_end:1669570519:prepare_executor [0Ksection_start:1669570519:prepare_script [0K[0K[36;1mPreparing environment[0;m[0;m Running on runner-vsgruxrs-project-595-concurrent-4 via ci-01... section_end:1669570520:prepare_script [0Ksection_start:1669570520:get_sources [0K[0K[36;1mGetting source from Git repository[0;m[0;m [32;1mFetching changes...[0;m Reinitialized existing Git repository in /builds/turris/sentinel/minipot/.git/ [32;1mChecking out 15e08bf7 as dev...[0;m Removing .aux/ Removing .m4/ Removing Makefile Removing Makefile.in Removing aclocal.m4 Removing aminclude_static.am Removing autom4te.cache/ Removing config.log Removing config.status Removing configure Removing http/.deps/ Removing libsentinel_minipot/.deps/ Removing libsentinel_minipot/sentinel_minipot.pc Removing libtool Removing tests/unit/.deps/ Removing tests/unit/http/.deps/ Removing tests/unit/libsentinel_minipot/.deps/ [32;1mSkipping Git submodules setup[0;m section_end:1669570521:get_sources [0Ksection_start:1669570521:step_script [0K[0K[36;1mExecuting "step_script" stage of the job script[0;m[0;m [0KUsing docker image sha256:c3d82548cf285393465be585cb773d605a987c3907a1ff6bf5c40f408da1f739 for registry.nic.cz/turris/sentinel/minipot:alpine with digest registry.nic.cz/turris/sentinel/minipot@sha256:a24b42da059459a608a2278833fb27cb092fc74a7d1aa604c3514d389a9a3745 ...[0;m [32;1m$ ./bootstrap[0;m libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.aux'. libtoolize: linking file '.aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, '.m4'. libtoolize: linking file '.m4/libtool.m4' libtoolize: linking file '.m4/ltoptions.m4' libtoolize: linking file '.m4/ltsugar.m4' libtoolize: linking file '.m4/ltversion.m4' libtoolize: linking file '.m4/lt~obsolete.m4' configure.ac:14: installing '.aux/ar-lib' configure.ac:12: installing '.aux/compile' configure.ac:15: installing '.aux/config.guess' configure.ac:15: installing '.aux/config.sub' configure.ac:5: installing '.aux/install-sh' configure.ac:5: installing '.aux/missing' configure.ac:49: installing '.aux/tap-driver.sh' Makefile.am: installing '.aux/depcomp' parallel-tests: installing '.aux/test-driver' automake: warning: check-valgrind was already defined in condition !ENABLE_TESTS, which is included in condition TRUE ... automake: ... 'check-valgrind' previously defined here [32;1m$ mkdir build[0;m [32;1m$ cd build[0;m [32;1m$ ../configure --enable-tests $CONFIGURE_CHECK[0;m checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking for ar... ar checking the archiver (ar) interface... ar checking build system type... x86_64-pc-linux-musl checking host system type... x86_64-pc-linux-musl checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/x86_64-alpine-linux-musl/bin/ld checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 98304 checking how to convert x86_64-pc-linux-musl file names to x86_64-pc-linux-musl format... func_convert_file_noop checking how to convert x86_64-pc-linux-musl file names to toolchain format... func_convert_file_noop checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether C compiler accepts -std=c11... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for czmq... yes checking for msgpack... yes checking for libevent... yes checking for libconfig... yes checking for base64c... yes checking for logc... yes checking for czmq_logc... yes checking for libevent_logc... yes checking for argp_parse in -largp... yes checking for gperf... /usr/bin/gperf checking for CHECK... yes checking for obstack_printf in -lobstack... yes checking for valgrind... valgrind checking for Valgrind tool memcheck... yes checking for Valgrind tool helgrind... yes checking for Valgrind tool drd... yes checking for Valgrind tool sgcheck... no checking whether to build with code coverage support... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libsentinel_minipot/sentinel_minipot.pc config.status: executing depfiles commands config.status: executing libtool commands [32;1m$ make check[0;m GPERF http/http_header.gperf.c GPERF http/http_tr_enc.gperf.c CC http/sentinel_minipot_http-sentinel_minipot_http.o CC http/sentinel_minipot_http-http_minipot_config.o ../http/http_minipot_config.c:23:1: warning: missing initializer for field 'help_filter' of 'const struct argp' [-Wmissing-field-initializers] 23 | }; | ^ In file included from ../include/minipot_argp.h:4, from ../http/http_minipot_config.c:2: /usr/include/argp.h:257:11: note: 'help_filter' declared here 257 | char *(*help_filter) (int __key, __const char *__text, void *__input); | ^~~~~~~~~~~ CC http/sentinel_minipot_http-http_minipot.o ../http/http_minipot.c: In function 'accept_cb': ../http/http_minipot.c:8:49: warning: unused parameter 'events' [-Wunused-parameter] 8 | static void accept_cb(evutil_socket_t fd, short events, void *arg) { | ~~~~~~^~~~~~ CC http/sentinel_minipot_http-http_minipot_session.o ../http/http_minipot_session.c: In function 'timeout_cb': ../http/http_minipot_session.c:8:40: warning: unused parameter 'fd' [-Wunused-parameter] 8 | static void timeout_cb(evutil_socket_t fd, short events, void *arg) { | ^ ../http/http_minipot_session.c:8:50: warning: unused parameter 'events' [-Wunused-parameter] 8 | static void timeout_cb(evutil_socket_t fd, short events, void *arg) { | ~~~~~~^~~~~~ ../http/http_minipot_session.c: In function 'read_cb': ../http/http_minipot_session.c:13:47: warning: unused parameter 'events' [-Wunused-parameter] 13 | static void read_cb(evutil_socket_t fd, short events, void *arg) { | ~~~~~~^~~~~~ CC http/sentinel_minipot_http-http_minipot_session_process.o In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf: In function 'http_header_name_hash': ../http/http_header.gperf:83:27: warning: unused parameter 'str' [-Wunused-parameter] ../http/http_header.gperf: In function 'http_header_name_lookup': ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:111:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:25:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] 25 | content-length, CONTENT_LENGTH | ^ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:25:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] 25 | content-length, CONTENT_LENGTH | ^ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:26:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] 26 | transfer-encoding, TRANSFER_ENCODING | ^ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:26:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] 26 | transfer-encoding, TRANSFER_ENCODING | ^ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf: In function 'http_transfer_encoding_lookup': ../http/http_tr_enc.gperf:124:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ ../http/http_tr_enc.gperf:124:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ ../http/http_tr_enc.gperf:124:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ ../http/http_tr_enc.gperf:124:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:27:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] 27 | %% | ^ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:27:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] 27 | %% | ^ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:25:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] 25 | deflate, DEFLATE | ^ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:25:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] 25 | deflate, DEFLATE | ^ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:25:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] 25 | deflate, DEFLATE | ^ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ ../http/http_minipot_session_process.c: In function 'proc_auth_data': ../http/http_minipot_session_process.c:28:69: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 28 | || strncmp(BASIC, s->http_minipot->tokens[0].start_ptr, BASIC_LEN) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | const uint8_t * {aka const unsigned char *} In file included from ../include/minipot_config.h:5, from ../include/minipot.h:4, from ../include/minipot_session.h:6, from ../http/http_minipot_session.h:4, from ../http/http_minipot_session_process.h:4, from ../http/http_minipot_session_process.c:1: /usr/include/string.h:40:28: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 40 | int strncmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ ../http/http_minipot_session_process.c:29:68: warning: pointer targets in passing argument 1 of 'base64_verify' differ in signedness [-Wpointer-sign] 29 | || base64_verify(s->http_minipot->tokens[1].start_ptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | const uint8_t * {aka const unsigned char *} In file included from ../http/http_minipot_session_process.c:7: /usr/include/base64c.h:31:34: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 31 | size_t base64_verify(const char *input, size_t len); | ~~~~~~~~~~~~^~~~~ ../http/http_minipot_session_process.c:33:74: warning: pointer targets in passing argument 1 of 'base64_decode' differ in signedness [-Wpointer-sign] 33 | size_t dcoded_data_len = base64_decode(s->http_minipot->tokens[1].start_ptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | const uint8_t * {aka const unsigned char *} In file included from ../http/http_minipot_session_process.c:7: /usr/include/base64c.h:52:34: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 52 | size_t base64_decode(const char *input, size_t len, uint8_t *output); | ~~~~~~~~~~~~^~~~~ ../http/http_minipot_session_process.c:39:26: warning: pointer targets in initialization of 'char *' from 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 39 | char *username = s->http_minipot->dcode_buff; | ^ ../http/http_minipot_session_process.c:41:26: warning: pointer targets in initialization of 'char *' from 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 41 | char *password = delim + 1; | ^~~~~ ../http/http_minipot_session_process.c: In function 'proc_chunk_size': ../http/http_minipot_session_process.c:135:35: warning: pointer targets in passing argument 1 of 'strtoll' differ in signedness [-Wpointer-sign] 135 | int64_t result = strtoll(s->token_buff, &end_ptr, 16); | ~^~~~~~~~~~~~ | | | uint8_t * {aka unsigned char *} In file included from /usr/include/logc.h:23, from ../include/minipot_utils.h:6, from ../http/http_minipot.h:5, from ../http/http_minipot_session.h:6, from ../http/http_minipot_session_process.h:4, from ../http/http_minipot_session_process.c:1: /usr/include/stdlib.h:34:20: note: expected 'const char * restrict' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 34 | long long strtoll (const char *__restrict, char **__restrict, int); | ^ ../http/http_minipot_session_process.c: In function 'proc_con_len_head': ../http/http_minipot_session_process.c:185:68: warning: pointer targets in passing argument 1 of 'strtoll' differ in signedness [-Wpointer-sign] 185 | int64_t result = strtoll(s->http_minipot->tokens[0].start_ptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | const uint8_t * {aka const unsigned char *} In file included from /usr/include/logc.h:23, from ../include/minipot_utils.h:6, from ../http/http_minipot.h:5, from ../http/http_minipot_session.h:6, from ../http/http_minipot_session_process.h:4, from ../http/http_minipot_session_process.c:1: /usr/include/stdlib.h:34:20: note: expected 'const char * restrict' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 34 | long long strtoll (const char *__restrict, char **__restrict, int); | ^ ../http/http_minipot_session_process.c: In function 'proc_line': ../http/http_minipot_session_process.c:332:43: warning: operand of '?:' changes signedness from 'long int' to 'size_t' {aka 'long unsigned int'} due to unsignedness of other operand [-Wsign-compare] 332 | size_t bytes_to_buff = line_sep ? (line_sep - *buffer + 1) : *bytes_to_proc; | ^~~~~~~~~~~~~~~~~~~~~~~~ CC http/sentinel_minipot_http-http_minipot_session_respond.o CC http/sentinel_minipot_http-http_minipot_session_report.o ../http/http_minipot_session_report.c: In function 'http_report_login': ../http/http_minipot_session_report.c:50:47: warning: pointer targets in passing argument 1 of 'minipot_check_data' differ in signedness [-Wpointer-sign] 50 | || minipot_check_data(username, username_len) | ^~~~~~~~ | | | const char * In file included from ../http/http_minipot.h:5, from ../http/http_minipot_session.h:6, from ../http/http_minipot_session_report.h:4, from ../http/http_minipot_session_report.c:1: ../include/minipot_utils.h:40:39: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 40 | int minipot_check_data(const uint8_t *buff, size_t len); | ~~~~~~~~~~~~~~~^~~~ ../http/http_minipot_session_report.c:51:47: warning: pointer targets in passing argument 1 of 'minipot_check_data' differ in signedness [-Wpointer-sign] 51 | || minipot_check_data(password, password_len) | ^~~~~~~~ | | | const char * In file included from ../http/http_minipot.h:5, from ../http/http_minipot_session.h:6, from ../http/http_minipot_session_report.h:4, from ../http/http_minipot_session_report.c:1: ../include/minipot_utils.h:40:39: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 40 | int minipot_check_data(const uint8_t *buff, size_t len); | ~~~~~~~~~~~~~~~^~~~ ../http/http_minipot_session_report.c:12:16: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 12 | #define METHOD "method" | ^~~~~~~~ ../http/http_minipot_session_report.c:56:18: note: in expansion of macro 'METHOD' 56 | {METHOD, strlen(METHOD), s->method, s->method_len}, | ^~~~~~ ../http/http_minipot_session_report.c:12:16: note: (near initialization for 'data[0].key') 12 | #define METHOD "method" | ^~~~~~~~ ../http/http_minipot_session_report.c:56:18: note: in expansion of macro 'METHOD' 56 | {METHOD, strlen(METHOD), s->method, s->method_len}, | ^~~~~~ ../http/http_minipot_session_report.c:13:13: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 13 | #define URL "url" | ^~~~~ ../http/http_minipot_session_report.c:57:18: note: in expansion of macro 'URL' 57 | {URL, strlen(URL), s->url, s->url_len}, | ^~~ ../http/http_minipot_session_report.c:13:13: note: (near initialization for 'data[1].key') 13 | #define URL "url" | ^~~~~ ../http/http_minipot_session_report.c:57:18: note: in expansion of macro 'URL' 57 | {URL, strlen(URL), s->url, s->url_len}, | ^~~ ../http/http_minipot_session_report.c:15:18: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 15 | #define USERNAME "username" | ^~~~~~~~~~ ../http/http_minipot_session_report.c:58:18: note: in expansion of macro 'USERNAME' 58 | {USERNAME, strlen(USERNAME), username, username_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:15:18: note: (near initialization for 'data[2].key') 15 | #define USERNAME "username" | ^~~~~~~~~~ ../http/http_minipot_session_report.c:58:18: note: in expansion of macro 'USERNAME' 58 | {USERNAME, strlen(USERNAME), username, username_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:58:46: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'const char *' differ in signedness [-Wpointer-sign] 58 | {USERNAME, strlen(USERNAME), username, username_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:58:46: note: (near initialization for 'data[2].val') ../http/http_minipot_session_report.c:16:18: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 16 | #define PASSWORD "password" | ^~~~~~~~~~ ../http/http_minipot_session_report.c:59:18: note: in expansion of macro 'PASSWORD' 59 | {PASSWORD, strlen(PASSWORD), password, password_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:16:18: note: (near initialization for 'data[3].key') 16 | #define PASSWORD "password" | ^~~~~~~~~~ ../http/http_minipot_session_report.c:59:18: note: in expansion of macro 'PASSWORD' 59 | {PASSWORD, strlen(PASSWORD), password, password_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:59:46: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'const char *' differ in signedness [-Wpointer-sign] 59 | {PASSWORD, strlen(PASSWORD), password, password_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:59:46: note: (near initialization for 'data[3].val') ../http/http_minipot_session_report.c:14:17: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 14 | #define USER_AG "user_agent" | ^~~~~~~~~~~~ ../http/http_minipot_session_report.c:61:18: note: in expansion of macro 'USER_AG' 61 | {USER_AG, strlen(USER_AG), s->user_ag, s->user_ag_len}, | ^~~~~~~ ../http/http_minipot_session_report.c:14:17: note: (near initialization for 'data[4].key') 14 | #define USER_AG "user_agent" | ^~~~~~~~~~~~ ../http/http_minipot_session_report.c:61:18: note: in expansion of macro 'USER_AG' 61 | {USER_AG, strlen(USER_AG), s->user_ag, s->user_ag_len}, | ^~~~~~~ ../http/http_minipot_session_report.c: In function 'http_report_message': ../http/http_minipot_session_report.c:12:16: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 12 | #define METHOD "method" | ^~~~~~~~ ../http/http_minipot_session_report.c:82:18: note: in expansion of macro 'METHOD' 82 | {METHOD, strlen(METHOD), s->method, s->method_len}, | ^~~~~~ ../http/http_minipot_session_report.c:12:16: note: (near initialization for 'data[0].key') 12 | #define METHOD "method" | ^~~~~~~~ ../http/http_minipot_session_report.c:82:18: note: in expansion of macro 'METHOD' 82 | {METHOD, strlen(METHOD), s->method, s->method_len}, | ^~~~~~ ../http/http_minipot_session_report.c:13:13: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 13 | #define URL "url" | ^~~~~ ../http/http_minipot_session_report.c:83:18: note: in expansion of macro 'URL' 83 | {URL, strlen(URL), s->url, s->url_len}, | ^~~ ../http/http_minipot_session_report.c:13:13: note: (near initialization for 'data[1].key') 13 | #define URL "url" | ^~~~~ ../http/http_minipot_session_report.c:83:18: note: in expansion of macro 'URL' 83 | {URL, strlen(URL), s->url, s->url_len}, | ^~~ ../http/http_minipot_session_report.c:14:17: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 14 | #define USER_AG "user_agent" | ^~~~~~~~~~~~ ../http/http_minipot_session_report.c:85:18: note: in expansion of macro 'USER_AG' 85 | {USER_AG, strlen(USER_AG), s->user_ag, s->user_ag_len}, | ^~~~~~~ ../http/http_minipot_session_report.c:14:17: note: (near initialization for 'data[2].key') 14 | #define USER_AG "user_agent" | ^~~~~~~~~~~~ ../http/http_minipot_session_report.c:85:18: note: in expansion of macro 'USER_AG' 85 | {USER_AG, strlen(USER_AG), s->user_ag, s->user_ag_len}, | ^~~~~~~ CC http/sentinel_minipot_http-http_minipot_session_utils.o ../http/http_minipot_session_utils.c: In function 'check_version': ../http/http_minipot_session_utils.c:26:36: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] 26 | || strncmp(version, "HTTP/", strlen("HTTP/")) != 0 | ^~~~~~~ | | | uint8_t * {aka unsigned char *} In file included from ../include/minipot_utils.h:4, from ../http/http_minipot_session_utils.c:2: /usr/include/string.h:40:14: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 40 | int strncmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ CC http/sentinel_minipot_http-log.o CC libsentinel_minipot/la-log.lo CC libsentinel_minipot/la-minipot_argp.lo CC libsentinel_minipot/la-minipot_config_load.lo CC libsentinel_minipot/la-minipot_config.lo CC libsentinel_minipot/la-minipot_fork.lo ../libsentinel_minipot/minipot_fork.c: In function 'sigchld_handler': ../libsentinel_minipot/minipot_fork.c:14:33: warning: unused parameter 'sig' [-Wunused-parameter] 14 | static void sigchld_handler(int sig) { | ~~~~^~~ CC libsentinel_minipot/la-minipot_pipe_handler.lo ../libsentinel_minipot/minipot_pipe_handler.c:52:31: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] 52 | const uint8_t const *dest_start, uint8_t **dest_wrt, | ^~~~~ ../libsentinel_minipot/minipot_pipe_handler.c: In function 'proc_data': ../libsentinel_minipot/minipot_pipe_handler.c:66:49: warning: comparison of integer expressions of different signedness: 'long int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 66 | if ((self->data_write_ptr - self->data) == self->data_len.full) { | ^~ ../libsentinel_minipot/minipot_pipe_handler.c: In function 'read_cb': ../libsentinel_minipot/minipot_pipe_handler.c:104:47: warning: unused parameter 'events' [-Wunused-parameter] 104 | static void read_cb(evutil_socket_t fd, short events, void *arg) { | ~~~~~~^~~~~~ ../libsentinel_minipot/minipot_pipe_handler.c: In function 'terminate_cb': ../libsentinel_minipot/minipot_pipe_handler.c:122:42: warning: unused parameter 'fd' [-Wunused-parameter] 122 | static void terminate_cb(evutil_socket_t fd, short events, void *arg) { | ^ ../libsentinel_minipot/minipot_pipe_handler.c:122:52: warning: unused parameter 'events' [-Wunused-parameter] 122 | static void terminate_cb(evutil_socket_t fd, short events, void *arg) { | ~~~~~~^~~~~~ CC libsentinel_minipot/la-minipot_sentinel_msg_packer.lo CC libsentinel_minipot/la-minipot_session.lo CC libsentinel_minipot/la-minipot_utils.lo CC libsentinel_minipot/la-minipot_zmq_sender.lo CC libsentinel_minipot/la-minipot.lo ../libsentinel_minipot/minipot.c: In function 'sigint_cb': ../libsentinel_minipot/minipot.c:14:39: warning: unused parameter 'fd' [-Wunused-parameter] 14 | static void sigint_cb(evutil_socket_t fd, short events, void *arg) { | ^ ../libsentinel_minipot/minipot.c:14:49: warning: unused parameter 'events' [-Wunused-parameter] 14 | static void sigint_cb(evutil_socket_t fd, short events, void *arg) { | ~~~~~~^~~~~~ CCLD libsentinel_minipot.la CCLD sentinel_minipot_http make tests/unit/libsentinel_minipot/unittests-libsentinel_minipot tests/unit/http/unittests-http make[1]: Entering directory '/builds/turris/sentinel/minipot/build' CC tests/unit/libsentinel_minipot_unittests_libsentinel_minipot-unittests.o CC tests/unit/libsentinel_minipot_unittests_libsentinel_minipot-fixtures.o CC libsentinel_minipot/tests_unit_libsentinel_minipot_unittests_libsentinel_minipot-log.o CC libsentinel_minipot/tests_unit_libsentinel_minipot_unittests_libsentinel_minipot-minipot_argp.o CC libsentinel_minipot/tests_unit_libsentinel_minipot_unittests_libsentinel_minipot-minipot_config_load.o CC libsentinel_minipot/tests_unit_libsentinel_minipot_unittests_libsentinel_minipot-minipot_config.o CC libsentinel_minipot/tests_unit_libsentinel_minipot_unittests_libsentinel_minipot-minipot_fork.o CC libsentinel_minipot/tests_unit_libsentinel_minipot_unittests_libsentinel_minipot-minipot_pipe_handler.o CC libsentinel_minipot/tests_unit_libsentinel_minipot_unittests_libsentinel_minipot-minipot_sentinel_msg_packer.o CC libsentinel_minipot/tests_unit_libsentinel_minipot_unittests_libsentinel_minipot-minipot_session.o CC libsentinel_minipot/tests_unit_libsentinel_minipot_unittests_libsentinel_minipot-minipot_utils.o CC libsentinel_minipot/tests_unit_libsentinel_minipot_unittests_libsentinel_minipot-minipot_zmq_sender.o CC libsentinel_minipot/tests_unit_libsentinel_minipot_unittests_libsentinel_minipot-minipot.o CC tests/unit/libsentinel_minipot/unittests_libsentinel_minipot-minipot_utils.o CCLD tests/unit/libsentinel_minipot/unittests-libsentinel_minipot CC tests/unit/http_unittests_http-unittests.o CC tests/unit/http_unittests_http-fixtures.o CC http/tests_unit_http_unittests_http-http_minipot_config.o ../http/http_minipot_config.c:23:1: warning: missing initializer for field 'help_filter' of 'const struct argp' [-Wmissing-field-initializers] 23 | }; | ^ In file included from ../include/minipot_argp.h:4, from ../http/http_minipot_config.c:2: /usr/include/argp.h:257:11: note: 'help_filter' declared here 257 | char *(*help_filter) (int __key, __const char *__text, void *__input); | ^~~~~~~~~~~ CC http/tests_unit_http_unittests_http-http_minipot.o ../http/http_minipot.c: In function 'accept_cb': ../http/http_minipot.c:8:49: warning: unused parameter 'events' [-Wunused-parameter] 8 | static void accept_cb(evutil_socket_t fd, short events, void *arg) { | ~~~~~~^~~~~~ CC http/tests_unit_http_unittests_http-http_minipot_session.o ../http/http_minipot_session.c: In function 'timeout_cb': ../http/http_minipot_session.c:8:40: warning: unused parameter 'fd' [-Wunused-parameter] 8 | static void timeout_cb(evutil_socket_t fd, short events, void *arg) { | ^ ../http/http_minipot_session.c:8:50: warning: unused parameter 'events' [-Wunused-parameter] 8 | static void timeout_cb(evutil_socket_t fd, short events, void *arg) { | ~~~~~~^~~~~~ ../http/http_minipot_session.c: In function 'read_cb': ../http/http_minipot_session.c:13:47: warning: unused parameter 'events' [-Wunused-parameter] 13 | static void read_cb(evutil_socket_t fd, short events, void *arg) { | ~~~~~~^~~~~~ CC http/tests_unit_http_unittests_http-http_minipot_session_process.o In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf: In function 'http_header_name_hash': ../http/http_header.gperf:83:27: warning: unused parameter 'str' [-Wunused-parameter] ../http/http_header.gperf: In function 'http_header_name_lookup': ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:110:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ ../http/http_header.gperf:111:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:25:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] 25 | content-length, CONTENT_LENGTH | ^ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:25:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] 25 | content-length, CONTENT_LENGTH | ^ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:26:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] 26 | transfer-encoding, TRANSFER_ENCODING | ^ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:26:7: warning: missing initializer for field 'header_type' of 'struct http_header' [-Wmissing-field-initializers] 26 | transfer-encoding, TRANSFER_ENCODING | ^ In file included from ../http/http_minipot_session_process.c:5: ../http/http_header.gperf:20:31: note: 'header_type' declared here 20 | enum http_header_type header_type; | ^~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf: In function 'http_transfer_encoding_lookup': ../http/http_tr_enc.gperf:124:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ ../http/http_tr_enc.gperf:124:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ ../http/http_tr_enc.gperf:124:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ ../http/http_tr_enc.gperf:124:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:27:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] 27 | %% | ^ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:27:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] 27 | %% | ^ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:25:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] 25 | deflate, DEFLATE | ^ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:25:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] 25 | deflate, DEFLATE | ^ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:25:7: warning: missing initializer for field 'transfer_encoding_type' of 'struct http_transfer_encoding' [-Wmissing-field-initializers] 25 | deflate, DEFLATE | ^ In file included from ../http/http_minipot_session_process.c:6: ../http/http_tr_enc.gperf:20:42: note: 'transfer_encoding_type' declared here 20 | enum http_transfer_encoding_type transfer_encoding_type; | ^~~~~~~~~~~~~~~~~~~~~~ ../http/http_minipot_session_process.c: In function 'proc_auth_data': ../http/http_minipot_session_process.c:28:69: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 28 | || strncmp(BASIC, s->http_minipot->tokens[0].start_ptr, BASIC_LEN) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | const uint8_t * {aka const unsigned char *} In file included from ../include/minipot_config.h:5, from ../include/minipot.h:4, from ../include/minipot_session.h:6, from ../http/http_minipot_session.h:4, from ../http/http_minipot_session_process.h:4, from ../http/http_minipot_session_process.c:1: /usr/include/string.h:40:28: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 40 | int strncmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ ../http/http_minipot_session_process.c:29:68: warning: pointer targets in passing argument 1 of 'base64_verify' differ in signedness [-Wpointer-sign] 29 | || base64_verify(s->http_minipot->tokens[1].start_ptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | const uint8_t * {aka const unsigned char *} In file included from ../http/http_minipot_session_process.c:7: /usr/include/base64c.h:31:34: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 31 | size_t base64_verify(const char *input, size_t len); | ~~~~~~~~~~~~^~~~~ ../http/http_minipot_session_process.c:33:74: warning: pointer targets in passing argument 1 of 'base64_decode' differ in signedness [-Wpointer-sign] 33 | size_t dcoded_data_len = base64_decode(s->http_minipot->tokens[1].start_ptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | const uint8_t * {aka const unsigned char *} In file included from ../http/http_minipot_session_process.c:7: /usr/include/base64c.h:52:34: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 52 | size_t base64_decode(const char *input, size_t len, uint8_t *output); | ~~~~~~~~~~~~^~~~~ ../http/http_minipot_session_process.c:39:26: warning: pointer targets in initialization of 'char *' from 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 39 | char *username = s->http_minipot->dcode_buff; | ^ ../http/http_minipot_session_process.c:41:26: warning: pointer targets in initialization of 'char *' from 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 41 | char *password = delim + 1; | ^~~~~ ../http/http_minipot_session_process.c: In function 'proc_chunk_size': ../http/http_minipot_session_process.c:135:35: warning: pointer targets in passing argument 1 of 'strtoll' differ in signedness [-Wpointer-sign] 135 | int64_t result = strtoll(s->token_buff, &end_ptr, 16); | ~^~~~~~~~~~~~ | | | uint8_t * {aka unsigned char *} In file included from /usr/include/logc.h:23, from ../include/minipot_utils.h:6, from ../http/http_minipot.h:5, from ../http/http_minipot_session.h:6, from ../http/http_minipot_session_process.h:4, from ../http/http_minipot_session_process.c:1: /usr/include/stdlib.h:34:20: note: expected 'const char * restrict' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 34 | long long strtoll (const char *__restrict, char **__restrict, int); | ^ ../http/http_minipot_session_process.c: In function 'proc_con_len_head': ../http/http_minipot_session_process.c:185:68: warning: pointer targets in passing argument 1 of 'strtoll' differ in signedness [-Wpointer-sign] 185 | int64_t result = strtoll(s->http_minipot->tokens[0].start_ptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | const uint8_t * {aka const unsigned char *} In file included from /usr/include/logc.h:23, from ../include/minipot_utils.h:6, from ../http/http_minipot.h:5, from ../http/http_minipot_session.h:6, from ../http/http_minipot_session_process.h:4, from ../http/http_minipot_session_process.c:1: /usr/include/stdlib.h:34:20: note: expected 'const char * restrict' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 34 | long long strtoll (const char *__restrict, char **__restrict, int); | ^ ../http/http_minipot_session_process.c: In function 'proc_line': ../http/http_minipot_session_process.c:332:43: warning: operand of '?:' changes signedness from 'long int' to 'size_t' {aka 'long unsigned int'} due to unsignedness of other operand [-Wsign-compare] 332 | size_t bytes_to_buff = line_sep ? (line_sep - *buffer + 1) : *bytes_to_proc; | ^~~~~~~~~~~~~~~~~~~~~~~~ CC http/tests_unit_http_unittests_http-http_minipot_session_respond.o CC http/tests_unit_http_unittests_http-http_minipot_session_report.o ../http/http_minipot_session_report.c: In function 'http_report_login': ../http/http_minipot_session_report.c:50:47: warning: pointer targets in passing argument 1 of 'minipot_check_data' differ in signedness [-Wpointer-sign] 50 | || minipot_check_data(username, username_len) | ^~~~~~~~ | | | const char * In file included from ../http/http_minipot.h:5, from ../http/http_minipot_session.h:6, from ../http/http_minipot_session_report.h:4, from ../http/http_minipot_session_report.c:1: ../include/minipot_utils.h:40:39: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 40 | int minipot_check_data(const uint8_t *buff, size_t len); | ~~~~~~~~~~~~~~~^~~~ ../http/http_minipot_session_report.c:51:47: warning: pointer targets in passing argument 1 of 'minipot_check_data' differ in signedness [-Wpointer-sign] 51 | || minipot_check_data(password, password_len) | ^~~~~~~~ | | | const char * In file included from ../http/http_minipot.h:5, from ../http/http_minipot_session.h:6, from ../http/http_minipot_session_report.h:4, from ../http/http_minipot_session_report.c:1: ../include/minipot_utils.h:40:39: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 40 | int minipot_check_data(const uint8_t *buff, size_t len); | ~~~~~~~~~~~~~~~^~~~ ../http/http_minipot_session_report.c:12:16: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 12 | #define METHOD "method" | ^~~~~~~~ ../http/http_minipot_session_report.c:56:18: note: in expansion of macro 'METHOD' 56 | {METHOD, strlen(METHOD), s->method, s->method_len}, | ^~~~~~ ../http/http_minipot_session_report.c:12:16: note: (near initialization for 'data[0].key') 12 | #define METHOD "method" | ^~~~~~~~ ../http/http_minipot_session_report.c:56:18: note: in expansion of macro 'METHOD' 56 | {METHOD, strlen(METHOD), s->method, s->method_len}, | ^~~~~~ ../http/http_minipot_session_report.c:13:13: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 13 | #define URL "url" | ^~~~~ ../http/http_minipot_session_report.c:57:18: note: in expansion of macro 'URL' 57 | {URL, strlen(URL), s->url, s->url_len}, | ^~~ ../http/http_minipot_session_report.c:13:13: note: (near initialization for 'data[1].key') 13 | #define URL "url" | ^~~~~ ../http/http_minipot_session_report.c:57:18: note: in expansion of macro 'URL' 57 | {URL, strlen(URL), s->url, s->url_len}, | ^~~ ../http/http_minipot_session_report.c:15:18: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 15 | #define USERNAME "username" | ^~~~~~~~~~ ../http/http_minipot_session_report.c:58:18: note: in expansion of macro 'USERNAME' 58 | {USERNAME, strlen(USERNAME), username, username_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:15:18: note: (near initialization for 'data[2].key') 15 | #define USERNAME "username" | ^~~~~~~~~~ ../http/http_minipot_session_report.c:58:18: note: in expansion of macro 'USERNAME' 58 | {USERNAME, strlen(USERNAME), username, username_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:58:46: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'const char *' differ in signedness [-Wpointer-sign] 58 | {USERNAME, strlen(USERNAME), username, username_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:58:46: note: (near initialization for 'data[2].val') ../http/http_minipot_session_report.c:16:18: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 16 | #define PASSWORD "password" | ^~~~~~~~~~ ../http/http_minipot_session_report.c:59:18: note: in expansion of macro 'PASSWORD' 59 | {PASSWORD, strlen(PASSWORD), password, password_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:16:18: note: (near initialization for 'data[3].key') 16 | #define PASSWORD "password" | ^~~~~~~~~~ ../http/http_minipot_session_report.c:59:18: note: in expansion of macro 'PASSWORD' 59 | {PASSWORD, strlen(PASSWORD), password, password_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:59:46: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'const char *' differ in signedness [-Wpointer-sign] 59 | {PASSWORD, strlen(PASSWORD), password, password_len}, | ^~~~~~~~ ../http/http_minipot_session_report.c:59:46: note: (near initialization for 'data[3].val') ../http/http_minipot_session_report.c:14:17: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 14 | #define USER_AG "user_agent" | ^~~~~~~~~~~~ ../http/http_minipot_session_report.c:61:18: note: in expansion of macro 'USER_AG' 61 | {USER_AG, strlen(USER_AG), s->user_ag, s->user_ag_len}, | ^~~~~~~ ../http/http_minipot_session_report.c:14:17: note: (near initialization for 'data[4].key') 14 | #define USER_AG "user_agent" | ^~~~~~~~~~~~ ../http/http_minipot_session_report.c:61:18: note: in expansion of macro 'USER_AG' 61 | {USER_AG, strlen(USER_AG), s->user_ag, s->user_ag_len}, | ^~~~~~~ ../http/http_minipot_session_report.c: In function 'http_report_message': ../http/http_minipot_session_report.c:12:16: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 12 | #define METHOD "method" | ^~~~~~~~ ../http/http_minipot_session_report.c:82:18: note: in expansion of macro 'METHOD' 82 | {METHOD, strlen(METHOD), s->method, s->method_len}, | ^~~~~~ ../http/http_minipot_session_report.c:12:16: note: (near initialization for 'data[0].key') 12 | #define METHOD "method" | ^~~~~~~~ ../http/http_minipot_session_report.c:82:18: note: in expansion of macro 'METHOD' 82 | {METHOD, strlen(METHOD), s->method, s->method_len}, | ^~~~~~ ../http/http_minipot_session_report.c:13:13: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 13 | #define URL "url" | ^~~~~ ../http/http_minipot_session_report.c:83:18: note: in expansion of macro 'URL' 83 | {URL, strlen(URL), s->url, s->url_len}, | ^~~ ../http/http_minipot_session_report.c:13:13: note: (near initialization for 'data[1].key') 13 | #define URL "url" | ^~~~~ ../http/http_minipot_session_report.c:83:18: note: in expansion of macro 'URL' 83 | {URL, strlen(URL), s->url, s->url_len}, | ^~~ ../http/http_minipot_session_report.c:14:17: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 14 | #define USER_AG "user_agent" | ^~~~~~~~~~~~ ../http/http_minipot_session_report.c:85:18: note: in expansion of macro 'USER_AG' 85 | {USER_AG, strlen(USER_AG), s->user_ag, s->user_ag_len}, | ^~~~~~~ ../http/http_minipot_session_report.c:14:17: note: (near initialization for 'data[2].key') 14 | #define USER_AG "user_agent" | ^~~~~~~~~~~~ ../http/http_minipot_session_report.c:85:18: note: in expansion of macro 'USER_AG' 85 | {USER_AG, strlen(USER_AG), s->user_ag, s->user_ag_len}, | ^~~~~~~ CC http/tests_unit_http_unittests_http-http_minipot_session_utils.o ../http/http_minipot_session_utils.c: In function 'check_version': ../http/http_minipot_session_utils.c:26:36: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign] 26 | || strncmp(version, "HTTP/", strlen("HTTP/")) != 0 | ^~~~~~~ | | | uint8_t * {aka unsigned char *} In file included from ../include/minipot_utils.h:4, from ../http/http_minipot_session_utils.c:2: /usr/include/string.h:40:14: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 40 | int strncmp (const char *, const char *, size_t); | ^~~~~~~~~~~~ CC http/tests_unit_http_unittests_http-log.o CC tests/unit/http/unittests_http-http_minipot_session_utils.o In file included from ../tests/unit/http/http_minipot_session_utils.c:2: ../tests/unit/http/http_minipot_session_utils.c: In function '_tcase_basic': ../tests/unit/http/../unittests.h:45:42: warning: unused parameter 'tcase' [-Wunused-parameter] 45 | static void _tcase_##name(TCase *tcase) | ~~~~~~~^~~~~ ../tests/unit/http/../unittests.h:48:45: note: in expansion of macro '_TEST_CASE' 48 | #define __test_case3(name, setup, teardown) _TEST_CASE(name, setup, teardown, NAN) | ^~~~~~~~~~ ../tests/unit/http/../unittests.h:49:52: note: in expansion of macro '__test_case3' 49 | #define __test_case_select(_1, _2, _3, _4, X, ...) X | ^ ../tests/unit/http/../unittests.h:51:9: note: in expansion of macro '__test_case_select' 51 | __test_case_select(__VA_ARGS__, _TEST_CASE, __test_case3, __test_case2, __test_case1)(__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~ ../tests/unit/http/http_minipot_session_utils.c:4:1: note: in expansion of macro 'TEST_CASE' 4 | TEST_CASE(basic, NULL, NULL) {} | ^~~~~~~~~ CCLD tests/unit/http/unittests-http make[1]: Leaving directory '/builds/turris/sentinel/minipot/build' make check-TESTS make[1]: Entering directory '/builds/turris/sentinel/minipot/build' make[2]: Entering directory '/builds/turris/sentinel/minipot/build' FAIL: tests/unit/libsentinel_minipot/unittests-libsentinel_minipot 1 - ../tests/unit/libsentinel_minipot/minipot_utils.c:basic:simple: Received signal 11 (Segmentation fault) ERROR: tests/unit/libsentinel_minipot/unittests-libsentinel_minipot - exited with status 139 (terminated by signal 11?) PASS: tests/unit/http/unittests-http 1 - ../tests/unit/http/http_minipot_session_utils.c:basic:simple: Passed ============================================================================ Testsuite summary for sentinel-minipot 2.3.0 ============================================================================ # TOTAL: 3 # PASS: 1 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 1 ============================================================================ See ./test-suite.log Please report to tech.support@turris.cz ============================================================================ make[2]: *** [Makefile:2038: test-suite.log] Error 1 make[2]: Leaving directory '/builds/turris/sentinel/minipot/build' make[1]: *** [Makefile:2146: check-TESTS] Error 2 make[1]: Leaving directory '/builds/turris/sentinel/minipot/build' make: *** [Makefile:2363: check-am] Error 2 section_end:1669570545:step_script [0Ksection_start:1669570545:upload_artifacts_on_failure [0K[0K[36;1mUploading artifacts for failed job[0;m[0;m [32;1mUploading artifacts...[0;m build/config.log: found 1 matching files and directories[0;m build/test-suite*.log: found 1 matching files and directories[0;m [0;33mWARNING: build/tests/*/*.log: no matching files. Ensure that the artifact path is relative to the working directory[0;m [0;33mWARNING: build/tests/*/*.trs: no matching files. Ensure that the artifact path is relative to the working directory[0;m Uploading artifacts as "archive" to coordinator... 201 Created[0;m id[0;m=819040 responseStatus[0;m=201 Created token[0;m=Qv3miJBZ section_end:1669570546:upload_artifacts_on_failure [0Ksection_start:1669570546:cleanup_file_variables [0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m section_end:1669570547:cleanup_file_variables [0K[31;1mERROR: Job failed: exit code 1 [0;m