Project

General

Profile

Feature #11070

Inlcude libidn2 as standard

Added by r a almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-05-25
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

After performing a clean install of OpenIndiana hipster onto a pair of SSD and importing my old user home zpool, I attempted to build BIND-9.12.3-P1, initially I had to perform a pkg install of geoip but the Bind build failed because of a missing idn2 file.

After downloading libidn2-2.2.0.tar.gz from here https://ftp.gnu.org/gnu/libidn/, I built it using CC=gcc CFLAGS='-m64 -O3' ./configure --prefix=/opt/gnu which allowed Bind 9.12.3-P1 to be built with

CC=gcc CXX=g++ F77=gfortran FC=gfortran CFLAGS='-m64 -O3' CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 LDFLAGS=-m64 PKG_CONFIG_PATH=/usr/lib/pkgconfig ./configure --prefix=/usr --mandir=/usr/share/man --bindir=/usr/sbin --libdir=/usr/lib/dns --enable-static=no --with-libtool --sbindir=/usr/sbin --sysconfdir=/etc --localstatedir=/var --with-openssl --enable-threads=yes --enable-devpoll=yes --disable-openssl-version-check --enable-fixed-rrset --with-pkcs11 --with-libxml2=/usr --enable-seccomp --enable-ipv6 --enable-querytrace --with-geoip --with-dlopen=no --with-lmdb=no --enable-dnsrps --with-gost=no --with-libidn2=/opt/gnu

#1

Updated by Michal Nowak almost 2 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • Tags deleted (needs-triage)

library/libidn2 is likely already present on your system, idn2.h included.

From what I've seen in in BIND 9.11 --with-libidn2=path is done incorrectly, putting -I/usr/include/idn2 to CFLAGS is enough to fix it.

I encourage you to update OI-shipped BIND 9.10 to 9.11 or 9.14 instead of building your own.

Otherwise I don't see any action item in here.

Also available in: Atom PDF