Re: [Pdns-users] Power DNS 2.9.22 compile error while running 'make' command
On Thu, 27 May 2010 06:05:58 you wrote: > On Thu, May 27, 2010 at 12:41:09AM +1200, Michael wrote: > > 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. > > Michael, > > The difference is the gcc version. More recent versions have changed their > 'include' hierarchy. > > Try adding #include to the list of other includes in the file > rcpgenerator.cc. > > The up & coming pdns 3.0 has these fixes for newer gcc's included already. I have tried this and it's now spitting the following error: ../dnsparser.cc; \ then mv -f ".deps/dnsparser.Tpo" ".deps/dnsparser.Po"; else rm -f ".deps/dnsparser.Tpo"; exit 1; fi ../../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 make[4]: *** [dnsparser.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 r...@hostname:~/pdns-2.9.22# ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] Power DNS 2.9.22 compile error while running 'make' command
On Thu, May 27, 2010 at 12:41:09AM +1200, Michael wrote: > 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. Michael, The difference is the gcc version. More recent versions have changed their 'include' hierarchy. Try adding #include to the list of other includes in the file rcpgenerator.cc. The up & coming pdns 3.0 has these fixes for newer gcc's included already. Bert > > 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 > ___ > Pdns-users mailing list > Pdns-users@mailman.powerdns.com > http://mailman.powerdns.com/mailman/listinfo/pdns-users > ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] Power DNS 2.9.22 compile error while running 'make' command
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 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 to fix. I put it in dnsparser.hh. In case versions matter, here are the libs that might be relevant that I have installed on this system: ii libstdc++6 4.4.1-4ubuntu9The GNU Standard C++ Library v3 ii libstdc++6-4.4-dev 4.4.1-4ubuntu9The GNU Standard C++ Library v3 (development ii libglib2.0-02.22.2-0ubuntu1 The GLib library of C routines ii libglib2.0-data 2.22.2-0ubuntu1 Common files for GLib library ii g++ 4:4.4.1-1ubuntu2 The GNU C++ compiler ii g++-4.4 4.4.1-4ubuntu9The GNU C++ compiler On May 26, 2010, at 5:48 AM, Imre Gergely wrote: > > I could be wrong but it seems like you don't have some basic header > files installed. glibc-headers, glibc-devel maybe? > > On 05/26/2010 03:41 PM, Michael wrote: >> 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 >> ___ >> Pdns-users mailing list >> Pdns-users@mailman.powerdns.com >> http://mailman.powerdns.com/mailman/listinfo/pdns-users >> > > -- > Imre Gergely > Yahoo!: gergelyimre | ICQ#: 101510959 > MSN: gergely_imre | GoogleTalk: gergelyimre > gpg --keyserver subkeys.pgp.net --recv-keys 0x34525305 > ___ > Pdns-users mailing list > Pdns-users@mailman.powerdns.com > http://mailman.powerdns.com/mailman/listinfo/pdns-users ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] Power DNS 2.9.22 compile error while running 'make' command
I could be wrong but it seems like you don't have some basic header files installed. glibc-headers, glibc-devel maybe? On 05/26/2010 03:41 PM, Michael wrote: > 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 > ___ > Pdns-users mailing list > Pdns-users@mailman.powerdns.com > http://mailman.powerdns.com/mailman/listinfo/pdns-users > -- Imre Gergely Yahoo!: gergelyimre | ICQ#: 101510959 MSN: gergely_imre | GoogleTalk: gergelyimre gpg --keyserver subkeys.pgp.net --recv-keys 0x34525305 ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users