MySQL libraries required?

View: New views
4 Messages — Rating Filter:   Alert me  

MySQL libraries required?

by Ask Bjørn Hansen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone,

Why does ./configure look for (and require) the MySQL libs when gmysql  
isn't requested?

  - ask

[ask@embla pdns]$ sh bootstrap;  CXXFLAGS=-I/opt/local/include/ ./
configure --with-modules="pdns pipe geo"
Please ignore this warning when you see it:
warning: AC_TRY_RUN called without default to allow cross compiling
[....]
checking whether we should build static binaries...
checking whether we will be building the server... yes
checking whether we will be building the recursor... no
checking whether we should use nedmalloc allocator... no
checking for MySQL library directory... /usr/local/mysql/lib
checking for MySQL include directory... /usr/local/mysql/include/mysql
[...]
_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Re: MySQL libraries required?

by bert hubert-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

> [ask@embla pdns]$ sh bootstrap;  CXXFLAGS=-I/opt/local/include/ ./
> configure --with-modules="pdns pipe geo"

Which is why. Good luck!

Kind regards,

Bert Hubert
_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Re: MySQL libraries required?

by Ask Bjørn Hansen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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/


_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Re: MySQL libraries required?

by bert hubert-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Nov 07, 2009 at 06:54:55PM -0800, Ask Bjørn Hansen wrote:
> After resetting my working copy and running bootstrap and
> CXXFLAGS=-I/opt/local/include/ ./configure --with-modules="pipe"

The current subversion trunk may indeed have problems compiling the
Authoritative Server.

>   "_g_singleThreaded", referenced from:
>       Logger::log(std::basic_string<char, std::char_traits<char>,

I fixed this in subversion, but right now is not a good time to be building
against the subversion trunk - too much is in flux.

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

Cool!

_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users