[Buildroot] [PATCH 1/1] package/dhcp: use internal bind
Fabrice Fontaine
fontaine.fabrice at gmail.com
Tue Apr 12 11:22:40 UTC 2022
Hello Eugen,
Le mar. 12 avr. 2022 à 13:15, <Eugen.Hristev at microchip.com> a écrit :
>
> On 4/9/22 5:09 PM, Peter Korsgaard wrote:
> >>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice at gmail.com> writes:
> >
> > > Use internal bind as dhcp doesn't build since bump of bind to version
> > > 9.16.26 in commit 8adeaec8afacbc680edebae91524f6144926ac92 and upstream
> > > doesn't plan to fix it any time soon:
> > > https://gitlab.isc.org/isc-projects/dhcp/-/issues/233#note_276883
> >
> > > In file included from ../includes/dhcpd.h:91,
> > > from ctrace.c:29:
> > > ../includes/omapip/isclib.h:51:10: fatal error: isc/boolean.h: No such file or directory
> > > 51 | #include <isc/boolean.h>
> > > | ^~~~~~~~~~~~~~~
> >
> > > Fixes:
> > > - http://autobuild.buildroot.org/results/d18b006dce7b46631ce8f4c72fb97eb861993939
> >
> > > Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> >
> > Committed to 2022.02.x, thanks.
> >
> > --
> > Bye, Peter Korsgaard
> > _______________________________________________
> > buildroot mailing list
> > buildroot at buildroot.org
> > https://lists.buildroot.org/mailman/listinfo/buildroot
> >
>
>
> Hello Peter, Fabrice,
>
> While your patch solves the isc/boolean.h problem, now I get several
> other problems when building an arm926 platform with this package :
> (sam9x60ek)
>
> Could you help please? 2022.01.1 is broken for me atm.
You should apply:
https://git.buildroot.net/buildroot/commit/?id=789a08dac5808401629d6fc586b7377f54ebb316
as well as
https://patchwork.ozlabs.org/project/buildroot/patch/DU0P251MB07797CAAE80C985DC8976335E3E79@DU0P251MB0779.EURP251.PROD.OUTLOOK.COM/
Having said that, I fear that dhcp will have to be removed soon due to
security concerns:
https://gitlab.isc.org/isc-projects/dhcp/-/issues/233
>
> Thanks,
> Eugen
>
>
> >>> dhcp 4.4.2-P1 Building
> PATH="/home/eugen/buildroot-2022.02/buildroot/output/host/bin:/home/eugen/buildroot-2022.02/buildroot/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
> /usr/bin/make -j1 -C
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/
> Making all in ./bind
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14
> already unpacked...
> Bind libraries already configured
> Building BIND libraries - this takes some time.
> Building isc library in
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/isc
> stats.c: In function ‘setcounter’:
> stats.c:300:29: error: ‘val’ undeclared (first use in this function);
> did you mean ‘value’?
> 300 | stats->counters[counter] = val;
> | ^~~
> | value
> stats.c:300:29: note: each undeclared identifier is reported only once
> for each function it appears in
> stats.c:286:20: warning: unused parameter ‘value’ [-Wunused-parameter]
> 286 | const uint64_t value)
> | ~~~~~~~~~~~~~~~^~~~~
> make[4]: *** [Makefile:290: stats.lo] Error 1
>
>
> Building dns library in
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/dns
>
> /lib/ld-linux.so.3: No such file or directory
>
>
> make[5]: *** [Makefile:605: include/dns/enumtype.h] Error 1
>
>
> make[4]: *** [Makefile:599: include] Error 2
>
>
> Building isccfg library in
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/isccfg
> In file included from
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/isccfg/include/isccfg/aclconf.h:24,
> from aclconf.c:24:
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/dns/include/dns/types.h:230:10:
> fatal error: dns/enumtype.h: No such file or directory
> 230 | #include <dns/enumtype.h> /* Provides dns_rdatatype_t. */
> | ^~~~~~~~~~~~~~~~
> compilation terminated.
> make[4]: *** [Makefile:241: aclconf.lo] Error 1
> Building irs library in
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/irs
> In file included from
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/dns/include/dns/tsig.h:28,
> from
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/dns/include/dns/client.h:45,
> from context.c:28:
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/dns/include/dns/types.h:230:10:
> fatal error: dns/enumtype.h: No such file or directory
> 230 | #include <dns/enumtype.h> /* Provides dns_rdatatype_t. */
> | ^~~~~~~~~~~~~~~~
> compilation terminated.
> make[4]: *** [Makefile:239: context.lo] Error 1
> Installing BIND libraries to
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind.
> stats.c: In function ‘setcounter’:
> stats.c:300:29: error: ‘val’ undeclared (first use in this function);
> did you mean ‘value’?
> 300 | stats->counters[counter] = val;
> | ^~~
> | value
> stats.c:300:29: note: each undeclared identifier is reported only once
> for each function it appears in
> stats.c:286:20: warning: unused parameter ‘value’ [-Wunused-parameter]
> 286 | const uint64_t value)
> | ~~~~~~~~~~~~~~~^~~~~
> make[4]: *** [Makefile:290: stats.lo] Error 1
> /lib/ld-linux.so.3: No such file or directory
> make[5]: *** [Makefile:605: include/dns/enumtype.h] Error 1
> make[4]: *** [Makefile:599: include] Error 2
> In file included from
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/isccfg/include/isccfg/aclconf.h:24,
> from aclconf.c:24:
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/dns/include/dns/types.h:230:10:
> fatal error: dns/enumtype.h: No such file or directory
> 230 | #include <dns/enumtype.h> /* Provides dns_rdatatype_t. */
> | ^~~~~~~~~~~~~~~~
> compilation terminated.
> make[4]: *** [Makefile:241: aclconf.lo] Error 1
> In file included from
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/dns/include/dns/tsig.h:28,
> from
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/dns/include/dns/client.h:45,
> from context.c:28:
> /home/eugen/buildroot-2022.02/buildroot/output/build/dhcp-4.4.2-P1/bind/bind-9.11.14/lib/dns/include/dns/types.h:230:10:
> fatal error: dns/enumtype.h: No such file or directory
> 230 | #include <dns/enumtype.h> /* Provides dns_rdatatype_t. */
> | ^~~~~~~~~~~~~~~~
> compilation terminated.
> make[4]: *** [Makefile:239: context.lo] Error 1
> make[3]: *** [Makefile:76: bind2] Error 2
Best Regards,
Fabrice
More information about the buildroot
mailing list