Hi all, trying to compile compactor on a linux system. I've got all the dependencies met and configure completes successfully but make is failing with the following errors. Any advice is appreciated. Peter make all-am make[1]: Entering directory '/home/peter/Downloads/dns-stats-compactor-0.10.1' CXX src/compactor-baseoutputwriter.o In file included from src/dnsmessage.hpp:22:0, from src/baseoutputwriter.hpp:20, from src/baseoutputwriter.cpp:15: src/capturedns.hpp: In member function ‘virtual CaptureDNS* CaptureDNS::clone() const’: src/capturedns.hpp:649:36: error: invalid new-expression of abstract class type ‘CaptureDNS’ return new CaptureDNS(*this); ^ src/capturedns.hpp:72:7: note: because the following virtual functions are pure within ‘CaptureDNS’: class CaptureDNS : public Tins::PDU ^~~~~~~~~~ In file included from /usr/local/include/tins/dns.h:39:0, from /usr/local/include/tins/tins.h:33, from src/ipaddress.hpp:22, from src/configuration.hpp:21, from src/baseoutputwriter.cpp:13: /usr/local/include/tins/pdu.h:516:18: note: virtual void Tins::PDU::write_serialization(uint8_t*, uint32_t) virtual void write_serialization(uint8_t* buffer, uint32_t total_sz) = 0; ^~~~~~~~~~~~~~~~~~~ In file included from src/baseoutputwriter.hpp:20:0, from src/baseoutputwriter.cpp:15: src/dnsmessage.hpp: At global scope: src/dnsmessage.hpp:228:16: error: cannot declare field ‘DNSMessage::dns’ to be of abstract type ‘CaptureDNS’ CaptureDNS dns; ^~~ Makefile:1261: recipe for target 'src/compactor-baseoutputwriter.o' failed make[1]: *** [src/compactor-baseoutputwriter.o] Error 1
Hi Peter,
Hi all, trying to compile compactor on a linux system. I've got all the dependencies met and configure completes successfully but make is failing with the following errors. Any advice is appreciated.
At first glance this looks like it might be a problem with the version of libtins. Compactor requires version 3.4 at minimum, though configure should check this. Is there any possibility that you have more than one version installed, and the build is picking up an old one? Meanwhile, if you can tell me what sort of Linux system you are using (distribution, version) and what compiler and version I will try to reproduce the problem. Thanks. -- Jim Hague - jim@sinodun.com Never trust a computer you can't lift.
participants (2)
-
Jim Hague -
Peter DeVries