Ticket #240 (closed defect: fixed)
svn-trunk recursor fails to compile on linux debian/unstable amd64
| Reported by: | anon | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | component1 | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | zaphodb@… |
Description
tanj:/usr/src/pdns-recursor-3.1.8-pre1-1354# make clean rm -f dep *.o *~ pdns_recursor rec_control *.gcda *.gcno optional/*.gcda optional/*.gcno optional/*.o tanj:/usr/src/pdns-recursor-3.1.8-pre1-1354# LUA=1 make g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -MM -MG *.cc *.c *.hh > dep PLEASE READ: If you get an error mentioning #include <boost/something.hpp>, please read README PLEASE READ: for an easy fix! g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c epollmplexer.cc -o optional/epollmplexer.o ; true g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c -o syncres.o syncres.cc g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c -o misc.o misc.cc g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c -o unix_utility.o unix_utility.cc g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c -o qtype.o qtype.cc g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c -o logger.o logger.cc g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c -o arguments.o arguments.cc g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c -o lwres.o lwres.cc g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c -o pdns_recursor.o pdns_recursor.cc g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c -o recursor_cache.o recursor_cache.cc g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c -o dnsparser.o dnsparser.cc g++ -Wall -DBOOST_SP_DISABLE_THREADS -O3 -D_GNU_SOURCE -I/usr/include/lua5.1 -DPDNS_ENABLE_LUA -c -o dnswriter.o dnswriter.cc dnswriter.cc: In member function 'void DNSPacketWriter::xfrText(const std::string&, bool)': dnswriter.cc:154: error: no matching function for call to 'min(unsigned int, long unsigned int)' dnswriter.cc:156: error: no matching function for call to 'min(unsigned int, long unsigned int)' make: *** [dnswriter.o] Error 1
oddly enough my i386 build went through just fine.
I'm suspecting a missing 'limits.h': http://wiki.powerdns.com/trac/changeset/1340/trunk/pdns/pdns/dnswriter.cc
Zap
Change History
Note: See
TracTickets for help on using
tickets.