Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2005 10:04:59 +0200
From:      John Oxley <john@yoafrica.com>
To:        questions@freebsd.org
Subject:   GeoDNS + Bind + FreeBSD 5.4
Message-ID:  <20050823080459.GB84067@yoafrica.com>

next in thread | raw e-mail | index | archive | help
Hi,

I am trying to setup the GeoDNS patch (http://www.caraytech.com/geodns/)
on Bind.  Right now I am trying to patch it to /usr/src/contrib/bind9.
Is it a bad idea to patch things into the bind in world.  I know that
I'll have to repatch every time I update sources, or would it be a
bettter idea to install from ports?

Anyway the problem I am having is getting bind to compile with -lGeoIP.
This is the error I'm getting is below.  How do I tell make that I want
to use -lGeoIP for dig and not everything else, or can I only do this
with ports.

=3D=3D=3D> usr.bin/dig
cc -O -pipe -I/usr/local/include/  -DVERSION=3D'"9.3.1"' -DHAVE_CONFIG_H -D=
WANT_IPV6 -DOPENSSL -DUSE_MD5 -DNS_LOCALSTATEDIR=3D'"/var"' -DNS_SYSCONFDIR=
=3D'"/etc/namedb"' -DNAMED_CONFFILE=3D'"/etc/namedb/named.conf"' -DRNDC_CON=
FFILE=3D'"/etc/namedb/rndc.conf"' -DRNDC_KEYFILE=3D'"/etc/namedb/rndc.key"'=
 -I/usr/src/usr.bin/dig/../../lib/bind -I/usr/src/usr.bin/dig/../../contrib=
/bind9/lib/bind9/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/dns=
/include/dst -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/dns/include -I/=
usr/src/usr.bin/dig/../../lib/bind/dns -I/usr/src/usr.bin/dig/../../contrib=
/bind9/lib/isccc/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc=
cfg/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/unix/include=
 -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/isc/pthreads/include -I/usr=
/src/usr.bin/dig/../../contrib/bind9/lib/isc/include -I/usr/src/usr.bin/dig=
/../../lib/bind/isc -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/lwres/un=
ix/include -I/usr/src/usr.bin/dig/../../contrib/bind9/lib/lwres/include -I/=
usr/src/usr.bin/dig/../../lib/bind/lwres -I/usr/src/usr.bin/dig/../../contr=
ib/bind9/bin/dig/include -L/usr/local/lib -o dig dig.o dighost.o ../../lib/=
bind/bind9/libbind9.a ../../lib/bind/dns/libdns.a ../../lib/bind/isccc/libi=
sccc.a ../../lib/bind/isccfg/libisccfg.a  ../../lib/bind/isc/libisc.a ../..=
/lib/bind/lwres/liblwres.a -lcrypto -lpthread
=2E./../lib/bind/dns/libdns.a(acl.o)(.text+0x495): In function `dns_aclelem=
ent_match':
: undefined reference to `GeoIP_new'
=2E./../lib/bind/dns/libdns.a(acl.o)(.text+0x4bf): In function `dns_aclelem=
ent_match':
: undefined reference to `GeoIP_country_code_by_addr'
*** Error code 1

Stop in /usr/src/usr.bin/dig.
*** Error code 1

Stop in /usr/src/usr.bin.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
root@thanatos:/usr/src#=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050823080459.GB84067>