<div dir="ltr"><div>Hello.<br><br>bind 9.10.x and 9.11.x fails to build if ./configure'ed --without-dlopen[1]:<br><br><span style="font-family:monospace,monospace">libtool: compile:  x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/net-dns/<wbr>bind-9.11.0_p1/work/bind-9.11.<wbr>0-P1 -I../.. -I./include -I../dns/include -I/var/tmp/portage/net-dns/<wbr>bind-9.11.0_p1/work/bind-9.11.<wbr>0-P1/lib/dns/include -I../../lib/dns/include -I/var/tmp/portage/net-dns/<wbr>bind-9.11.0_p1/work/bind-9.11.<wbr>0-P1/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/nothreads/<wbr>include -I../../lib/isc/x86_32/include -I../../lib/irs/include -I../../lib/irs/include -DVERSION=\"9.11.0-P1\" -DSYSCONFDIR=\"/etc/bind\" -D_GNU_SOURCE -march=core2 -freorder-blocks-and-partition -O2 -pipe -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-<wbr>checks -c nsprobe.c -o nsprobe.o >/dev/null 2>&1<br>libtool: link: x86_64-pc-linux-gnu-gcc -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o .libs/sample-gai .libs/sample-gai.o  -Wl,--as-needed ../irs/.libs/libirs.so ../dns/.libs/libdns.so ../isccfg/.libs/libisccfg.so /var/tmp/portage/net-dns/bind-<wbr>9.11.0_p1/work/bind-9.11.0-P1/<wbr>lib/dns/.libs/libdns.so /var/tmp/portage/net-dns/bind-<wbr>9.11.0_p1/work/bind-9.11.0-P1/<wbr>lib/isccc/.libs/libisccc.so /var/tmp/portage/net-dns/bind-<wbr>9.11.0_p1/work/bind-9.11.0-P1/<wbr>lib/isc/.libs/libisc.so ../isc/.libs/libisc.so -lcap -lz <br>../dns/.libs/libdns.so: undefined reference to `dlopen'<br>../dns/.libs/libdns.so: undefined reference to `dlclose'<br>../dns/.libs/libdns.so: undefined reference to `dlerror'<br>../dns/.libs/libdns.so: undefined reference to `dlsym'<br>collect2: error: ld returned 1 exit status<br>make[2]: *** [Makefile:463: sample-gai] Error 1</span><br><br>This fails under lib/samples/, but the problem is with <a href="http://libdns.so/la">libdns.so/la</a> itself. Failure was introduced by "merge dyndb" commit:<br><a href="https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commit;h=a00f9e2f50675bd43cc6a9fe2669709162a2ccb4" target="_blank">https://source.isc.org/cgi-<wbr>bin/gitweb.cgi?p=bind9.git;a=<wbr>commit;h=<wbr>a00f9e2f50675bd43cc6a9fe266970<wbr>9162a2ccb4</a><br>lib/dns/dyndb.c has dlopen() reference, but configure still allows to disable -ldl (--without-dlopen) and thus <a href="http://libdns.la">libdns.la</a> will be linked without -ldl. Probably correct fix will be to remove --with/without-dlopen option from ./configure.<br><br><br></div>Ref:<br>[1] <a href="https://bugs.gentoo.org/show_bug.cgi?id=600212" target="_blank">https://bugs.gentoo.org/show_<wbr>bug.cgi?id=600212</a><br><br><div>--<br><div><div><div class="m_-3851299247806843089gmail-m_9158888267607852625gmail_signature">Peter.</div></div>
</div></div></div>