<div dir="ltr">I'm trying to make pdns on a Solaris 10. My goal is to get it running with a (g)mysql backend.<br><br>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.<br>
<br>My ./configure:<br><br>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/<br>
<br>make then fails trying to compile 'bindbackend2.cc'. It doesn't have any trouble up to here either.<br><br> 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<br>
bindbackend2.cc: In member function `void Bind2Backend::loadConfig(std::string*)':<br>bindbackend2.cc:603: error: `exception' has not been declared<br>bindbackend2.cc:603: error: invalid catch parameter<br>bindbackend2.cc:605: error: `ae' undeclared (first use this function)<br>
bindbackend2.cc:605: error: (Each undeclared identifier is reported only once for each function it appears in.)<br>bindbackend2.cc: In static member function `static void Bind2Backend::queueReload(BB2DomainInfo*)':<br>
bindbackend2.cc:718: error: `exception' has not been declared<br>bindbackend2.cc:718: error: invalid catch parameter<br>bindbackend2.cc:720: error: `ae' undeclared (first use this function)<br>bindbackend2.cc: At global scope:<br>
bindbackend2.cc:479: warning: 'void prefetchFile(const std::string&)' defined but not used<br>*** Error code 1<br>make: Fatal error: Command failed for target `libbind2backend_la-bindbackend2.lo'<br>Current working directory /usr/share/src/pdns-2.9.21.1/pdns/backends/bind<br>
<br>I tried adding a '#include <exception>' at the top of the cc file but that didn't help. (Or change anything for that matter)<br><br>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.<br>
<br>Any ideas?<br><br clear="all"> - Cameron<br>
</div>