[Pdns-users] Compile Error - exception not defined
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
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.
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"
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
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
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
Current working directory /usr/share/src/pdns-184.108.40.206/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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pdns-users