[Pdns-users] Compile Error - exception not defined

Cameron Tacklind cameron at tacklind.com
Wed Sep 3 20:32:55 UTC 2008


I'm trying to make pdns on a Solaris 10. My goal is to get it running with a
(g)mysql backend.

This is my first system where i've had to exclusively compile from source by
hand (I use gentoo... and these compile and dependency issues just go away)
as this is my first time using Solaris. I'm using the g++ that came
preinstalled from my hosting company.

My ./configure:

CXXFLAGS=-I/usr/src/boost_1_36_0 ./configure --prefix=/opt/powerdns
--sysconfdir=/etc/powerdns --localstatedir=/var/run --enable-pdns_server
--enable-recursor --with-pic --enable-shared --with-modules="gmysql"
--with-mysql=/opt/mysql/mysql/
--with-mysql-includes=/opt/mysql/mysql/include/

make then fails trying to compile 'bindbackend2.cc'. It doesn't have any
trouble up to here either.

 g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../.. -D_REENTRANT
-I/usr/src/boost_1_36_0 -Wall -O2 -MT libbind2backend_la-bindbackend2.lo -MD
-MP -MF .deps/libbind2backend_la-bindbackend2.Tpo -c bindbackend2.cc  -fPIC
-DPIC -o .libs/libbind2backend_la-bindbackend2.o
bindbackend2.cc: In member function `void
Bind2Backend::loadConfig(std::string*)':
bindbackend2.cc:603: error: `exception' has not been declared
bindbackend2.cc:603: error: invalid catch parameter
bindbackend2.cc:605: error: `ae' undeclared (first use this function)
bindbackend2.cc:605: error: (Each undeclared identifier is reported only
once for each function it appears in.)
bindbackend2.cc: In static member function `static void
Bind2Backend::queueReload(BB2DomainInfo*)':
bindbackend2.cc:718: error: `exception' has not been declared
bindbackend2.cc:718: error: invalid catch parameter
bindbackend2.cc:720: error: `ae' undeclared (first use this function)
bindbackend2.cc: At global scope:
bindbackend2.cc:479: warning: 'void prefetchFile(const std::string&)'
defined but not used
*** Error code 1
make: Fatal error: Command failed for target
`libbind2backend_la-bindbackend2.lo'
Current working directory /usr/share/src/pdns-2.9.21.1/pdns/backends/bind

I tried adding a '#include <exception>' at the top of the cc file but that
didn't help. (Or change anything for that matter)

I don't need (or want) to use bind config files to configure pdns so if
there is a way to tell the configure script to not use the bindbackend
(which is what I'm assuming this is), that would be a solution as well.

Any ideas?

- Cameron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20080903/b53bba2e/attachment.html>


More information about the Pdns-users mailing list