bpierre's patch below also fixes the following error that I encountered while building 6.6-1:
/home/bruda/.cache/pacaur/pi-hole-ftl/src/FTL-6.6.1/src/api/2fa.c: In function ‘hotp’:
/home/bruda/.cache/pacaur/pi-hole-ftl/src/FTL-6.6.1/src/api/2fa.c:36:32: error: passing argument 2 of ‘nettle_hmac_sha1_digest’ makes pointer from integer without a cast [-Wint-conversion]
36 | hmac_sha1_digest(&ctx, SHA1_DIGEST_SIZE, out);
| ^~~~~~~~~~~~~~~~
| |
| int
In file included from /home/bruda/.cache/pacaur/pi-hole-ftl/src/FTL-6.6.1/src/api/2fa.c:20:
/usr/include/nettle/hmac.h:139:27: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘int’
139 | uint8_t *digest);
| ~~~~~~~~~^~~~~~
/home/bruda/.cache/pacaur/pi-hole-ftl/src/FTL-6.6.1/src/api/2fa.c:36:9: error: too many arguments to function ‘nettle_hmac_sha1_digest’; expected 2, have 3
36 | hmac_sha1_digest(&ctx, SHA1_DIGEST_SIZE, out);
| ^~~~~~~~~~~~~~~~
/usr/include/nettle/hmac.h:138:1: note: declared here
138 | hmac_sha1_digest(struct hmac_sha1_ctx *ctx,
| ^~~~~~~~~~~~~~~~
make[2]: *** [src/api/CMakeFiles/api.dir/build.make:79: src/api/CMakeFiles/api.dir/2fa.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:618: src/api/CMakeFiles/api.dir/all] Error 2
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.