[Pdns-users] Power DNS 2.9.22 compile error while running 'make' command

Michael pdns at nettrust.co.nz
Wed May 26 12:41:09 UTC 2010


On Slackware 13.0 while running Make:

I have successfully configured, compiled (and happily running) this on 2 other 
Slackware machines - one running 12.0 and the other 13.0, and I really am not 
sure what the difference between them is.

In all instances Boost 1.41 is used and configure is run as follows:
CXXFLAGS=-I/root/boost_1_41_0 \
./configure \
--sysconfdir=/usr/local/etc \
--localstatedir=/var/run \
--with-mysql=/usr/local/mysql \
--with-mysql-lib=/usr/local/lib/mysql \
--with-mysql-includes=/usr/local/include/mysql

On the problematic machine configure runs fine, but when I run Make I get the 
following error:

if 
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../.. -pthread   -D_GNU_SOURCE -I/root/boost_1_41_0 -Wall -O2 -MT 
rcpgenerator.o -MD -MP -MF ".deps/rcpgenerator.Tpo" -c -o rcpgenerator.o 
`test -f '../../rcpgenerator.cc' || echo './'`../../rcpgenerator.cc; \
        then mv -f ".deps/rcpgenerator.Tpo" ".deps/rcpgenerator.Po"; else 
rm -f ".deps/rcpgenerator.Tpo"; exit 1; fi
../../rcpgenerator.cc: In member function 'void 
RecordTextReader::xfrTime(uint32_t&)':
../../rcpgenerator.cc:75: error: 'sscanf' was not declared in this scope
../../rcpgenerator.cc: In member function 'void 
RecordTextWriter::xfrTime(const uint32_t&)':
../../rcpgenerator.cc:363: error: 'snprintf' was not declared in this scope
../../rcpgenerator.cc: In member function 'void 
RecordTextWriter::xfrHexBlob(const std::string&)':
../../rcpgenerator.cc:415: error: 'snprintf' was not declared in this scope
make[4]: *** [rcpgenerator.o] Error 1
make[4]: Leaving directory `/root/pdns-2.9.22/pdns/backends/bind'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/pdns-2.9.22/pdns/backends'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/pdns-2.9.22/pdns'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/pdns-2.9.22'
make: *** [all] Error 2



More information about the Pdns-users mailing list