[Pdns-users] MySQL libraries required?

Ask Bjørn Hansen ask at develooper.com
Sun Nov 8 02:54:55 UTC 2009


On Nov 7, 2009, at 17:37, bert hubert wrote:

> On Sat, Nov 07, 2009 at 03:58:07PM -0800, Ask Bjørn Hansen wrote:
>> Hi everyone,
>>
>> Why does ./configure look for (and require) the MySQL libs when
>> gmysql isn't requested?
>
> The 'pdns' backend you've requested is, in fact, MySQL based.

Oh bother - I clearly didn't think that through!   Thank you.  I  
really just need the pipe backend, so I shouldn't be including  
that. :-)  I wanted to look at porting pgeodns[1] - http://geo.bitnames.com/ 
  - to be a pipebackend to powerdns to get better performance.

After resetting my working copy and running bootstrap and
CXXFLAGS=-I/opt/local/include/ ./configure --with-modules="pipe"

I get:

[...]
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../.. -pthread  
-I/opt/local/include/ -Wall -O2 -MT libbind2backend_la-bindparser.lo - 
MD -MP -MF .deps/libbind2backend_la-bindparser.Tpo -c bindparser.cc -o  
libbind2backend_la-bindparser.o >/dev/null 2>&1
mv -f .deps/dnsparser.Tpo .deps/dnsparser.Po
mv -f .deps/bindparser.Tpo .deps/bindparser.Po
/bin/sh ../../../libtool --tag=CXX   --mode=link g++  -pthread -I/opt/ 
local/include/ -Wall -O2  -pthread  -o zone2sql bindparser.o  
bindlexer.o arguments.o logger.o zone2sql.o statbag.o misc.o  
unix_utility.o qtype.o dnspacket.o zoneparser-tng.o dnsrecords.o  
sillyrecords.o dnswriter.o rcpgenerator.o dnsparser.o base64.o  -lz
libtool: link: g++ -pthread -I/opt/local/include/ -Wall -O2 -pthread - 
o zone2sql bindparser.o bindlexer.o arguments.o logger.o zone2sql.o  
statbag.o misc.o unix_utility.o qtype.o dnspacket.o zoneparser-tng.o  
dnsrecords.o sillyrecords.o dnswriter.o rcpgenerator.o dnsparser.o  
base64.o -Wl,-bind_at_load  -lz -pthread
Undefined symbols:
   "_g_singleThreaded", referenced from:
       Logger::log(std::basic_string<char, std::char_traits<char>,  
std::allocator<char> > const&, Logger::Urgency)in logger.o
       StatRing::reset()     in statbag.o
       StatRing::resize(int)  in statbag.o
       StatRing::resize(int)  in statbag.o
       StatRing::resize(int)  in statbag.o
       StatRing::resize(int)  in statbag.o
       StatRing::get() constin statbag.o
       StatRing::get() constin statbag.o
       StatRing::get() constin statbag.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Is that just that I'm using the wrong boost version (1.40.0) or some  
such?   Can I give it an option to not include the bind-parser?


  - ask

[1] The Net::DNS::Nameserver based nameserver we use for  
`pool.ntp.org` (and the Apache folks are using for svn.apache.org)

-- 
http://develooper.com/ - http://askask.com/





More information about the Pdns-users mailing list