Trouble building FTL v6

Expected Behaviour:

Successfully building FTL-development-v6

Actual Behaviour:

Trying to builld FTL v6 using the instructions over at Install from source - Pi-hole documentation. I built nettle 3.9.1 (tried 3.8.1 as well), and proceded to build FTL on the branch "development-v6". This is on Ubuntu Server 22.04, running inside virtualbox.

This is the output I get when running ./build.sh

-- The C compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Compiling dynamically linked executable
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Building FTL with readline support: YES
-- Building FTL with TLS support: NO
-- Embedded LUA will use readline for history: YES
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alex/FTL/cmake
[  0%] Compiling specs/teleporter.yaml
[  1%] Building C object src/tools/CMakeFiles/tools.dir/arp-scan.c.o
[  2%] Compiling external/highlight-default.min.css
[  3%] Building C object src/webserver/civetweb/CMakeFiles/civetweb.dir/civetweb.c.o
[  3%] Compiling external/highlight.min.js
[  3%] Compiling external/rapidoc-min.js
In file included from /home/alex/FTL/src/webserver/civetweb/civetweb.c:13088:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_get_var’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1212:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1212 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_split_form_urlencoded’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1257:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1257 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_get_cookie’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1355:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1355 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_url_encode’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1435:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1435 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_url_decode’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1475:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1475 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_base64_encode’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1513:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1513 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_base64_decode’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1555:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1555 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lua_allocator’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:2655:28: warning: unused variable ‘ctx’ [-Wunused-variable]
 2655 |         struct mg_context *ctx = (struct mg_context *)ud;
      |                            ^~~
In file included from /home/alex/FTL/src/webserver/civetweb/civetweb.c:13088:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: At top level:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:2796:32: warning: ‘struct lua_websock_data’ declared inside parameter list will not be visible outside of this definition or declaration
 2796 |                         struct lua_websock_data *ws_conn_list,
      |                                ^~~~~~~~~~~~~~~~
Building Pi-hole FTL daemon
   - Branch: development-v6
   - Architecture: x86_64 (compiled locally)
   - Version: v5.23-952-g35738920
   - Tag: v5.23
   - Hash: 35738920
   - Commit date: 2023-09-16 23:04:55 +0200
[  3%] Built target gen_version
[  4%] Compiling external/rapidoc-min.js.map
[  4%] Building C object src/webserver/cJSON/CMakeFiles/cJSON.dir/cJSON.c.o
[  4%] Compiling images/logo.svg
[  4%] Compiling index.css
[  5%] Compiling index.html
[  6%] Compiling pi-hole.js
[  7%] Compiling specs/action.yaml
[  7%] Compiling specs/auth.yaml
[  7%] Building C object src/tools/CMakeFiles/tools.dir/dhcp-discover.c.o
[  8%] Compiling specs/clients.yaml
[  8%] Compiling specs/common.yaml
[  8%] Compiling specs/config.yaml
[  9%] Compiling specs/dhcp.yaml
[  9%] Compiling specs/dns.yaml
[ 10%] Compiling specs/domains.yaml
[ 10%] Compiling specs/endpoints.yaml
[ 11%] Compiling specs/groups.yaml
[ 11%] Compiling specs/history.yaml
[ 12%] Compiling specs/info.yaml
[ 12%] Compiling specs/lists.yaml
[ 13%] Compiling specs/logs.yaml
[ 13%] Compiling specs/main.yaml
[ 14%] Compiling specs/network.yaml
[ 14%] Compiling specs/queries.yaml
[ 15%] Compiling specs/search.yaml
[ 15%] Compiling specs/stats.yaml
[ 16%] Building C object src/api/docs/CMakeFiles/api_docs.dir/docs.c.o
[ 17%] Building C object src/tools/CMakeFiles/tools.dir/gravity-parseList.c.o
[ 17%] Built target tools
[ 17%] Building C object src/zip/CMakeFiles/zip.dir/gzip.c.o
[ 17%] Built target cJSON
[ 17%] Building C object src/zip/miniz/CMakeFiles/miniz.dir/miniz.c.o
[ 18%] Building C object src/zip/CMakeFiles/zip.dir/teleporter.c.o
/home/alex/FTL/src/zip/miniz/miniz.c:3185:9: note: ‘#pragma message: Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.’
 3185 | #pragma message("Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.")
      |         ^~~~~~~
