<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Petr<br>
</p>
<div class="moz-cite-prefix">Le 22/03/2021 à 13:56, Petr Menšík a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:d06d6ef8-e538-a338-b7fb-ba588f826d45@redhat.com">
<pre class="moz-quote-pre" wrap="">-DHAVE_CRYPTOHASH is needed only when -DHAVE_DNSSEC is NOT enabled.
Please turn off either DNSSEC or CRYPTOHASH. When DNSSEC is enabled,
CRYPTOHASH is always used without explicit declaration. It is there to
use cryptohash only without DNSSEC support compiled in.</pre>
</blockquote>
<p>I deactivate CRYPTOHASH and it's smoothly compiling.</p>
<p>Thanks to you and Simon for the help.<br>
</p>
<blockquote type="cite"
cite="mid:d06d6ef8-e538-a338-b7fb-ba588f826d45@redhat.com">
<pre class="moz-quote-pre" wrap="">[...]
On 3/22/21 9:26 AM, Daniel via Dnsmasq-discuss wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Le 21/03/2021 à 23:39, Simon Kelley a écrit :
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
On 21/03/2021 12:12, Daniel via Dnsmasq-discuss wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Le 20/03/2021 à 22:55, Simon Kelley a écrit :
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On 20/03/2021 11:11, Daniel via Dnsmasq-discuss wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Le 19/03/2021 à 23:37, Simon Kelley a écrit :
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On 18/03/2021 08:38, Daniel via Dnsmasq-discuss wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hello
Le 17/03/2021 à 22:48, Simon Kelley a écrit :
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">[...]
<a class="moz-txt-link-freetext" href="https://thekelleys.org.uk/dnsmasq/release-candidates/dnsmasq-2.85rc1.tar.gz">https://thekelleys.org.uk/dnsmasq/release-candidates/dnsmasq-2.85rc1.tar.gz</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Thanks Simon. FYI I didn't get it compiled (as well as 2,84) on
Debian
Buster getting
cc -o dnsmasq cache.o rfc1035.o util.o option.o forward.o network.o
dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o helper.o
tftp.o log.o conntrack.o dhcp6.o rfc3315.o dhcp-common.o outpacket.o
radv.o slaac.o auth.o ipset.o domain.o dnssec.o blockdata.o tables.o
loop.o inotify.o poll.o rrfilter.o edns0.o arp.o crypto.o dump.o
ubus.o
metrics.o hash_questions.o -ldbus-1 -lidn -lnetfilter_conntrack
-lnfnetlink -llua5.2 -lnettle -lhogweed
/usr/bin/ld: crypto.o: undefined reference to symbol '__gmpz_init'
/usr/bin/ld: //usr/lib/x86_64-linux-gnu/libgmp.so.10: error adding
symbols: DSO manquant dans la ligne de commande
collect2: error: ld returned 1 exit status
It's working by adding -lgmp to nettle_cflags and nettle_libs
nettle_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC
$(PKG_CONFIG) --cflags 'nettle hogweed' -lgmp\
HAVE_CRYPTOHASH $(PKG_CONFIG) --cflags nettle \
HAVE_NETTLEHASH $(PKG_CONFIG) --cflags nettle`
nettle_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC
$(PKG_CONFIG) --libs 'nettle hogweed' -lgmp\
HAVE_CRYPTOHASH $(PKG_CONFIG) --libs nettle \
HAVE_NETTLEHASH $(PKG_CONFIG) --libs nettle`
Cheers
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">How are you compiling? What command?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">uname -a
Linux keewi 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30)
x86_64
GNU/Linux
. download tarball
. untar
. sudo make
Error. Add the -lgmp to both lines => works fine
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">That doesn't make sense. The makefile in the tarball builds a binaery
which doesn't rely on any libraries other than libc when make is run
without arguments. Unless you've enabled DNSSEC, there should be no
dependency on libgmp.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Yes sorry, forgot to mention that I activate some options
Dnsmasq version 2.85rc1 Copyright (c) 2000-2021 Simon Kelley
Compile time options: IPv6 GNU-getopt DBus no-UBus no-i18n IDN DHCP
DHCPv6 Lua TFTP conntrack ipset auth cryptohash DNSSEC loop-detect
inotify dumpfile
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">HOW do you activate those options? Please try to tell us EXACTLY what
you do, starting from the downloaded tarball.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">. download tarball
. untar
. edit src/config.h
/* Build options which require external libraries.
Defining HAVE_<opt>_STATIC as _well_ as HAVE_<opt> will link the
library statically.
You can use "make COPTS=-DHAVE_<opt>" instead of editing these.
*/
#define HAVE_LUASCRIPT
#define HAVE_DBUS
#define HAVE_IDN
/* #define HAVE_LIBIDN2 */
#define HAVE_CONNTRACK
#define HAVE_CRYPTOHASH
#define HAVE_DNSSEC
. make
=> error
. edit Makefile and add -lgmp
nettle_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC
$(PKG_CONFIG) --cflags 'nettle hogweed' -lgmp\
HAVE_CRYPTOHASH $(PKG_CONFIG) --cflags nettle \
HAVE_NETTLEHASH $(PKG_CONFIG) --cflags nettle`
nettle_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC
$(PKG_CONFIG) --libs 'nettle hogweed' -lgmp\
HAVE_CRYPTOHASH $(PKG_CONFIG) --libs nettle \
HAVE_NETTLEHASH $(PKG_CONFIG) --libs nettle`
=> perfect :)
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Dnsmasq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a>
<a class="moz-txt-link-freetext" href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel Huhardeaux
+33.368460088@tootai.net <a class="moz-txt-link-abbreviated" href="mailto:sip:820@sip.tootai.net">sip:820@sip.tootai.net</a>
+41.445532125@swiss-itech.ch tootaiNET
</pre>
</body>
</html>