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

Michael pdns at nettrust.co.nz
Wed Jun 2 07:35:28 UTC 2010


On Thu, 27 May 2010 04:59:59 David Hawthorne wrote:
> I ran into this on ubuntu as well, with all the dependencies properly
> installed tyvm.
>
> ../../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
>
> It requires #include <cstdio> to fix.
>
> Same with:
>
> ../../dnsparser.cc: In member function ‘virtual std::string
> UnknownRecordContent::getZoneRepresentation() const’:
> ../../dnsparser.cc:46: error: ‘snprintf’ was not declared in this scope
> ../../dnsparser.cc: In member function ‘virtual void
> UnknownRecordContent::toPacket(DNSPacketWriter&)’: ../../dnsparser.cc:67:
> error: ‘sscanf’ was not declared in this scope
>
> Just requires #include <cstdio> to fix.  I put it in dnsparser.hh.

This information was what I needed - thanks :-)



More information about the Pdns-users mailing list