<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
Dear Mark,
<div class=""><br class="">
</div>
<div class="">many thanks for your hint again. </div>
<div class=""> —-with-geoip=yes does not exist, but <span style="font-family: Menlo;" class="">--enable-geoip</span> does. </div>
<div class="">Based on you suggestion I tested different possibilities, finally </div>
<div class="">
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">'--with-maxminddb=auto‘</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">did do the trick. </span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Kind regards </span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Hans </span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">— </span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 17.05.2022, at 02:58, Mark Andrews <<a href="mailto:marka@isc.org" class="">marka@isc.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Did you try re-running configure with ‘--with-maxminddb=/usr’ and then recompiling?<br class="">
<br class="">
What does 'named -V’ report when you do this?<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
again a missing / </div>
<div><br class="">
</div>
<div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> geoip-directory: usr/share/GeoIP</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<blockquote type="cite" class="">
<div class="">
<div class=""><br class="">
--with-maxminddb is used to find the header (include) files, the library and the database. These should all be relative to a common prefix which is what you specify.<br class="">
<br class="">
You also missed the leading ‘/‘ on the path when you ran configure previously as it is not in the path reported below. This all said you should be able just specify —-with-geoip=yes and configure will figure out the rest. <br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
No, I didn’t. I gave an absolute path with a leading / </div>
<div>But -V didn’t show it. </div>
<div>As I said, „auto“ is the right option. </div>
<div><br class="">
</div>
<div><br class="">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div class=""><br class="">
Mark<br class="">
<br class="">
<blockquote type="cite" class="">On 17 May 2022, at 06:09, MAYER Hans <<a href="mailto:Hans.Mayer@iiasa.ac.at" class="">Hans.Mayer@iiasa.ac.at</a>> wrote:<br class="">
<br class="">
<br class="">
<br class="">
Dear All, <br class="">
<br class="">
I posted my question originally at GitLab issue area because I thought it’s maybe a bug. But it isn’t.
<br class="">
<br class="">
I compiled commit c77fcc61 (HEAD -> v9_18, origin/v9_18) with configure options<br class="">
--enable-geoip --with-maxminddb=/usr/share/GeoIP<br class="">
when i run named -V there is:<br class="">
<br class="">
default paths:<br class="">
named configuration: /usr/local/etc/named.conf<br class="">
rndc configuration: /usr/local/etc/rndc.conf<br class="">
DNSSEC root key: /usr/local/etc/bind.keys<br class="">
nsupdate session key: /usr/local/var/run/named/session.key<br class="">
named PID file: /usr/local/var/run/named/named.pid<br class="">
named lock file: /usr/local/var/run/named/named.lock<br class="">
geoip-directory: usr/share/GeoIP/share/GeoIP<br class="">
<br class="">
<br class="">
The geoip-directory is quite strange as it doesn't exist<br class="">
OS is Debian 11.3 ( bullseye ) with latest patch level.<br class="">
pkg libmaxminddb-dev and libmaxminddb0 are installed. <br class="">
<br class="">
Mark was so nice and replied for this issue request. <br class="">
<br class="">
"Use --with-maxminddb=/usr. share/GeoIP is appended to this configure argument. This is the same as libraries where /include and /lib are appended to the configure argument.“
<br class="">
<br class="">
If I understand correctly "--with-maxminddb" is a relative path and will be add to "--prefix" which is in my case /usr/local
<br class="">
To work well I should compile with option --with-maxminddb=GeoIP and I make a symbolic link from /usr/local/GeoIP to /usr/share/GeoIP<br class="">
<br class="">
But when I run configure with --with-maxminddb=GeoIP the following „make“ terminates with an error:
<br class="">
../../libtool: line 7563: cd: GeoIP/lib: No such file or directory<br class="">
libtool: error: cannot determine absolute directory name of 'GeoIP/lib'<br class="">
<br class="">
Which is also quite curios because below /usr/share/GeoIP there is no directory „lib“ but with --with-maxminddb=/usr/share/GeoIP it compiles well.
<br class="">
<br class="">
How to compile bind with the maxmind db located in /usr/share/GeoIP ? <br class="">
Any help would be appreciated. <br class="">
<br class="">
<br class="">
Kind regards <br class="">
Hans <br class="">
<br class="">
<br class="">
<br class="">
<br class="">
--<br class="">
<br class="">
Ing. Dipl.-Ing. Hans Mayer<br class="">
Systems Analyst<br class="">
Network Unix Security Team (NUST) <br class="">
Information and Communication Technologies (ICT)<br class="">
<br class="">
International Institute for Applied Systems Analysis (IIASA)<br class="">
Schlossplatz 1<br class="">
A-2361 Laxenburg, Austria<br class="">
Phone: +43 2236 807 Ext 215<br class="">
Mobile: +43 676 83 807 215<br class="">
Web: <a href="http://www.iiasa.ac.at" class="">http://www.iiasa.ac.at</a><br class="">
<a href="mailto:hans.mayer@iiasa.at" class="">E-Mail: hans.mayer@iiasa.at</a><br class="">
<br class="">
Note: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. <br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
-- <br class="">
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list<br class="">
<br class="">
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.<br class="">
<br class="">
<br class="">
bind-users mailing list<br class="">
bind-users@lists.isc.org<br class="">
https://lists.isc.org/mailman/listinfo/bind-users<br class="">
</blockquote>
<br class="">
-- <br class="">
Mark Andrews, ISC<br class="">
1 Seymour St., Dundas Valley, NSW 2117, Australia<br class="">
PHONE: +61 2 9871 4742 INTERNET: <a href="mailto:marka@isc.org" class="">
marka@isc.org</a><br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>