Feature #7465
closedCan the GeoIP v1.3.2 package in OpenIndiana Hipster be upgraded to v1.6.9
100%
Description
While attempting to configure ISC BIND 9.11.0 with the following command (see below)
$ 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 --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 --with-geoip --enable-ipv6checking GeoIP.h usability... yes
The configure failed while processing the GeoIP information (extract below)
checking GeoIP.h presence... yes
checking for GeoIP.h... yes
checking for library containing GeoIP_id_by_addr_gl... no
configure: error: suitable GeoIP library not found
ISC BIND 9.11.X and later require a more recent version of libGeoIP in order to be built with --with-geoip enabled.
Release information is here
https://github.com/maxmind/geoip-api-c/releases
Source files are available here
https://github.com/maxmind/geoip-api-c/releases/download/v1.6.9/GeoIP-1.6.9.tar.gz
Updated by Aurélien Larcher about 7 years ago
We have 1.4.8:
helios> pkg info -r database/geoip
Nom: database/geoip
Récapitulatif: GeoIP IP address lookup database
Category: System/Libraries
State: Non installé
Editeur: openindiana.org
Version: 1.4.8
Branch: 2016.0.0.0
Packaging Date: 29 juillet 2016 23:03:20
Taille: 1.07 Mo
FMRI: pkg://openindiana.org/database/geoip@1.4.8-2016.0.0.0:20160729T230320Z
Project URL: http://www.maxmind.com/
Source URL: http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.8.tar.gz
Could you please bump the package version of the component here:
https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/database/geoip
You can follow the instructions here:
Updated by r a about 7 years ago
I have tried building Bind 9.11.0-P1 using the GeoIP 1.4.8 library using the following command (see below)
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 --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 --with-geoip --enable-ipv6
The build fails with the following error message
checking GeoIP.h usability... yes
checking GeoIP.h presence... yes
checking for GeoIP.h... yes
checking for library containing GeoIP_id_by_addr_gl... no
configure: error: suitable GeoIP library not found
Updated by r a about 7 years ago
GeoIP v1.6.9 can be downloaded using the link supplied and can be built using the following ./configure
$ CC=gcc CXX=g++ CFLAGS='-m64 -O3' CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 LDFLAGS=-m64 ./configure --prefix=/opt/gnu --disable-static
$ gmake
This version can used with Bind 9.11.0 configure using --with-geoip=/opt/gnu
Updated by Alexander Pyhalov almost 7 years ago
Note, geoip 1.5 broke ABI compatibility. If we update geoip to 1.6.9 or above, the following packages should be recompiled:
pkg:/diagnostic/wireshark/wireshark-common pkg:/library/python/geoip pkg:/library/python/geoip-27 pkg:/library/python/geoip-34 pkg:/web/goaccess pkg:/web/server/nginx
Updated by Adam Števko over 6 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
GeoIP upgraded to 1.6.11
Updated by r a over 6 years ago
After upgrading to GeoIP 1.6.11 I was able to successfully build Bind 9.11.2-P1 with the following options
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 --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-dnstap --with-geoip
Jul 2 10:45:49 tesla named7190: [ID 873579 daemon.notice] command channel listening on 127.0.0.1#953
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.notice] starting BIND 9.11.1-P2 <id:f90acef>
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.notice] running on SunOS i86pc 5.11 illumos-8902f61a33
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.notice] built with '--prefix=/usr' '--mandir=/usr/share/man' '--bindir=/usr/sbin' '--libdir=/usr/lib/dns' '--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-dnstap' 'CC=gcc' 'CFLAGS=-m64 O3' 'LDFLAGS=-m64'
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.notice] running as: named -u named
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.notice] ---------------------------------------------------
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.notice] BIND 9 is maintained by Internet Systems Consortium,
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.notice] Inc. (ISC), a non-profit 501(c)(3) public-benefit
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.notice] corporation. Support and training for BIND 9 are
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.notice] available at https://www.isc.org/support
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.notice] ----------------------------------------------------
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.warning] Required root permissions to open '/var/run/named/session.key'.
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.warning] Please check file and directory permissions or reconfigure the filename.
Jul 2 10:50:58 tesla named7240: [ID 873579 daemon.notice] command channel listening on 127.0.0.1#953