Problems building bind 9.18.1 on FreeBSD

Borja Marcos borjam at sarenet.es
Thu Mar 17 09:02:33 UTC 2022


> On 17 Mar 2022, at 08:59, Petr Špaček <pspacek at isc.org> wrote:
> 
> Hello,
> 
> On 17. 03. 22 8:49, Borja Marcos wrote:
>> Trying to compile bind 9.18.1 on FreeBSD I am stumbling upon a really silly problem. Getting plenty of errors like this
>> building the man pages.
>> building [man]: all source files
>> updating environment: [new config] 34 added, 0 changed, 0 removed
>> reading sources... [100%] tsig-keygen
>> Warning, treated as error:
>> ../../bin/named/named.conf.rst:901:Undefined substitution referenced: "named_conf".
>> *** Error code 2
> 
> Interesting!
> 
> How do you build it?

Pretty straightforward.

./configure with some options,
./configure --disable-linux-caps --localstatedir=/var --sysconfdir=/usr/local/etc/namedb --with-dlopen=yes --with-libxml2 --with-openssl=/usr --enable-dnsrps --with-readline=libedit --enable-dnstap --disable-fixed-rrset --disable-geoip --without-maxminddb --without-gssapi --with-libidn2=/usr/local --with-json-c --disable-largefile --with-lmdb=/usr/local --disable-querytrace --enable-tcp-fastopen --prefix=/usr/local --mandir=/usr/local/man --disable-silent-rules --infodir=/usr/local/share/info/ --build=amd64-portbld-freebsd13.0



make 

I built 9.18.0 without any issues, it was as straightforward as it can be!

Make is the FreeBSD version, not GNU Make.


> Please provide exact sequence of commands along with Sphinx and make version information.

I had Sphinx sphinx-3.5.2_1,1 built with Python 3.7.12

I deleted Python 3.7 and Sphinx, rebuilt with Python 3.8.12, Sphinx version 4.3.1, same result.


> 
>> I wonder whether I am missing some needed package. Also, is it really necessary to complicate the generation of man pages to
>> this extent?
> 
> Depends on who you ask. There are people who like to have correct path names in the the man pages, and other group of people don't that much :shrug:.

I understand it is important to have proper documentation. But I wonder whether things have gone out of control with dependencies. Especially for such an important
piece of software as Bind 9. But there are plenty of simple ways to achieve that substitution.

Per Ondřej Surý’s suggestion (I didn’t know you can avoid using Sphinx) I have removed Sphinx, with was installed as a dependency from another port,
and now it builds perfectly.  THANK YOU!

Anyway, with all due respect I would suggest to examine dependencies carefully. Such an important package should keep dependencies to the really mandatory ones.
Or documentation should state somewhere that you don’t need Sphinx, _or_ there should be a configure option to ignore it.

Cheers,





Borja.


More information about the bind-users mailing list