[Pdns-users]

Joe Honnold Joe_Honnold at starkey.com
Fri Jul 11 14:31:57 UTC 2008


Good day.
I have been attempting to compile pdns-2.9.21 on Solaris 10 update 5.

After a successful configure, gmake is failing with the following output.
===
"gmysqlbackend.cc", line 34: Error: Formal argument 1 of type std::ostream &(&)(std::ostream &) in call to Logger::operator<<(std::ostream &(&)(std::ostream &)) is being passed std::basic_ostream<std::charT, std::traits>&(std::basic_ostream<std::charT, std::traits>&).
"gmysqlbackend.cc", line 37: Error: Formal argument 1 of type std::ostream &(&)(std::ostream &) in call to Logger::operator<<(std::ostream &(&)(std::ostream &)) is being passed std::basic_ostream<std::charT, std::traits>&(std::basic_ostream<std::charT, std::traits>&).
"gmysqlbackend.cc", line 98: Error: Formal argument 1 of type std::ostream &(&)(std::ostream &) in call to Logger::operator<<(std::ostream &(&)(std::ostream &)) is being passed std::basic_ostream<std::charT, std::traits>&(std::basic_ostream<std::charT, std::traits>&)
====
Anyone have any ideas what needs to be done to get past this error?
TIA,
joe.


Complete gmake output and configure command is below.

====
gmake  all-recursive
gmake[1]: Entering directory `/root/powerdns/pdns-2.9.21'
Making all in modules
gmake[2]: Entering directory `/root/powerdns/pdns-2.9.21/modules'
Making all in gmysqlbackend
gmake[3]: Entering directory `/root/powerdns/pdns-2.9.21/modules/gmysqlbackend'
source='gmysqlbackend.cc' object='gmysqlbackend.lo' libtool=yes \
       DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
       /bin/bash ../../libtool --tag=CXX --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/csw/mysql5/include/mysql    -D_REENTRANT -I/opt/csw/include -DSOLARIS -Wall -O2 -c -o gmysqlbackend.lo gmysqlbackend.cc
mkdir .libs
CC -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/csw/mysql5/include/mysql -D_REENTRANT -I/opt/csw/include -DSOLARIS -Wall -O2 -c gmysqlbackend.cc  -KPIC -DPIC -o .libs/gmysqlbackend.o
CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise
"../../pdns/dns.hh", line 107: Warning: attribute packed is unsupported and will be skipped..
"../../pdns/dns.hh", line 113: Warning: attribute packed is unsupported and will be skipped..
"../../pdns/dns.hh", line 167: Warning: Identifier expected instead of "}".
"../../pdns/dns.hh", line 167: Warning: declarator required in declaration.
"../../pdns/dnspacket.hh", line 94: Warning: len hides DNSPacket::len.
"gmysqlbackend.cc", line 34: Error: Formal argument 1 of type std::ostream &(&)(std::ostream &) in call to Logger::operator<<(std::ostream &(&)(std::ostream &)) is being passed std::basic_ostream<std::charT, std::traits>&(std::basic_ostream<std::charT, std::traits>&).
"gmysqlbackend.cc", line 37: Error: Formal argument 1 of type std::ostream &(&)(std::ostream &) in call to Logger::operator<<(std::ostream &(&)(std::ostream &)) is being passed std::basic_ostream<std::charT, std::traits>&(std::basic_ostream<std::charT, std::traits>&).
"gmysqlbackend.cc", line 98: Error: Formal argument 1 of type std::ostream &(&)(std::ostream &) in call to Logger::operator<<(std::ostream &(&)(std::ostream &)) is being passed std::basic_ostream<std::charT, std::traits>&(std::basic_ostream<std::charT, std::traits>&).
3 Error(s) and 5 Warning(s) detected.
gmake[3]: *** [gmysqlbackend.lo] Error 1
gmake[3]: Leaving directory `/root/powerdns/pdns-2.9.21/modules/gmysqlbackend'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/root/powerdns/pdns-2.9.21/modules'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/powerdns/pdns-2.9.21'
gmake: *** [all] Error 2
====

This is the configure command that is being used.

./configure --prefix=/opt/powerdns --sysconfdir=/etc/powerdns \
--localstatedir=/var/run --enable-pdns_server --enable-recursor --with-pic \
--enable-shared --with-gnu-ld --with-ld=/opt/csw/bin/gld \
--with-gnu-as --with-as=/opt/csw/bin/gas --with-modules="gmysql pdns pipe geo" --with-dynmodules="gmysql pdns pipe geo" \
--with-mysql-includes=/opt/csw/mysql5/include CXXFLAGS="-I/opt/csw/include -DSOLARIS" LDFLAGS="-L/opt/csw/lib -lsocket -lnsl
" CC="/opt/csw/gcc3/bin/c++" && gmake

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20080711/1a7ec293/attachment-0001.html>


More information about the Pdns-users mailing list