Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/bind: fix compile/linking failure
@ 2020-12-14 22:24 Peter Seiderer
  2020-12-17  0:48 ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Seiderer @ 2020-12-14 22:24 UTC (permalink / raw)
  To: buildroot

Fixes:

  - http://autobuild.buildroot.net/results/966a3de94aa97fa8e9895eede29c9cbfb4bd7301

  .../host/lib/gcc/arm-buildroot-linux-musleabihf/9.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: warning: libisccfg.so.163, needed by ../../lib/bind9/.libs/libbind9.so, not found (try using -rpath or -rpath-link)
  .../host/lib/gcc/arm-buildroot-linux-musleabihf/9.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: ../../lib/bind9/.libs/libbind9.so: undefined reference to `cfg_obj_line'

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
Changes v1 -> v2:
  - ISCCFGDEPLIBS vs. ISCCFGLIBS
---
 ...s-mdig-add-missing-isccfg-dependency.patch | 40 +++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 package/bind/0002-bin-tools-mdig-add-missing-isccfg-dependency.patch

diff --git a/package/bind/0002-bin-tools-mdig-add-missing-isccfg-dependency.patch b/package/bind/0002-bin-tools-mdig-add-missing-isccfg-dependency.patch
new file mode 100644
index 0000000000..8d3de0a035
--- /dev/null
+++ b/package/bind/0002-bin-tools-mdig-add-missing-isccfg-dependency.patch
@@ -0,0 +1,40 @@
+From 30c234ce88f4ad09d159f2665ed8a67b739074e1 Mon Sep 17 00:00:00 2001
+From: Peter Seiderer <ps.report@gmx.net>
+Date: Mon, 14 Dec 2020 20:52:43 +0100
+Subject: [PATCH] bin/tools/mdig: add missing isccfg dependency
+
+Fixes:
+
+  .../host/lib/gcc/arm-buildroot-linux-musleabihf/9.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: warning: libisccfg.so.163, needed by ../../lib/bind9/.libs/libbind9.so, not found (try using -rpath or -rpath-link)
+  .../host/lib/gcc/arm-buildroot-linux-musleabihf/9.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: ../../lib/bind9/.libs/libbind9.so: undefined reference to `cfg_obj_line'
+
+Signed-off-by: Peter Seiderer <ps.report@gmx.net>
+---
+Notes:
+  - this dependency seems only be needed on first compile, when the
+    libs are once installed in sysroot (independently from compile from
+    an earlyier version or from an up-to-date one with patch applied)
+    the dependency is not longer needed, even with the patch removed
+---
+ bin/tools/Makefile.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/bin/tools/Makefile.in b/bin/tools/Makefile.in
+index b12f80a..58c4837 100644
+--- a/bin/tools/Makefile.in
++++ b/bin/tools/Makefile.in
+@@ -94,9 +94,9 @@ genrandom at EXEEXT@: genrandom. at O@
+ 	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} \
+ 		-o $@ genrandom. at O@ @GENRANDOMLIB@ ${LIBS}
+ 
+-mdig at EXEEXT@: mdig. at O@ ${ISCDEPLIBS} ${DNSDEPLIBS} ${BIND9DEPLIBS}
++mdig at EXEEXT@: mdig. at O@ ${ISCDEPLIBS} ${ISCCFGDEPLIBS} ${DNSDEPLIBS} ${BIND9DEPLIBS}
+ 	export BASEOBJS="mdig. at O@"; \
+-	export LIBS0="${DNSLIBS} ${BIND9LIBS}"; \
++	export LIBS0="${ISCCFGLIBS} ${DNSLIBS} ${BIND9LIBS}"; \
+ 	${FINALBUILDCMD}
+ 
+ dnstap-read at EXEEXT@: dnstap-read. at O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
+-- 
+2.29.2
+
-- 
2.29.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH v2] package/bind: fix compile/linking failure
  2020-12-14 22:24 [Buildroot] [PATCH v2] package/bind: fix compile/linking failure Peter Seiderer
@ 2020-12-17  0:48 ` Petr Vorel
  2020-12-23 13:24   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2020-12-17  0:48 UTC (permalink / raw)
  To: buildroot

Hi Peter,

> Fixes:

>   - http://autobuild.buildroot.net/results/966a3de94aa97fa8e9895eede29c9cbfb4bd7301

>   .../host/lib/gcc/arm-buildroot-linux-musleabihf/9.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: warning: libisccfg.so.163, needed by ../../lib/bind9/.libs/libbind9.so, not found (try using -rpath or -rpath-link)
>   .../host/lib/gcc/arm-buildroot-linux-musleabihf/9.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: ../../lib/bind9/.libs/libbind9.so: undefined reference to `cfg_obj_line'

> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> Changes v1 -> v2:
>   - ISCCFGDEPLIBS vs. ISCCFGLIBS

Thanks for upstreaming this fix (you could have added upstream status):
https://gitlab.isc.org/isc-projects/bind9/-/issues/2348

But it looks like upstream suggest different fix:
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/4497/diffs
(draft, actually two commits).

Kind regards,
Petr

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH v2] package/bind: fix compile/linking failure
  2020-12-17  0:48 ` Petr Vorel
@ 2020-12-23 13:24   ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-12-23 13:24 UTC (permalink / raw)
  To: buildroot

>>>>> "Petr" == Petr Vorel <petr.vorel@gmail.com> writes:

 > Hi Peter,
 >> Fixes:

 >> - http://autobuild.buildroot.net/results/966a3de94aa97fa8e9895eede29c9cbfb4bd7301

 >> .../host/lib/gcc/arm-buildroot-linux-musleabihf/9.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: warning: libisccfg.so.163, needed by ../../lib/bind9/.libs/libbind9.so, not found (try using -rpath or -rpath-link)
 >> .../host/lib/gcc/arm-buildroot-linux-musleabihf/9.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: ../../lib/bind9/.libs/libbind9.so: undefined reference to `cfg_obj_line'

 >> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
 >> ---
 >> Changes v1 -> v2:
 >> - ISCCFGDEPLIBS vs. ISCCFGLIBS

 > Thanks for upstreaming this fix (you could have added upstream status):
 > https://gitlab.isc.org/isc-projects/bind9/-/issues/2348

 > But it looks like upstream suggest different fix:
 > https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/4497/diffs
 > (draft, actually two commits).

These have now been merged to the v9_11 branch. Committed after
replacing the patch by the upstream ones, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-23 13:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-14 22:24 [Buildroot] [PATCH v2] package/bind: fix compile/linking failure Peter Seiderer
2020-12-17  0:48 ` Petr Vorel
2020-12-23 13:24   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox