[Pdns-users] Compiling Oracle backend

Paul Schaleger pschaleger at DigitalRiver.com
Wed Mar 26 12:24:53 UTC 2008


I am trying to compile pdns on Solaris 10/sparc with the Oracle backend.
I am using the Oracle 10g instant client and the compile appears to find
oci.h ok. I keep getting an error about dsword. The compiler used in
this case is gcc 4.2.3, but I get similar errors with others. Both the
oracle and goracle modules get a similar error. Has anyone come across
this?

 

export CPPFLAGS="-I/usr/local/include/boost-1_34_1
-I../instantclient_10_2/sdk" LDFLAGS="-lz
-L/var/tmp/pauls/instantclient_10_2 -lclntsh -m64"; ./configure
--prefix=/product01/pdns/2.9.21 --with-modules="oracle"

 

/var/tmp/pauls/pdns-2.9.21 $ gmake

gmake  all-recursive

gmake[1]: Entering directory `/var/tmp/pauls/pdns-2.9.21'

Making all in modules

gmake[2]: Entering directory `/var/tmp/pauls/pdns-2.9.21/modules'

Making all in oraclebackend

gmake[3]: Entering directory
`/var/tmp/pauls/pdns-2.9.21/modules/oraclebackend'

g++ -g -c  -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public
-I../../pdns -I../.. oraclebackend.cc

In file included from oraclebackend.cc:16:

oraclebackend.hh:99: error: `dsword' does not name a type

oraclebackend.cc: In constructor `OracleBackend::OracleBackend(const
std::string&)':

oraclebackend.cc:49: error: `dsword' undeclared (first use this
function)

oraclebackend.cc:49: error: (Each undeclared identifier is reported only
once for each function it appears in.)

oraclebackend.cc:49: error: expected `;' before "err"

oraclebackend.cc:94: error: `err' undeclared (first use this function)

oraclebackend.cc: In member function `virtual void
OracleBackend::lookup(const QType&, const std::string&, DNSPacket*,
int)':

oraclebackend.cc:350: error: `mQueryResult' undeclared (first use this
function)

oraclebackend.cc: In member function `virtual bool
OracleBackend::list(const std::string&, int)':

oraclebackend.cc:391: error: `mQueryResult' undeclared (first use this
function)

oraclebackend.cc: In member function `virtual bool
OracleBackend::get(DNSResourceRecord&)':

oraclebackend.cc:410: error: `mQueryResult' undeclared (first use this
function)

gmake[3]: *** [oraclebackend.o] Error 1

gmake[3]: Leaving directory
`/var/tmp/pauls/pdns-2.9.21/modules/oraclebackend'

gmake[2]: *** [all-recursive] Error 1

gmake[2]: Leaving directory `/var/tmp/pauls/pdns-2.9.21/modules'

gmake[1]: *** [all-recursive] Error 1

gmake[1]: Leaving directory `/var/tmp/pauls/pdns-2.9.21'

gmake: *** [all] Error 2

 

With goracle:

 

gmake  all-recursive

gmake[1]: Entering directory `/var/tmp/pauls/pdns-2.9.21'

Making all in modules

gmake[2]: Entering directory `/var/tmp/pauls/pdns-2.9.21/modules'

Making all in goraclebackend

gmake[3]: Entering directory
`/var/tmp/pauls/pdns-2.9.21/modules/goraclebackend'

if /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I../.. -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public
-I/usr/local/include/boost-1_34_1 -I../instantclient_10_2/sdk
-D_REENTRANT  -Wall -O2 -MT goraclebackend.lo -MD -MP -MF
".deps/goraclebackend.Tpo" -c -o goraclebackend.lo goraclebackend.cc; \

then mv -f ".deps/goraclebackend.Tpo" ".deps/goraclebackend.Plo"; else
rm -f ".deps/goraclebackend.Tpo"; exit 1; fi

mkdir .libs

 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/oracle/rdbms/demo
-I/opt/oracle/rdbms/public -I/usr/local/include/boost-1_34_1
-I../instantclient_10_2/sdk -D_REENTRANT -Wall -O2 -MT goraclebackend.lo
-MD -MP -MF .deps/goraclebackend.Tpo -c goraclebackend.cc  -fPIC -DPIC
-o .libs/goraclebackend.o

In file included from goraclebackend.cc:16:

soracle.hh:39: error: `dsword' does not name a type

gmake[3]: *** [goraclebackend.lo] Error 1

gmake[3]: Leaving directory
`/var/tmp/pauls/pdns-2.9.21/modules/goraclebackend'

gmake[2]: *** [all-recursive] Error 1

gmake[2]: Leaving directory `/var/tmp/pauls/pdns-2.9.21/modules'

gmake[1]: *** [all-recursive] Error 1

gmake[1]: Leaving directory `/var/tmp/pauls/pdns-2.9.21'

gmake: *** [all] Error 2

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20080326/90484ae9/attachment.html>


More information about the Pdns-users mailing list