Re: [Dnsmasq-discuss] dnsmasq compilation and dependencies: compilation macros and help
On 6/13/2019 12:14 PM, SALA MASSIMO wrote: > Kevin, could be a misunderstanding? > > My original question is about > dnsmasq --help > > > I don't need to discover how dnsmasq is built. > So I don't need to parse > dnsmasq -v > > > Let talk about end users. > Example, I disabled dhcp. > I expect for the users running > dnsmasq --help > they don't see any help about dhcp features. > As far as I can tell, help message by invoking '-h|--help' is not tailored to what is actually installed. -- John Doe ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq compilation and dependencies: compilation macros and help
Kevin, could be a misunderstanding? My original question is about dnsmasq --help I don't need to discover how dnsmasq is built. So I don't need to parse dnsmasq -v Let talk about end users. Example, I disabled dhcp. I expect for the users running dnsmasq --help they don't see any help about dhcp features. However, thank you for your suggestion. It suggests to me to check with dnsmasq 2.80. Best regards, Massimo Da: SALA MASSIMO Inviato: giovedì 13 giugno 2019 12:04:57 A: Kevin Darbyshire-Bryant Cc: dnsmasq-discuss@lists.thekelleys.org.uk Oggetto: Re: [Dnsmasq-discuss] dnsmasq compilation and dependencies: compilation macros and help Hi Kevin Massimo wrote: A quick glance at the source code: it seem to me the help arguments aren't conditioned by the compilation macros. Kevin wrote: ... we look (& parse) the output of ‘dnsmasq -v’ at run-time to determine what build-time options have been selected. Mmh we are saying different behaviours. Please Kevin * can you write one or two options you use in compilation and exactly what text do you search in the output of "dnsmasq -v" ? * which version of dnsmasq? I will compile dnsmasq 2.80, check again and post here my findings. Best regards, Massimo [ATS logo] Le informazioni contenute in questo messaggio e nei suoi allegati sono ad esclusivo beneficio del corretto destinatario e sono da considerarsi confidenziali e riservate. Qualora abbiate ricevuto il messaggio per errore, siete pregati di darne immediata notizia al mittente e di provvedere alla sua cancellazione. La rivelazione del contenuto di corrispondenza destinata ad altri e ricevuta per errore è perseguibile penalmente e può costituire un trattamento illecito di dati personali. This e-mail and any attachment is confidential and only for use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure of this communication is strictly prohibited. If you have received this communication in error, please notify the sender, and then delete this message from your system. Prima di stampare, pensa all’ambiente. ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq compilation and dependencies: compilation macros and help
Hi Kevin Massimo wrote: A quick glance at the source code: it seem to me the help arguments aren't conditioned by the compilation macros. Kevin wrote: ... we look (& parse) the output of ‘dnsmasq -v’ at run-time to determine what build-time options have been selected. Mmh we are saying different behaviours. Please Kevin * can you write one or two options you use in compilation and exactly what text do you search in the output of "dnsmasq -v" ? * which version of dnsmasq? I will compile dnsmasq 2.80, check again and post here my findings. Best regards, Massimo [ATS logo] Le informazioni contenute in questo messaggio e nei suoi allegati sono ad esclusivo beneficio del corretto destinatario e sono da considerarsi confidenziali e riservate. Qualora abbiate ricevuto il messaggio per errore, siete pregati di darne immediata notizia al mittente e di provvedere alla sua cancellazione. La rivelazione del contenuto di corrispondenza destinata ad altri e ricevuta per errore è perseguibile penalmente e può costituire un trattamento illecito di dati personali. This e-mail and any attachment is confidential and only for use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure of this communication is strictly prohibited. If you have received this communication in error, please notify the sender, and then delete this message from your system. Prima di stampare, pensa all’ambiente. ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq compilation and dependencies: compilation macros and help
> On 12 Jun 2019, at 19:56, SALA MASSIMO wrote: > > Hi Geert > > Ehm ... I mistyped writing the email. > > I check my script: > make COPTS="-DNO_AUTH -DNO_DHCP -DNO_INOTIFY -DNO_IPV6 -DNO_SCRIPT > -DNO_TFTP" > > A quick glance at the source code: it seem to me the help arguments aren't > conditioned by the compilation macros. > I need a confirm of this. > It isn't documented but IMHO it should be. Hi Massimo, Yes it probably should be. If it is any help, in openwrt we look (& parse) the output of ‘dnsmasq -v’ at run-time to determine what build-time options have been selected. Maybe you also could use this approach? Cheers, Kevin D-B gpg: 012C ACB2 28C6 C53E 9775 9123 B3A2 389B 9DE2 334A signature.asc Description: Message signed with OpenPGP ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq compilation and dependencies: compilation macros and help
Hi Geert Ehm ... I mistyped writing the email. I check my script: make COPTS="-DNO_AUTH -DNO_DHCP -DNO_INOTIFY -DNO_IPV6 -DNO_SCRIPT -DNO_TFTP" A quick glance at the source code: it seem to me the help arguments aren't conditioned by the compilation macros. I need a confirm of this. It isn't documented but IMHO it should be. Best regards, Massimo Da: Dnsmasq-discuss per conto di Geert Stappers Inviato: mercoledì 12 giugno 2019 19:26 A: dnsmasq-discuss@lists.thekelleys.org.uk Oggetto: Re: [Dnsmasq-discuss] dnsmasq compilation and dependencies On Wed, Jun 12, 2019 at 03:19:04PM +, SALA MASSIMO wrote: > Hi > > > I have some servers with linux 2.6.18. > > I know... but I cannot upgrade because of legacy applications, > it's ok for us, they are only for intranet usage. > > > Pls a few questions: > > 1) configure and compile vs dnsmasq --help > > > I want only the DNS daemon, a minimal version (not authoritative). > > I tried this: > > make COPTS="-DNO_AUTH DNO_DHCP -DNO_INOTIFY -DNO_IPV6 -DNO_SCRIPT > -DNO_TFTP" > > and it succeded. > > > However running > > src/dnsmasq --help > > I still see some options regarding the excluded features (like dhcp). > > Is this ok ? > Please, compare make COPTS="-DNO_AUTH DNO_DHCP -DNO_INOTIFY -DNO_IPV6 -DNO_SCRIPT -DNO_TFTP" with make COPTS="-DNO_AUTH -DNO_DHCP -DNO_INOTIFY -DNO_IPV6 -DNO_SCRIPT -DNO_TFTP" > 2) dependencies > > > >From the http://www.thekelleys.org.uk/dnsmasq/CHANGELOG > > I don't understand the dependencies on shared libraries. > > > Example: an excerpt from ver 2.79 > > Tidy up Crypto code, removing workarounds for ancient > versions of libnettle. We now require libnettle 3. > > > With the aforementioned options (1), is libnettled required? > > The output of ldd src/dnsmasq shows only > > linux-vdso.so.1 => (0x2aaab000) > libc.so.6 => /lib64/libc.so.6 (0x003ed480) > /lib64/ld-linux-x86-64.so.2 (0x003ed440) > > > On linux 2.6.18 I tried to download and compile libnettle3, but there are > too many broken dependencies. > Is it possibile to use dnsmasq 2.80 without this library? Groeten Geert Stappers -- Leven en laten leven ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss [ATS logo] Le informazioni contenute in questo messaggio e nei suoi allegati sono ad esclusivo beneficio del corretto destinatario e sono da considerarsi confidenziali e riservate. Qualora abbiate ricevuto il messaggio per errore, siete pregati di darne immediata notizia al mittente e di provvedere alla sua cancellazione. La rivelazione del contenuto di corrispondenza destinata ad altri e ricevuta per errore è perseguibile penalmente e può costituire un trattamento illecito di dati personali. This e-mail and any attachment is confidential and only for use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure of this communication is strictly prohibited. If you have received this communication in error, please notify the sender, and then delete this message from your system. Prima di stampare, pensa all'ambiente. ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss