Build pihole-FTL Error when using the open-source codes

When I try to build the pihole-FTL engine with the github official open-source codes, this error will appear. How to solve it?

In file included from src/dnsmasq/dnsmasq.h:161:0,
                 from src/dnsmasq/arp.c:17:
src/nettle/nettle-meta.h:37:26: fatal error: nettle-types.h: No such file or directory
 #include "nettle-types.h"
                          ^
compilation terminated.
Makefile:142: recipe for target 'build/dnsmasq/arp.o' failed
make: *** [build/dnsmasq/arp.o] Error 1

And I try to add the nettle in the src folder, I'll get the following error notice.

/usr/bin/ld: cannot find -lhogweed
/usr/bin/ld: cannot find -lgmp
/usr/bin/ld: cannot find -lnettle
collect2: error: ld returned 1 exit status
Makefile:160: recipe for target 'pihole-FTL' failed
make: *** [pihole-FTL] Error 1

Is there any dependencies I need to install ?

See here:

1 Like

I tried the method, but this error appeared when make nettle.

mkdir .lib 2>/dev/null
Makefile:300: recipe for target 'libhogweed.so' failed
make[1]: [libhogweed.so] Error 1 (ignored)
(cd .lib \
          && rm -f libhogweed.so \
  && ln -s ../libhogweed.so libhogweed.so \
  && [ -z "libhogweed.so.6" ] \
  || { rm -f libhogweed.so.6 \
       && ln -s libhogweed.so libhogweed.so.6 ; } )
echo hogweed > libhogweed.stamp
/bin/mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 libhogweed.so /usr/local/lib/libhogweed.so.6.0
[ -z "libhogweed.so.6" ] \
                || (cd /usr/local/lib \
        && rm -f libhogweed.so.6 libhogweed.so \
        && ln -s libhogweed.so.6.0 libhogweed.so.6 \
        && ln -s libhogweed.so.6.0 libhogweed.so)
make[1]: Leaving directory '/root/FTL/src/nettle'
set -e; for d in tools testsuite examples; do \
  echo "Making install in $d" ; (cd $d && make install); done

I've never compiled pihole myself.
Pinging @DL6ER.

1 Like

So where is this failing exactly? What was the command leading to this output? Note that you should not modify the content of the FTL directory sourced from Github at all. After preparing your system with libnettle as described in the documentation, everything will be available on your system for building FTL.

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