[ 18%] Built target zip
[ 18%] Building C object src/database/CMakeFiles/sqlite3.dir/shell.c.o
[ 18%] Built target api_docs
[ 19%] Building C object src/database/CMakeFiles/database.dir/common.c.o
[ 19%] Building C object src/database/CMakeFiles/database.dir/database-thread.c.o
[ 20%] Building C object src/database/CMakeFiles/database.dir/gravity-db.c.o
[ 20%] Building C object src/database/CMakeFiles/database.dir/message-table.c.o
[ 20%] Building C object src/database/CMakeFiles/database.dir/network-table.c.o
[ 20%] Built target miniz
[ 20%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/arp.c.o
[ 21%] Building C object src/database/CMakeFiles/database.dir/query-table.c.o
[ 21%] Built target civetweb
[ 22%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/auth.c.o
[ 23%] Compiling inspect.lua
[ 23%] Built target lua_scripts
[ 23%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/regcomp.c.o
[ 24%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/regerror.c.o
[ 24%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/regexec.c.o
[ 24%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-ast.c.o
[ 25%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-compile.c.o
[ 25%] Building C object src/database/CMakeFiles/database.dir/sqlite3-ext.c.o
[ 26%] Building C object src/database/CMakeFiles/database.dir/aliasclients.c.o
[ 26%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/blockdata.c.o
[ 26%] Built target database
[ 26%] Building C object src/syscalls/CMakeFiles/syscalls.dir/accept.c.o
[ 27%] Building C object src/syscalls/CMakeFiles/syscalls.dir/asprintf.c.o
[ 28%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/bpf.c.o
[ 28%] Building C object src/syscalls/CMakeFiles/syscalls.dir/calloc.c.o
[ 28%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/cache.c.o
[ 29%] Building C object src/syscalls/CMakeFiles/syscalls.dir/ftlallocate.c.o
[ 29%] Building C object src/syscalls/CMakeFiles/syscalls.dir/fopen.c.o
[ 29%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-filter.c.o
[ 30%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-match-approx.c.o
[ 31%] Building C object src/syscalls/CMakeFiles/syscalls.dir/fprintf.c.o
[ 31%] Building C object src/syscalls/CMakeFiles/syscalls.dir/free.c.o
[ 32%] Building C object src/syscalls/CMakeFiles/syscalls.dir/pthread_mutex_lock.c.o
[ 32%] Building C object src/syscalls/CMakeFiles/syscalls.dir/realloc.c.o
[ 33%] Building C object src/syscalls/CMakeFiles/syscalls.dir/recv.c.o
[ 33%] Building C object src/syscalls/CMakeFiles/syscalls.dir/recvfrom.c.o
[ 33%] Building C object src/syscalls/CMakeFiles/syscalls.dir/select.c.o
[ 34%] Building C object src/syscalls/CMakeFiles/syscalls.dir/sendto.c.o
[ 34%] Building C object src/syscalls/CMakeFiles/syscalls.dir/snprintf.c.o
[ 35%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/conntrack.c.o
[ 35%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-match-backtrack.c.o
[ 36%] Building C object src/syscalls/CMakeFiles/syscalls.dir/sprintf.c.o
[ 36%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/crypto.c.o
[ 36%] Building C object src/syscalls/CMakeFiles/syscalls.dir/strdup.c.o
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c: In function ‘tre_tnfa_run_backtrack’:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:140:17: note: in expansion of macro ‘xfree’
  140 |                 xfree(tags);                                                  \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:272:10: note: returned from ‘__builtin_alloca’
  272 |   tags = alloca(sizeof(*tags) * tnfa->num_tags);
      |          ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:142:17: note: in expansion of macro ‘xfree’
  142 |                 xfree(pmatch);                                                \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:273:12: note: returned from ‘__builtin_alloca’
  273 |   pmatch = alloca(sizeof(*pmatch) * tnfa->num_submatches);
      |            ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:144:17: note: in expansion of macro ‘xfree’
  144 |                 xfree(states_seen);                                           \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:274:17: note: returned from ‘__builtin_alloca’
  274 |   states_seen = alloca(sizeof(*states_seen) * tnfa->num_states);
      |                 ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:155:17: note: in expansion of macro ‘xfree’
  155 |                 xfree(tags);                                                  \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:272:10: note: returned from ‘__builtin_alloca’
  272 |   tags = alloca(sizeof(*tags) * tnfa->num_tags);
      |          ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:157:17: note: in expansion of macro ‘xfree’
  157 |                 xfree(pmatch);                                                \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:273:12: note: returned from ‘__builtin_alloca’
  273 |   pmatch = alloca(sizeof(*pmatch) * tnfa->num_submatches);
      |            ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:159:17: note: in expansion of macro ‘xfree’
  159 |                 xfree(states_seen);                                           \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:274:17: note: returned from ‘__builtin_alloca’
  274 |   states_seen = alloca(sizeof(*states_seen) * tnfa->num_states);
      |                 ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:140:17: note: in expansion of macro ‘xfree’
  140 |                 xfree(tags);                                                  \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:272:10: note: returned from ‘__builtin_alloca’
  272 |   tags = alloca(sizeof(*tags) * tnfa->num_tags);
      |          ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:142:17: note: in expansion of macro ‘xfree’
  142 |                 xfree(pmatch);                                                \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:273:12: note: returned from ‘__builtin_alloca’
  273 |   pmatch = alloca(sizeof(*pmatch) * tnfa->num_submatches);
      |            ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:144:17: note: in expansion of macro ‘xfree’
  144 |                 xfree(states_seen);                                           \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:274:17: note: returned from ‘__builtin_alloca’
  274 |   states_seen = alloca(sizeof(*states_seen) * tnfa->num_states);
      |                 ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:155:17: note: in expansion of macro ‘xfree’
  155 |                 xfree(tags);                                                  \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:272:10: note: returned from ‘__builtin_alloca’
  272 |   tags = alloca(sizeof(*tags) * tnfa->num_tags);
      |          ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:157:17: note: in expansion of macro ‘xfree’
  157 |                 xfree(pmatch);                                                \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:273:12: note: returned from ‘__builtin_alloca’
  273 |   pmatch = alloca(sizeof(*pmatch) * tnfa->num_submatches);
      |            ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:159:17: note: in expansion of macro ‘xfree’
  159 |                 xfree(states_seen);                                           \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:274:17: note: returned from ‘__builtin_alloca’
  274 |   states_seen = alloca(sizeof(*states_seen) * tnfa->num_states);
      |                 ^~~~~~
[ 37%] Building C object src/syscalls/CMakeFiles/syscalls.dir/vasprintf.c.o
[ 38%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dbus.c.o
[ 38%] Building C object src/syscalls/CMakeFiles/syscalls.dir/vfprintf.c.o
[ 39%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-match-parallel.c.o
[ 39%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dhcp-common.c.o
[ 40%] Building C object src/syscalls/CMakeFiles/syscalls.dir/vsnprintf.c.o
[ 40%] Building C object src/syscalls/CMakeFiles/syscalls.dir/vsprintf.c.o
[ 41%] Building C object src/syscalls/CMakeFiles/syscalls.dir/write.c.o
[ 41%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-mem.c.o
[ 41%] Built target syscalls
[ 41%] Building C object src/config/CMakeFiles/config.dir/cli.c.o
[ 42%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-parse.c.o
[ 43%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dhcp.c.o
[ 44%] Building C object src/config/CMakeFiles/config.dir/config.c.o
[ 44%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dhcp6.c.o
[ 44%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-stack.c.o
[ 45%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/xmalloc.c.o
[ 45%] Building C object src/config/CMakeFiles/config.dir/dnsmasq_config.c.o
[ 46%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dnsmasq.c.o
[ 46%] Built target tre-regex
[ 46%] Building C object src/config/tomlc99/CMakeFiles/tomlc99.dir/toml.c.o
[ 47%] Building C object src/config/CMakeFiles/config.dir/inotify.c.o
[ 47%] Building C object src/config/CMakeFiles/config.dir/legacy_reader.c.o
[ 47%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dnssec.c.o
[ 48%] Building C object src/config/CMakeFiles/config.dir/password.c.o
In file included from /home/alex/FTL/src/config/password.c:19:
/home/alex/FTL/src/webserver/x509.h:13:10: fatal error: mbedtls/entropy.h: No such file or directory
   13 | #include <mbedtls/entropy.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [src/config/CMakeFiles/config.dir/build.make:146: src/config/CMakeFiles/config.dir/password.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:845: src/config/CMakeFiles/config.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 49%] Building C object src/database/CMakeFiles/sqlite3.dir/sqlite3.c.o
[ 49%] Built target tomlc99
[ 49%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/domain.c.o
[ 50%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/domain-match.c.o
[ 50%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dump.c.o
[ 51%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/edns0.c.o
[ 51%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/forward.c.o
[ 52%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/hash-questions.c.o
[ 52%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/helper.c.o
[ 53%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/inotify.c.o
[ 53%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/ipset.c.o
[ 54%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/lease.c.o
[ 54%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/log.c.o
[ 55%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/loop.c.o
[ 55%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/metrics.c.o
[ 55%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/network.c.o
[ 56%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/netlink.c.o
[ 56%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/nftset.c.o
[ 57%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/option.c.o
[ 57%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/outpacket.c.o
[ 58%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/pattern.c.o
[ 58%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/poll.c.o
[ 59%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/radv.c.o
[ 59%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/rfc1035.c.o
[ 60%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/rfc2131.c.o
[ 60%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/rfc3315.c.o
[ 61%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/rrfilter.c.o
[ 61%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/slaac.c.o
[ 62%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/tables.c.o
[ 62%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/tftp.c.o
[ 63%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/ubus.c.o
[ 63%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/util.c.o
[ 63%] Built target dnsmasq
[ 63%] Built target sqlite3
gmake: *** [Makefile:136: all] Error 2

As that's the development branch, and the one for the v6 release, I'd expect that it may not compile at all times.

What's your intention for compiling development-v6?

I want to play around with the new REST API as I want to build a network security dashboard, and it would be nice to have some dials and lists with the most accessed websites, which hosts got the most blocked requests, etc. and would rather do it on the new API.

Then you are indeed bound to use the development-v6 branch. :wink:

As an early adopter, you probably should be aware that the API is still subject to be changed without notice, especially since there has been no prior v6 release.

Do you still see those compile errors?

You may be missing libmbedtls-dev, which may be a v6 specific dependency (but I'm just guessing here), and there may be other more subtle dependencies for newer, more up-to-date packages as well.
(Note that the compile documentation currently only covers the requirements for v5. This will be updated with the release of v6.)

Thanks for your response. I installed `libmbedtls-dev' and 'glibc-source' and now it goes further, but it errors out on 'generate-certificate'. How would I go about fixing this?

/home/alex/FTL/src/webserver/x509.c: In function ‘generate_certificate’:
/home/alex/FTL/src/webserver/x509.c:152:9: error: implicit declaration of function ‘mbedtls_x509write_crt_set_serial_ra ’; did you mean ‘mbedtls_x509write_crt_set_serial’? [-Werror=implicit-function-declaration]
  152 |         mbedtls_x509write_crt_set_serial_raw(&crt, serial, sizeof(serial)-1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         mbedtls_x509write_crt_set_serial
/home/alex/FTL/src/webserver/x509.c:152:9: error: nested extern declaration of ‘mbedtls_x509write_crt_set_serial_raw’ [-Werror=nested-externs]

All the build:

-- The C compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Compiling dynamically linked executable
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Building FTL with readline support: YES
-- Building FTL with TLS support: YES
-- Embedded LUA will use readline for history: YES
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alex/FTL/cmake
[  0%] Compiling specs/teleporter.yaml
[  1%] Building C object src/tools/CMakeFiles/tools.dir/arp-scan.c.o
[  2%] Building C object src/webserver/civetweb/CMakeFiles/civetweb.dir/civetweb.c.o
[  3%] Compiling external/highlight-default.min.css
[  3%] Compiling external/highlight.min.js
[  3%] Compiling external/rapidoc-min.js
In file included from /home/alex/FTL/src/webserver/civetweb/mod_mbedtls.inl:14,
                 from /home/alex/FTL/src/webserver/civetweb/civetweb.c:1742:
/usr/include/mbedtls/net.h:33:2: warning: #warning "Deprecated header file: Superseded by mbedtls/net_sockets.h" [-Wcpp]   33 | #warning "Deprecated header file: Superseded by mbedtls/net_sockets.h"
      |  ^~~~~~~
In file included from /home/alex/FTL/src/webserver/civetweb/civetweb.c:13088:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_get_var’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1212:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1212 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_split_form_urlencoded’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1257:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1257 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_get_cookie’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1355:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1355 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_url_encode’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1435:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1435 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_url_decode’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1475:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1475 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_base64_encode’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1513:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1513 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lsp_base64_decode’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:1555:28: warning: variable ‘ctx’ set but not used [-Wunused-but-set-variable]
 1555 |         struct mg_context *ctx;
      |                            ^~~
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: In function ‘lua_allocator’:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:2655:28: warning: unused variable ‘ctx’ [-Wunused-variable]
 2655 |         struct mg_context *ctx = (struct mg_context *)ud;
      |                            ^~~
In file included from /home/alex/FTL/src/webserver/civetweb/civetweb.c:13088:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl: At top level:
/home/alex/FTL/src/webserver/civetweb/mod_lua.inl:2796:32: warning: ‘struct lua_websock_data’ declared inside parameter list will not be visible outside of this definition or declaration
 2796 |                         struct lua_websock_data *ws_conn_list,
      |                                ^~~~~~~~~~~~~~~~
Building Pi-hole FTL daemon
   - Branch: development-v6
   - Architecture: x86_64 (compiled locally)
   - Version: v5.23-954-gf2e234f5
   - Tag: v5.23
   - Hash: f2e234f5
   - Commit date: 2023-09-21 23:18:46 +0200
[  4%] Compiling external/rapidoc-min.js.map
[  4%] Built target gen_version
[  4%] Building C object src/webserver/cJSON/CMakeFiles/cJSON.dir/cJSON.c.o
[  4%] Building C object src/tools/CMakeFiles/tools.dir/dhcp-discover.c.o
[  4%] Compiling images/logo.svg
[  4%] Compiling index.css
[  5%] Compiling index.html
[  6%] Compiling pi-hole.js
[  7%] Compiling specs/action.yaml
[  7%] Compiling specs/auth.yaml
[  8%] Compiling specs/clients.yaml
[  8%] Compiling specs/common.yaml
[  8%] Compiling specs/config.yaml
[  9%] Compiling specs/dhcp.yaml
[  9%] Compiling specs/dns.yaml
[ 10%] Compiling specs/domains.yaml
[ 10%] Compiling specs/endpoints.yaml
[ 11%] Compiling specs/groups.yaml
[ 11%] Compiling specs/history.yaml
[ 12%] Compiling specs/info.yaml
[ 12%] Compiling specs/lists.yaml
[ 13%] Compiling specs/logs.yaml
[ 13%] Compiling specs/main.yaml
[ 14%] Compiling specs/network.yaml
[ 14%] Compiling specs/queries.yaml
[ 15%] Compiling specs/search.yaml
[ 15%] Compiling specs/stats.yaml
[ 16%] Building C object src/api/docs/CMakeFiles/api_docs.dir/docs.c.o
[ 17%] Building C object src/tools/CMakeFiles/tools.dir/gravity-parseList.c.o
[ 17%] Built target tools
[ 17%] Building C object src/zip/CMakeFiles/zip.dir/gzip.c.o
[ 18%] Building C object src/zip/CMakeFiles/zip.dir/teleporter.c.o
[ 18%] Built target cJSON
[ 18%] Building C object src/zip/miniz/CMakeFiles/miniz.dir/miniz.c.o
/home/alex/FTL/src/zip/miniz/miniz.c:3185:9: note: ‘#pragma message: Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.’
 3185 | #pragma message("Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.")
      |         ^~~~~~~
[ 18%] Built target zip
[ 18%] Building C object src/database/CMakeFiles/sqlite3.dir/shell.c.o
[ 18%] Built target api_docs
[ 19%] Building C object src/database/CMakeFiles/database.dir/common.c.o
[ 19%] Building C object src/database/CMakeFiles/database.dir/database-thread.c.o
[ 20%] Building C object src/database/CMakeFiles/database.dir/gravity-db.c.o
[ 20%] Building C object src/database/CMakeFiles/database.dir/message-table.c.o
[ 20%] Building C object src/database/CMakeFiles/database.dir/network-table.c.o
[ 21%] Building C object src/database/CMakeFiles/database.dir/query-table.c.o
[ 21%] Built target miniz
[ 21%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/arp.c.o
[ 21%] Built target civetweb
[ 22%] Compiling inspect.lua
[ 23%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/auth.c.o
[ 23%] Built target lua_scripts
[ 23%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/regcomp.c.o
[ 24%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/regerror.c.o
[ 24%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/regexec.c.o
[ 24%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-ast.c.o
[ 24%] Building C object src/database/CMakeFiles/database.dir/sqlite3-ext.c.o
[ 25%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-compile.c.o
[ 26%] Building C object src/database/CMakeFiles/database.dir/aliasclients.c.o
[ 26%] Built target database
[ 26%] Building C object src/syscalls/CMakeFiles/syscalls.dir/accept.c.o
[ 27%] Building C object src/syscalls/CMakeFiles/syscalls.dir/asprintf.c.o
[ 27%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/blockdata.c.o
[ 27%] Building C object src/syscalls/CMakeFiles/syscalls.dir/calloc.c.o
[ 28%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/bpf.c.o
[ 29%] Building C object src/syscalls/CMakeFiles/syscalls.dir/ftlallocate.c.o
[ 29%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/cache.c.o
[ 29%] Building C object src/syscalls/CMakeFiles/syscalls.dir/fopen.c.o
[ 30%] Building C object src/syscalls/CMakeFiles/syscalls.dir/fprintf.c.o
[ 30%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-filter.c.o
[ 31%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-match-approx.c.o
[ 31%] Building C object src/syscalls/CMakeFiles/syscalls.dir/free.c.o
[ 32%] Building C object src/syscalls/CMakeFiles/syscalls.dir/pthread_mutex_lock.c.o
[ 32%] Building C object src/syscalls/CMakeFiles/syscalls.dir/realloc.c.o
[ 33%] Building C object src/syscalls/CMakeFiles/syscalls.dir/recv.c.o
[ 33%] Building C object src/syscalls/CMakeFiles/syscalls.dir/recvfrom.c.o
[ 33%] Building C object src/syscalls/CMakeFiles/syscalls.dir/select.c.o
[ 34%] Building C object src/syscalls/CMakeFiles/syscalls.dir/sendto.c.o
[ 34%] Building C object src/syscalls/CMakeFiles/syscalls.dir/snprintf.c.o
[ 34%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-match-backtrack.c.o
[ 35%] Building C object src/syscalls/CMakeFiles/syscalls.dir/sprintf.c.o
[ 36%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/conntrack.c.o
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c: In function ‘tre_tnfa_run_backtrack’:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:140:17: note: in expansion of macro ‘xfree’
  140 |                 xfree(tags);                                                  \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:272:10: note: returned from ‘__builtin_alloca’
  272 |   tags = alloca(sizeof(*tags) * tnfa->num_tags);
      |          ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:142:17: note: in expansion of macro ‘xfree’
  142 |                 xfree(pmatch);                                                \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:273:12: note: returned from ‘__builtin_alloca’
  273 |   pmatch = alloca(sizeof(*pmatch) * tnfa->num_submatches);
      |            ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:144:17: note: in expansion of macro ‘xfree’
  144 |                 xfree(states_seen);                                           \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:274:17: note: returned from ‘__builtin_alloca’
  274 |   states_seen = alloca(sizeof(*states_seen) * tnfa->num_states);
      |                 ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:155:17: note: in expansion of macro ‘xfree’
  155 |                 xfree(tags);                                                  \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:272:10: note: returned from ‘__builtin_alloca’
  272 |   tags = alloca(sizeof(*tags) * tnfa->num_tags);
      |          ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:157:17: note: in expansion of macro ‘xfree’
  157 |                 xfree(pmatch);                                                \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:273:12: note: returned from ‘__builtin_alloca’
  273 |   pmatch = alloca(sizeof(*pmatch) * tnfa->num_submatches);
      |            ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:159:17: note: in expansion of macro ‘xfree’
  159 |                 xfree(states_seen);                                           \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:353:11: note: in expansion of macro ‘BT_STACK_PUSH’
  353 |           BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |           ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:274:17: note: returned from ‘__builtin_alloca’
  274 |   states_seen = alloca(sizeof(*states_seen) * tnfa->num_states);
      |                 ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:140:17: note: in expansion of macro ‘xfree’
  140 |                 xfree(tags);                                                  \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:272:10: note: returned from ‘__builtin_alloca’
  272 |   tags = alloca(sizeof(*tags) * tnfa->num_tags);
      |          ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:142:17: note: in expansion of macro ‘xfree’
  142 |                 xfree(pmatch);                                                \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:273:12: note: returned from ‘__builtin_alloca’
  273 |   pmatch = alloca(sizeof(*pmatch) * tnfa->num_submatches);
      |            ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:144:17: note: in expansion of macro ‘xfree’
  144 |                 xfree(states_seen);                                           \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:274:17: note: returned from ‘__builtin_alloca’
  274 |   states_seen = alloca(sizeof(*states_seen) * tnfa->num_states);
      |                 ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:155:17: note: in expansion of macro ‘xfree’
  155 |                 xfree(tags);                                                  \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:272:10: note: returned from ‘__builtin_alloca’
  272 |   tags = alloca(sizeof(*tags) * tnfa->num_tags);
      |          ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:157:17: note: in expansion of macro ‘xfree’
  157 |                 xfree(pmatch);                                                \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:273:12: note: returned from ‘__builtin_alloca’
  273 |   pmatch = alloca(sizeof(*pmatch) * tnfa->num_submatches);
      |            ^~~~~~
In file included from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:77:
/home/alex/FTL/src/tre-regex/xmalloc.h:69:20: warning: ‘free’ called on pointer to an unallocated object [-Wfree-nonheap-object]
   69 | #define xfree(ptr) free(ptr)
      |                    ^~~~~~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:159:17: note: in expansion of macro ‘xfree’
  159 |                 xfree(states_seen);                                           \
      |                 ^~~~~
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:574:19: note: in expansion of macro ‘BT_STACK_PUSH’
  574 |                   BT_STACK_PUSH(pos, str_byte, str_wide, trans_i->state,
      |                   ^~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:574,
                 from /home/alex/FTL/src/tre-regex/tre-match-backtrack.c:58:
/home/alex/FTL/src/tre-regex/tre-match-backtrack.c:274:17: note: returned from ‘__builtin_alloca’
  274 |   states_seen = alloca(sizeof(*states_seen) * tnfa->num_states);
      |                 ^~~~~~
[ 36%] Building C object src/syscalls/CMakeFiles/syscalls.dir/strdup.c.o
[ 36%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/crypto.c.o
[ 37%] Building C object src/syscalls/CMakeFiles/syscalls.dir/vasprintf.c.o
[ 37%] Building C object src/syscalls/CMakeFiles/syscalls.dir/vfprintf.c.o
[ 38%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-match-parallel.c.o
[ 39%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dbus.c.o
[ 40%] Building C object src/syscalls/CMakeFiles/syscalls.dir/vsnprintf.c.o
[ 40%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dhcp-common.c.o
[ 40%] Building C object src/syscalls/CMakeFiles/syscalls.dir/vsprintf.c.o
[ 41%] Building C object src/syscalls/CMakeFiles/syscalls.dir/write.c.o
[ 41%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-mem.c.o
[ 42%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-parse.c.o
[ 42%] Built target syscalls
[ 42%] Building C object src/config/CMakeFiles/config.dir/cli.c.o
[ 43%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dhcp.c.o
[ 44%] Building C object src/config/CMakeFiles/config.dir/config.c.o
[ 44%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/tre-stack.c.o
[ 44%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dhcp6.c.o
[ 45%] Building C object src/tre-regex/CMakeFiles/tre-regex.dir/xmalloc.c.o
[ 45%] Built target tre-regex
[ 45%] Building C object src/config/CMakeFiles/config.dir/dnsmasq_config.c.o
[ 45%] Building C object src/config/tomlc99/CMakeFiles/tomlc99.dir/toml.c.o
[ 46%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dnsmasq.c.o
[ 47%] Building C object src/config/CMakeFiles/config.dir/inotify.c.o
[ 47%] Building C object src/config/CMakeFiles/config.dir/legacy_reader.c.o
[ 48%] Building C object src/config/CMakeFiles/config.dir/password.c.o
[ 48%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dnssec.c.o
[ 48%] Building C object src/config/CMakeFiles/config.dir/toml_writer.c.o
[ 48%] Built target tomlc99
[ 48%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/domain.c.o
[ 49%] Building C object src/database/CMakeFiles/sqlite3.dir/sqlite3.c.o
[ 50%] Building C object src/config/CMakeFiles/config.dir/toml_reader.c.o
[ 51%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/domain-match.c.o
[ 51%] Building C object src/config/CMakeFiles/config.dir/toml_helper.c.o
[ 51%] Built target config
[ 51%] Building C object src/CMakeFiles/FTL.dir/args.c.o
[ 51%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/dump.c.o
[ 52%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/edns0.c.o
[ 52%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/forward.c.o
[ 52%] Building C object src/CMakeFiles/FTL.dir/capabilities.c.o
[ 53%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/hash-questions.c.o
[ 54%] Building C object src/CMakeFiles/FTL.dir/daemon.c.o
[ 54%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/helper.c.o
[ 54%] Building C object src/CMakeFiles/FTL.dir/datastructure.c.o
[ 55%] Building C object src/CMakeFiles/FTL.dir/dnsmasq_interface.c.o
[ 56%] Building C object src/api/CMakeFiles/api.dir/2fa.c.o
[ 57%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/inotify.c.o
[ 57%] Building C object src/api/CMakeFiles/api.dir/action.c.o
[ 57%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/ipset.c.o
[ 58%] Building C object src/api/CMakeFiles/api.dir/api.c.o
[ 59%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/lease.c.o
[ 59%] Building C object src/api/CMakeFiles/api.dir/auth.c.o
[ 59%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/log.c.o
[ 60%] Building C object src/api/CMakeFiles/api.dir/config.c.o
[ 60%] Building C object src/CMakeFiles/FTL.dir/edns0.c.o
[ 61%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/loop.c.o
[ 62%] Building C object src/CMakeFiles/FTL.dir/events.c.o
[ 62%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/metrics.c.o
[ 62%] Building C object src/CMakeFiles/FTL.dir/files.c.o
[ 62%] Building C object src/api/CMakeFiles/api.dir/dhcp.c.o
[ 63%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/netlink.c.o
[ 64%] Building C object src/api/CMakeFiles/api.dir/dns.c.o
[ 65%] Building C object src/CMakeFiles/FTL.dir/gc.c.o
[ 65%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/network.c.o
[ 65%] Building C object src/api/CMakeFiles/api.dir/network.c.o
[ 65%] Building C object src/CMakeFiles/FTL.dir/log.c.o
[ 66%] Building C object src/api/CMakeFiles/api.dir/history.c.o
[ 67%] Building C object src/CMakeFiles/FTL.dir/main.c.o
[ 67%] Building C object src/api/CMakeFiles/api.dir/info.c.o
/home/alex/FTL/src/main.c:35:9: note: ‘#pragma message: Minimum GLIBC version: 2.35’
   35 | #pragma message "Minimum GLIBC version: " xstr(__GLIBC__) "." xstr(__GLIBC_MINOR__)
      |         ^~~~~~~
[ 67%] Building C object src/CMakeFiles/FTL.dir/overTime.c.o
[ 67%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/nftset.c.o
[ 68%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/option.c.o
[ 69%] Building C object src/CMakeFiles/FTL.dir/procps.c.o
[ 69%] Building C object src/CMakeFiles/FTL.dir/regex.c.o
[ 70%] Building C object src/api/CMakeFiles/api.dir/list.c.o
[ 70%] Building C object src/api/CMakeFiles/api.dir/logs.c.o
[ 71%] Building C object src/CMakeFiles/FTL.dir/resolve.c.o
[ 71%] Building C object src/api/CMakeFiles/api.dir/queries.c.o
[ 71%] Building C object src/CMakeFiles/FTL.dir/setupVars.c.o
[ 71%] Building C object src/CMakeFiles/FTL.dir/shmem.c.o
[ 72%] Building C object src/api/CMakeFiles/api.dir/search.c.o
[ 72%] Building C object src/api/CMakeFiles/api.dir/stats_database.c.o
[ 73%] Building C object src/CMakeFiles/FTL.dir/signals.c.o
[ 73%] Building C object src/CMakeFiles/FTL.dir/struct_size.c.o
[ 74%] Building C object src/api/CMakeFiles/api.dir/stats.c.o
[ 75%] Building C object src/CMakeFiles/FTL.dir/timers.c.o
[ 75%] Building C object src/CMakeFiles/FTL.dir/vector.c.o
[ 75%] Built target FTL
[ 75%] Building C object src/webserver/CMakeFiles/webserver.dir/http-common.c.o
[ 75%] Building C object src/api/CMakeFiles/api.dir/teleporter.c.o
[ 75%] Built target api
[ 76%] Building C object src/webserver/CMakeFiles/webserver.dir/lua_web.c.o
[ 77%] Building C object src/lua/CMakeFiles/lua.dir/ftl_lua.c.o
In file included from /home/alex/FTL/src/lua/ftl_lua.c:14:
/home/alex/FTL/src/lua/ftl_lua.c: In function ‘pihole_include’:
/home/alex/FTL/src/lua/lauxlib.h:145:31: warning: value computed is not used [-Wunused-value]
  145 |         (luaL_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0))
      |                               ^~
/home/alex/FTL/src/lua/ftl_lua.c:197:9: note: in expansion of macro ‘luaL_dofile’
  197 |         luaL_dofile(L, abspath);
      |         ^~~~~~~~~~~
[ 77%] Building C object src/webserver/CMakeFiles/webserver.dir/webserver.c.o
[ 77%] Building C object src/lua/CMakeFiles/lua.dir/lapi.c.o
[ 78%] Building C object src/webserver/CMakeFiles/webserver.dir/x509.c.o
/home/alex/FTL/src/webserver/x509.c: In function ‘generate_certificate’:
/home/alex/FTL/src/webserver/x509.c:152:9: error: implicit declaration of function ‘mbedtls_x509write_crt_set_serial_ra ’; did you mean ‘mbedtls_x509write_crt_set_serial’? [-Werror=implicit-function-declaration]
  152 |         mbedtls_x509write_crt_set_serial_raw(&crt, serial, sizeof(serial)-1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         mbedtls_x509write_crt_set_serial
/home/alex/FTL/src/webserver/x509.c:152:9: error: nested extern declaration of ‘mbedtls_x509write_crt_set_serial_raw’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
gmake[2]: *** [src/webserver/CMakeFiles/webserver.dir/build.make:118: src/webserver/CMakeFiles/webserver.dir/x509.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:533: src/webserver/CMakeFiles/webserver.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 78%] Building C object src/lua/CMakeFiles/lua.dir/lauxlib.c.o
[ 79%] Building C object src/lua/CMakeFiles/lua.dir/lbaselib.c.o
[ 79%] Building C object src/lua/CMakeFiles/lua.dir/lcode.c.o
[ 80%] Building C object src/lua/CMakeFiles/lua.dir/lcorolib.c.o
[ 80%] Building C object src/lua/CMakeFiles/lua.dir/lctype.c.o
[ 81%] Building C object src/lua/CMakeFiles/lua.dir/ldblib.c.o
[ 81%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/outpacket.c.o
[ 82%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/pattern.c.o
[ 82%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/poll.c.o
[ 83%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/radv.c.o
[ 83%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/rfc1035.c.o
[ 83%] Building C object src/lua/CMakeFiles/lua.dir/ldebug.c.o
[ 84%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/rfc2131.c.o
[ 85%] Building C object src/lua/CMakeFiles/lua.dir/ldo.c.o
[ 85%] Building C object src/lua/CMakeFiles/lua.dir/ldump.c.o
[ 85%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/rfc3315.c.o
[ 86%] Building C object src/lua/CMakeFiles/lua.dir/lfunc.c.o
[ 86%] Building C object src/lua/CMakeFiles/lua.dir/lgc.c.o
[ 87%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/rrfilter.c.o
[ 87%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/slaac.c.o
[ 88%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/tables.c.o
[ 88%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/tftp.c.o
[ 89%] Building C object src/lua/CMakeFiles/lua.dir/linit.c.o
[ 89%] Building C object src/lua/CMakeFiles/lua.dir/liolib.c.o
[ 90%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/ubus.c.o
[ 90%] Building C object src/dnsmasq/CMakeFiles/dnsmasq.dir/util.c.o
[ 91%] Building C object src/lua/CMakeFiles/lua.dir/llex.c.o
[ 91%] Building C object src/lua/CMakeFiles/lua.dir/lmathlib.c.o
[ 92%] Building C object src/lua/CMakeFiles/lua.dir/lmem.c.o
[ 92%] Building C object src/lua/CMakeFiles/lua.dir/loadlib.c.o
[ 92%] Built target dnsmasq
[ 92%] Building C object src/lua/CMakeFiles/lua.dir/lobject.c.o
[ 93%] Building C object src/lua/CMakeFiles/lua.dir/lopcodes.c.o
[ 93%] Building C object src/lua/CMakeFiles/lua.dir/loslib.c.o
[ 94%] Building C object src/lua/CMakeFiles/lua.dir/lparser.c.o
[ 94%] Building C object src/lua/CMakeFiles/lua.dir/lstate.c.o
[ 95%] Building C object src/lua/CMakeFiles/lua.dir/lstring.c.o
[ 95%] Building C object src/lua/CMakeFiles/lua.dir/lstrlib.c.o
[ 96%] Building C object src/lua/CMakeFiles/lua.dir/ltable.c.o
[ 96%] Building C object src/lua/CMakeFiles/lua.dir/ltablib.c.o
[ 97%] Building C object src/lua/CMakeFiles/lua.dir/ltm.c.o
[ 97%] Building C object src/lua/CMakeFiles/lua.dir/lua.c.o
[ 98%] Building C object src/lua/CMakeFiles/lua.dir/luac.c.o
[ 98%] Building C object src/lua/CMakeFiles/lua.dir/lundump.c.o
[ 99%] Building C object src/lua/CMakeFiles/lua.dir/lutf8lib.c.o
[ 99%] Building C object src/lua/CMakeFiles/lua.dir/lvm.c.o
[ 99%] Building C object src/lua/CMakeFiles/lua.dir/lzio.c.o
[ 99%] Built target lua
[ 99%] Built target sqlite3
gmake: *** [Makefile:136: all] Error 2

Ubuntu 22.04 provides mbedtls version 2.28.0 which is too old. FTL requires v3.x, the most recent release is v3.4.

Please see the pull request for the oncoming version v6.0 here:

https://github.com/pi-hole/docs/pull/338

and, more specifically, the updated documentation page here:

It is also important you get the latest libnettle from source as FTL v6.0 is using the secure password hashing function BALLOON which is a recent addition to the crypto library.

Thank you for all your help.

I've tried to build it again and I get an error, but it's fine, I'm just gonna deploy the Pi-hole preview docker image.

[100%] Linking C executable ../pihole-FTL
/usr/bin/ld: /usr/local/lib/libmbedtls.a(debug.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
gmake[2]: *** [src/CMakeFiles/pihole-FTL.dir/build.make:458: pihole-FTL] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:455: src/CMakeFiles/pihole-FTL.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

This is rather weird, I am not able to reproduce this. Using the docker container is likely the better option (it has all the necessary changes bundled into it). The solution would be what is suggested there, you'd need to manually modify the Makefiles of libmbedtls to achieve this.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.