Package Details: pi-hole-ftl 5.25.2-2

Git Clone URL: https://aur.archlinux.org/pi-hole-ftl.git (read-only, click to copy)
Package Base: pi-hole-ftl
Description: The Pi-hole FTL engine
Upstream URL: https://github.com/pi-hole/FTL
Licenses: EUPL-1.2
Conflicts: dnsmasq
Provides: dnsmasq
Submitter: max.bra
Maintainer: max.bra (graysky)
Last Packager: max.bra
Votes: 56
Popularity: 1.47
First Submitted: 2017-05-07 15:23 (UTC)
Last Updated: 2024-08-10 09:53 (UTC)

Required by (65)

Sources (6)

Pinned Comments

max.bra commented on 2018-02-09 16:46 (UTC) (edited on 2019-10-18 23:13 (UTC) by max.bra)

ArchLinux Pi-hole is not officially supported by Pi-hole project. In case of bugs and malfunctions please DO NOT file a report upstream.

First of all check if the wiki (https://wiki.archlinux.org/index.php/Pi-hole) can help then ask here for assistance and tips.
When it will be excluded that the problem does not depend on ArchLinux we will file a bug upstream.

Latest Comments

« First ‹ Previous 1 .. 14 15 16 17 18 19 20 21 22 23 24 .. 44 Next › Last »

orlin2 commented on 2020-07-21 11:17 (UTC)

@max.bra and @graysky

Sorry, while I'm experienced with Arch Linux, I'm not too strong on building from source or using the AUR (it usually just works, or I troubleshoot dependencies).

I'm using "makepkg" to try and install pi-hole-ftl. To my knowledge, I haven't set any customizations to compile anything as I don't compile anything from source on my Pi except when I use makepkg for an AUR package.

I'm willing to try anything and I can check any config files if I can be directed where to look.

As far as a "clean chroot", I assume there's more too it than just running "sudo chroot" or is it that simple? I usually only use chroot when I'm first building an Arch Linux system or to mount my Pi SD card to troubleshoot.

graysky commented on 2020-07-21 11:09 (UTC)

@orlin2 - Are you building with makepkg or some AUR helper? If you're building with makepkg and still experiencing the error, as @max.bra said, something on your system is causing it. Have you tried building in a clean chroot?

max.bra commented on 2020-07-21 10:28 (UTC)

@orlin2 seems to be a bad option on your compiler... what is you SO and do you have some customizations on compiling process?

orlin2 commented on 2020-07-20 23:50 (UTC)

@max.bra I have a Raspberry Pi 3B, standard hardware (nothing fancy)

# uname -a
Linux pi 5.4.51-1-ARCH #1 SMP PREEMPT Wed Jul 15 02:49:03 UTC 2020 armv7l GNU/Linux

I tried your latest one and got almost to the same point, but a different error

[ 71%] Built target dnsmasq
{standard input}: Assembler messages:
{standard input}:568652: Warning: end of file not at end of a line; newline inserted
{standard input}:568653: Error: missing expression -- `cmp r3,'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
cc: fatal error: Killed signal terminated program cc1
compilation terminated.
make[2]: *** [src/database/CMakeFiles/sqlite3.dir/build.make:82: src/database/CMakeFiles/sqlite3.dir/sqlite3.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:264: src/database/CMakeFiles/sqlite3.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

max.bra commented on 2020-07-20 08:34 (UTC)

@orlin2 can you please specify your system?

max.bra commented on 2020-07-20 08:32 (UTC)

ok, updated without release bump for those not able to compile. thanks to all for reporting.

orlin2 commented on 2020-07-19 19:55 (UTC) (edited on 2020-07-19 19:57 (UTC) by orlin2)

Can't say it's a bug, but I'm having an issue upgrading pi-hole-ftl from version 4.3.1-5 to 5.1-3. With past upgrades, I usually work through any dependency issues, as I usually end up with a few as things change/evolve.

Reading through the comments here, I got past the 69% error in makepkg with someone's suggestion of setting a value for the variable $GIT_HASH. However, now I'm stuck at 74% "Linking C executable ../pihole-FTL". I receive several errors that indicate I may not have sqlite3 installed (which I do).

What am I missing?

If this is the wrong place to ask this question, please direct me where to go :)

[ 74%] Linking C executable ../pihole-FTL
/usr/bin/ld: database/CMakeFiles/database.dir/common.c.o: in function `dbclose':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:42: undefined reference to `sqlite3_close'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:51: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/common.c.o: in function `dbopen':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:77: undefined reference to `sqlite3_open_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:87: undefined reference to `sqlite3_busy_timeout'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:80: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:90: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/common.c.o: in function `dbquery':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:106: undefined reference to `sqlite3_vmprintf'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:129: undefined reference to `sqlite3_exec'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:138: undefined reference to `sqlite3_free'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:131: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:120: undefined reference to `sqlite3_free'
/usr/bin/ld: database/CMakeFiles/database.dir/common.c.o: in function `db_query_int':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:451: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:462: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:490: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:467: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:456: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:486: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/common.c.o: in function `db_init':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:237: undefined reference to `sqlite3_config'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:240: undefined reference to `sqlite3_auto_extension'
/usr/bin/ld: database/CMakeFiles/database.dir/common.c.o: in function `db_create':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:175: undefined reference to `sqlite3_open_v2'
/usr/bin/ld: database/CMakeFiles/database.dir/common.c.o: in function `db_init':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:256: undefined reference to `sqlite3_open_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:258: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/common.c.o: in function `db_create':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:178: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/common.c.o: in function `get_max_query_ID':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:509: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:521: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:530: undefined reference to `sqlite3_column_int64'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:535: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:514: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:524: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/common.c.o: in function `get_lastID':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:547: undefined reference to `sqlite3_last_insert_rowid'
/usr/bin/ld: database/CMakeFiles/database.dir/common.c.o: in function `get_sqlite3_version':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/common.c:553: undefined reference to `sqlite3_libversion'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_finalize_client_statements':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:466: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:472: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:478: undefined reference to `sqlite3_finalize'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_close':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:513: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:517: undefined reference to `sqlite3_close'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_open':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:77: undefined reference to `sqlite3_open_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:93: undefined reference to `sqlite3_exec'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:116: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:138: undefined reference to `sqlite3_busy_timeout'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:151: undefined reference to `sqlite3_busy_timeout'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:80: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:154: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:97: undefined reference to `sqlite3_free'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:128: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `domain_in_list':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:704: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:712: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:726: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:728: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:729: undefined reference to `sqlite3_clear_bindings'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:734: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:743: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:748: undefined reference to `sqlite3_clear_bindings'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:706: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:718: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:719: undefined reference to `sqlite3_clear_bindings'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `get_client_groupids':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:212: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:221: undefined reference to `sqlite3_step'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_finalizeTable':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:607: undefined reference to `sqlite3_finalize'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `get_client_groupids':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:294: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:304: undefined reference to `sqlite3_step'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_finalizeTable':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:607: undefined reference to `sqlite3_finalize'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `get_client_groupids':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:214: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:243: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_finalizeTable':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:607: undefined reference to `sqlite3_finalize'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `get_client_groupids':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:228: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:229: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:230: undefined reference to `sqlite3_column_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:231: undefined reference to `sqlite3_column_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:232: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:296: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:298: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:324: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_finalizeTable':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:607: undefined reference to `sqlite3_finalize'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `get_client_groupids':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:308: undefined reference to `sqlite3_column_text'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `get_group_names':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:353: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:364: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:355: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:357: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:380: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_finalizeTable':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:607: undefined reference to `sqlite3_finalize'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `get_group_names':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:368: undefined reference to `sqlite3_column_text'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_finalizeTable':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:607: undefined reference to `sqlite3_finalize'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_prepare_client_statements':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:419: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:433: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:447: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:436: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:422: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:450: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_getTable':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:550: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:553: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_getDomain':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:575: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:590: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:580: undefined reference to `sqlite3_column_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:581: undefined reference to `sqlite3_column_int'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_finalizeTable':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:607: undefined reference to `sqlite3_finalize'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_count':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:655: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:664: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:677: undefined reference to `sqlite3_column_int'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_finalizeTable':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:607: undefined reference to `sqlite3_finalize'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_count':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:666: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_finalizeTable':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:607: undefined reference to `sqlite3_finalize'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_count':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:657: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_finalizeTable':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:607: undefined reference to `sqlite3_finalize'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `domain_in_list':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:704: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:712: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:734: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:743: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:748: undefined reference to `sqlite3_clear_bindings'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:706: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:726: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:728: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:729: undefined reference to `sqlite3_clear_bindings'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:718: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:719: undefined reference to `sqlite3_clear_bindings'
/usr/bin/ld: database/CMakeFiles/database.dir/gravity-db.c.o: in function `gravityDB_get_regex_client_groups':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:871: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:882: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:884: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:882: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:903: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/gravity-db.c:873: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/message-table.c.o: in function `add_message':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:152: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:163: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:175: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:203: undefined reference to `sqlite3_bind_null'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:198: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:155: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:177: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:212: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:213: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:101: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:111: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:123: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:135: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:143: undefined reference to `sqlite3_clear_bindings'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:144: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:145: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:103: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:194: undefined reference to `sqlite3_bind_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:165: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:222: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:223: undefined reference to `sqlite3_clear_bindings'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:224: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:225: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:210: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:113: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:127: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:128: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:125: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:229: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/message-table.c:137: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/network-table.c.o: in function `getMACVendor':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:776: undefined reference to `sqlite3_open_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:797: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:806: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:820: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:823: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:824: undefined reference to `sqlite3_close'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:791: undefined reference to `sqlite3_close'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:778: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:779: undefined reference to `sqlite3_close'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:799: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:800: undefined reference to `sqlite3_close'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:809: undefined reference to `sqlite3_column_text'
/usr/bin/ld: database/CMakeFiles/database.dir/network-table.c.o: in function `update_netDB_hostname':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:200: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:216: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:225: undefined reference to `sqlite3_bind_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:234: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:235: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:218: undefined reference to `sqlite3_errmsg'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:220: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:203: undefined reference to `sqlite3_errmsg'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:227: undefined reference to `sqlite3_errmsg'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:229: undefined reference to `sqlite3_reset'
/usr/bin/ld: database/CMakeFiles/database.dir/network-table.c.o: in function `parse_neighbor_cache':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:666: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:646: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:412: undefined reference to `sqlite3_errcode'
/usr/bin/ld: database/CMakeFiles/database.dir/network-table.c.o: in function `unify_hwaddr':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:702: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:720: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:721: undefined reference to `sqlite3_column_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:724: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:709: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:748: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:714: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:704: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/network-table.c.o: in function `updateMACVendorRecords':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:845: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:854: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:855: undefined reference to `sqlite3_column_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:873: undefined reference to `sqlite3_exec'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:852: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:892: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:889: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:876: undefined reference to `sqlite3_free'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:847: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/network-table.c.o: in function `getDatabaseHostname':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:927: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:935: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:945: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:958: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:959: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:937: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:939: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:940: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:929: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/network-table.c:949: undefined reference to `sqlite3_column_text'
/usr/bin/ld: database/CMakeFiles/database.dir/query-table.c.o: in function `DB_save_queries':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:79: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:84: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:102: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:165: undefined reference to `sqlite3_bind_null'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:169: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:170: undefined reference to `sqlite3_clear_bindings'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:171: undefined reference to `sqlite3_reset'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:140: undefined reference to `sqlite3_bind_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:143: undefined reference to `sqlite3_bind_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:146: undefined reference to `sqlite3_bind_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:150: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:154: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:161: undefined reference to `sqlite3_bind_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:202: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:204: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:175: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/query-table.c.o: in function `delete_old_queries_in_DB':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:282: undefined reference to `sqlite3_changes'
/usr/bin/ld: database/CMakeFiles/database.dir/query-table.c.o: in function `DB_read_queries':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:320: undefined reference to `sqlite3_prepare_v2'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:328: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:330: undefined reference to `sqlite3_column_int64'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:331: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:328: undefined reference to `sqlite3_step'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:498: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:344: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:357: undefined reference to `sqlite3_column_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:364: undefined reference to `sqlite3_column_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:371: undefined reference to `sqlite3_column_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:385: undefined reference to `sqlite3_column_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:504: undefined reference to `sqlite3_finalize'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:322: undefined reference to `sqlite3_errstr'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/query-table.c:310: undefined reference to `sqlite3_errstr'
/usr/bin/ld: database/CMakeFiles/database.dir/sqlite3-ext.c.o: in function `subnet_match_impl':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:34: undefined reference to `sqlite3_result_error'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:39: undefined reference to `sqlite3_value_type'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:42: undefined reference to `sqlite3_value_type'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:42: undefined reference to `sqlite3_value_type'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:44: undefined reference to `sqlite3_result_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:40: undefined reference to `sqlite3_value_type'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:50: undefined reference to `sqlite3_value_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:53: undefined reference to `sqlite3_value_text'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:137: undefined reference to `sqlite3_result_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:60: undefined reference to `sqlite3_result_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:81: undefined reference to `sqlite3_result_int'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:95: undefined reference to `sqlite3_result_int'
/usr/bin/ld: database/CMakeFiles/database.dir/sqlite3-ext.c.o: in function `sqlite3_pihole_extensions_init':
$HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:147: undefined reference to `sqlite3_create_function'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/database/sqlite3-ext.c:152: undefined reference to `sqlite3_errstr'
/usr/bin/ld: dnsmasq/CMakeFiles/dnsmasq.dir/cache.c.o: in function `cache_reload':
$HOME/pi-hole-ftl/src/FTL-5.1/src/dnsmasq/cache.c:1292: undefined reference to `expand_filelist'
/usr/bin/ld: dnsmasq/CMakeFiles/dnsmasq.dir/dhcp.c.o: in function `dhcp_packet':
$HOME/pi-hole-ftl/src/FTL-5.1/src/dnsmasq/dhcp.c:346: undefined reference to `dhcp_reply'
/usr/bin/ld: dnsmasq/CMakeFiles/dnsmasq.dir/dhcp6.c.o: in function `dhcp6_packet':
$HOME/pi-hole-ftl/src/FTL-5.1/src/dnsmasq/dhcp6.c:138: undefined reference to `relay_reply6'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/dnsmasq/dhcp6.c:240: undefined reference to `dhcp6_reply'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/dnsmasq/dhcp6.c:230: undefined reference to `relay_upstream6'
/usr/bin/ld: dnsmasq/CMakeFiles/dnsmasq.dir/dnsmasq.c.o: in function `clear_cache_and_reload':
$HOME/pi-hole-ftl/src/FTL-5.1/src/dnsmasq/dnsmasq.c:1673: undefined reference to `reread_dhcp'
/usr/bin/ld: dnsmasq/CMakeFiles/dnsmasq.dir/dnsmasq.c.o: in function `main_dnsmasq':
$HOME/pi-hole-ftl/src/FTL-5.1/src/dnsmasq/dnsmasq.c:98: undefined reference to `read_opts'
/usr/bin/ld: dnsmasq/CMakeFiles/dnsmasq.dir/dnsmasq.c.o: in function `async_event':
$HOME/pi-hole-ftl/src/FTL-5.1/src/dnsmasq/dnsmasq.c:1435: undefined reference to `read_servers_file'
/usr/bin/ld: dnsmasq/CMakeFiles/dnsmasq.dir/inotify.c.o: in function `set_dynamic_inotify':
$HOME/pi-hole-ftl/src/FTL-5.1/src/dnsmasq/inotify.c:199: undefined reference to `option_read_dynfile'
/usr/bin/ld: dnsmasq/CMakeFiles/dnsmasq.dir/inotify.c.o: in function `inotify_check':
$HOME/pi-hole-ftl/src/FTL-5.1/src/dnsmasq/inotify.c:276: undefined reference to `option_read_dynfile'
/usr/bin/ld: $HOME/pi-hole-ftl/src/FTL-5.1/src/dnsmasq/inotify.c:286: undefined reference to `option_read_dynfile'
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/pihole-FTL.dir/build.make:479: pihole-FTL] Error 1
make[1]: *** [CMakeFiles/Makefile2:183: src/CMakeFiles/pihole-FTL.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Edit: sanitation and clarification

luizribeiro commented on 2020-07-19 16:00 (UTC)

@max.bra, I fixed the issue and made a PR to your github: https://github.com/max72bra/pi-hole-ftl-archlinux-customization/pull/1

The new md5 hash for the patch is 0f60bc56ed017710f5c34d5ec7450afc.

luizribeiro commented on 2020-07-19 14:00 (UTC)

Yeah. This is it. Running build.sh manually seems to show that our patch isn't working anymore when we try to build from outside of a git repo:

[ 66%] Built target dnsmasq
Building Pi-hole FTL daemon
   - Branch:
   - Architecture: x86_64 (compiled locally)
   - Version:
   - Tag:
   - Hash:
   - Commit date:
[ 66%] Built target gen_version
[ 67%] Building C object src/api/CMakeFiles/api.dir/api.c.o
In file included from /usr/include/string.h:495,
                 from /home/luiz/pi-hole-ftl/src/FTL-5.1/src/FTL.h:24,
                 from /home/luiz/pi-hole-ftl/src/FTL-5.1/src/api/api.c:11:
In function ‘memcpy’,
    inlined from ‘getVersion’ at /home/luiz/pi-hole-ftl/src/FTL-5.1/src/api/api.c:1062:2:
/usr/include/bits/string_fortified.h:34:10: error: ‘__builtin_memcpy’ forming offset [1, 6] is out of the bounds [0, 1] [-Werror=array-bounds]
   34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [src/api/CMakeFiles/api.dir/build.make:82: src/api/CMakeFiles/api.dir/api.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:237: src/api/CMakeFiles/api.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

luizribeiro commented on 2020-07-19 13:33 (UTC)

I think this has to do with src/gen_version.cmake on FTL. It seems to look for a git repo and tries to set a few constants for branch, version, hash, commit date, etc.

However, since we're using the tarball for the 5.1 release, it doesn't have a .git directory in it. So the build only works when you are using it from www.

This is partly what our patch was supposed to do, which is what @314eter was referring to.

However, it seems like we need to update it in some way? Maybe some new files were introduced that require the constants or new constants were introduced?