pdns 3.3.1 GCC 4.7.1 compile error

a b <[email protected]>
Newsgroups gmane.network.dns.powerdns.devel
Message-ID <[email protected]>
dnspacket.cc: In function 'bool checkForCorrectTSIG(const DNSPacket*, DNSBackend*, string*, string*, TSIGRecordContent*)':
dnspacket.cc:596:27: error: call of overloaded 'abs(uint64_t)' is ambiguous
dnspacket.cc:596:27: note: candidates are:
In file included from /usr/include/stdlib.h:18:0,
                 from /opt/lib/gcc/sparc-sun-solaris2.10/4.7.1/../../../../include/c++/4.7.1/cstdlib:66,
                 from /opt/lib/gcc/sparc-sun-solaris2.10/4.7.1/../../../../include/c++/4.7.1/bits/stl_algo.h:61,
                 from /opt/lib/gcc/sparc-sun-solaris2.10/4.7.1/../../../../include/c++/4.7.1/algorithm:63,
                 from /opt/include/boost-1_38/boost/shared_ptr.hpp:41,
                 from namespaces.hh:5,
                 from utility.hh:74,
                 from dnspacket.cc:19:
/opt/lib/gcc/sparc-sun-solaris2.10/4.7.1/include-fixed/iso/stdlib_iso.h:163:16: note: long int std::abs(long int)
/opt/lib/gcc/sparc-sun-solaris2.10/4.7.1/include-fixed/iso/stdlib_iso.h:117:12: note: int std::abs(int)
dnspacket.cc:597:126: error: call of overloaded 'abs(uint64_t)' is ambiguous
dnspacket.cc:597:126: note: candidates are:
In file included from /usr/include/stdlib.h:18:0,
                 from /opt/lib/gcc/sparc-sun-solaris2.10/4.7.1/../../../../include/c++/4.7.1/cstdlib:66,
                 from /opt/lib/gcc/sparc-sun-solaris2.10/4.7.1/../../../../include/c++/4.7.1/bits/stl_algo.h:61,
                 from /opt/lib/gcc/sparc-sun-solaris2.10/4.7.1/../../../../include/c++/4.7.1/algorithm:63,
                 from /opt/include/boost-1_38/boost/shared_ptr.hpp:41,
                 from namespaces.hh:5,
                 from utility.hh:74,
                 from dnspacket.cc:19:
/opt/lib/gcc/sparc-sun-solaris2.10/4.7.1/include-fixed/iso/stdlib_iso.h:163:16: note: long int std::abs(long int)
/opt/lib/gcc/sparc-sun-solaris2.10/4.7.1/include-fixed/iso/stdlib_iso.h:117:12: note: int std::abs(int)

Should this be reported as a bug?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.