Created
March 5, 2015 13:42
-
-
Save anonymous/f9642cf29775a4137c0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In file included from /usr/include/openssl/ssl.h:1696:0, | |
from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20, | |
from /usr/include/boost/asio/ssl/context_base.hpp:19, | |
from /usr/include/boost/asio/ssl/context.hpp:27, | |
from /usr/include/boost/asio/ssl.hpp:19, | |
from fails.cc:1: | |
/usr/include/tins/dns.h:106:13: error: expected identifier before ‘char’ | |
CERT, | |
^ | |
/usr/include/tins/dns.h:106:13: error: expected ‘}’ before ‘char’ | |
In file included from /usr/include/tins/tins.h:33:0, | |
from fails.cc:2: | |
/usr/include/tins/dns.h:106:17: error: expected unqualified-id before ‘,’ token | |
CERT, | |
^ | |
/usr/include/tins/dns.h:142:42: error: ‘QueryType’ has not been declared | |
Query(const std::string &nm, QueryType tp, QueryClass cl) | |
^ | |
/usr/include/tins/dns.h:164:23: error: ‘QueryType’ has not been declared | |
void type(QueryType tp) { | |
^ | |
/usr/include/tins/dns.h:185:13: error: ‘QueryType’ does not name a type | |
QueryType type() const { return type_; } | |
^ | |
/usr/include/tins/dns.h:193:13: error: ‘QueryType’ does not name a type | |
QueryType type_; | |
^ | |
/usr/include/tins/dns.h: In constructor ‘Tins::Query::Query(const string&, int, Tins::QueryClass)’: | |
/usr/include/tins/dns.h:143:26: error: class ‘Tins::Query’ does not have any field named ‘type_’ | |
: name_(nm), type_(tp), qclass_(cl) {} | |
^ | |
/usr/include/tins/dns.h: In constructor ‘Tins::Query::Query()’: | |
/usr/include/tins/dns.h:148:23: error: class ‘Tins::Query’ does not have any field named ‘type_’ | |
Query() : type_(), qclass_() {} | |
^ | |
/usr/include/tins/dns.h: In member function ‘void Tins::Query::type(int)’: | |
/usr/include/tins/dns.h:165:17: error: ‘type_’ was not declared in this scope | |
type_ = tp; | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:305:13: error: expected unqualified-id before ‘)’ token | |
DNS(); | |
^ | |
/usr/include/tins/dns.h:317:13: error: expected unqualified-id before ‘const’ | |
DNS(const uint8_t *buffer, uint32_t total_sz); | |
^ | |
/usr/include/tins/dns.h:317:13: error: expected ‘)’ before ‘const’ | |
/usr/include/tins/dns.h:326:23: error: non-member function ‘uint16_t Tins::id()’ cannot have cv-qualifier | |
uint16_t id() const { return Endian::be_to_host(dns.id); } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint16_t Tins::id()’: | |
/usr/include/tins/dns.h:326:57: error: ‘dns’ was not declared in this scope | |
uint16_t id() const { return Endian::be_to_host(dns.id); } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:334:9: error: ‘QRType’ does not name a type | |
QRType type() const { return static_cast<QRType>(dns.qr); } | |
^ | |
/usr/include/tins/dns.h:341:26: error: non-member function ‘uint8_t Tins::opcode()’ cannot have cv-qualifier | |
uint8_t opcode() const { return dns.opcode; } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint8_t Tins::opcode()’: | |
/usr/include/tins/dns.h:341:41: error: ‘dns’ was not declared in this scope | |
uint8_t opcode() const { return dns.opcode; } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:349:40: error: non-member function ‘uint8_t Tins::authoritative_answer()’ cannot have cv-qualifier | |
uint8_t authoritative_answer() const { return dns.aa; } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint8_t Tins::authoritative_answer()’: | |
/usr/include/tins/dns.h:349:55: error: ‘dns’ was not declared in this scope | |
uint8_t authoritative_answer() const { return dns.aa; } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:356:29: error: non-member function ‘uint8_t Tins::truncated()’ cannot have cv-qualifier | |
uint8_t truncated() const { return dns.tc; } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint8_t Tins::truncated()’: | |
/usr/include/tins/dns.h:356:44: error: ‘dns’ was not declared in this scope | |
uint8_t truncated() const { return dns.tc; } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:364:37: error: non-member function ‘uint8_t Tins::recursion_desired()’ cannot have cv-qualifier | |
uint8_t recursion_desired() const { return dns.rd; } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint8_t Tins::recursion_desired()’: | |
/usr/include/tins/dns.h:364:52: error: ‘dns’ was not declared in this scope | |
uint8_t recursion_desired() const { return dns.rd; } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:372:39: error: non-member function ‘uint8_t Tins::recursion_available()’ cannot have cv-qualifier | |
uint8_t recursion_available() const { return dns.ra; } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint8_t Tins::recursion_available()’: | |
/usr/include/tins/dns.h:372:54: error: ‘dns’ was not declared in this scope | |
uint8_t recursion_available() const { return dns.ra; } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:379:21: error: non-member function ‘uint8_t Tins::z()’ cannot have cv-qualifier | |
uint8_t z() const { return dns.z; } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint8_t Tins::z()’: | |
/usr/include/tins/dns.h:379:36: error: ‘dns’ was not declared in this scope | |
uint8_t z() const { return dns.z; } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:387:38: error: non-member function ‘uint8_t Tins::authenticated_data()’ cannot have cv-qualifier | |
uint8_t authenticated_data() const { return dns.ad; } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint8_t Tins::authenticated_data()’: | |
/usr/include/tins/dns.h:387:53: error: ‘dns’ was not declared in this scope | |
uint8_t authenticated_data() const { return dns.ad; } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:395:37: error: non-member function ‘uint8_t Tins::checking_disabled()’ cannot have cv-qualifier | |
uint8_t checking_disabled() const { return dns.cd; } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint8_t Tins::checking_disabled()’: | |
/usr/include/tins/dns.h:395:52: error: ‘dns’ was not declared in this scope | |
uint8_t checking_disabled() const { return dns.cd; } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:402:25: error: non-member function ‘uint8_t Tins::rcode()’ cannot have cv-qualifier | |
uint8_t rcode() const { return dns.rcode; } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint8_t Tins::rcode()’: | |
/usr/include/tins/dns.h:402:40: error: ‘dns’ was not declared in this scope | |
uint8_t rcode() const { return dns.rcode; } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:409:36: error: non-member function ‘uint16_t Tins::questions_count()’ cannot have cv-qualifier | |
uint16_t questions_count() const { return Endian::be_to_host(dns.questions); } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint16_t Tins::questions_count()’: | |
/usr/include/tins/dns.h:409:70: error: ‘dns’ was not declared in this scope | |
uint16_t questions_count() const { return Endian::be_to_host(dns.questions); } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:416:34: error: non-member function ‘uint16_t Tins::answers_count()’ cannot have cv-qualifier | |
uint16_t answers_count() const { return Endian::be_to_host(dns.answers); } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint16_t Tins::answers_count()’: | |
/usr/include/tins/dns.h:416:68: error: ‘dns’ was not declared in this scope | |
uint16_t answers_count() const { return Endian::be_to_host(dns.answers); } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:423:36: error: non-member function ‘uint16_t Tins::authority_count()’ cannot have cv-qualifier | |
uint16_t authority_count() const { return Endian::be_to_host(dns.authority); } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint16_t Tins::authority_count()’: | |
/usr/include/tins/dns.h:423:70: error: ‘dns’ was not declared in this scope | |
uint16_t authority_count() const { return Endian::be_to_host(dns.authority); } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:430:37: error: non-member function ‘uint16_t Tins::additional_count()’ cannot have cv-qualifier | |
uint16_t additional_count() const { return Endian::be_to_host(dns.additional); } | |
^ | |
/usr/include/tins/dns.h: In function ‘uint16_t Tins::additional_count()’: | |
/usr/include/tins/dns.h:430:71: error: ‘dns’ was not declared in this scope | |
uint16_t additional_count() const { return Endian::be_to_host(dns.additional); } | |
^ | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:437:9: error: ‘PDUType’ does not name a type | |
PDUType pdu_type() const { return PDU::DNS; } | |
^ | |
/usr/include/tins/dns.h:442:32: error: non-member function ‘uint32_t Tins::header_size()’ cannot have cv-qualifier | |
uint32_t header_size() const; | |
^ | |
/usr/include/tins/dns.h:458:19: error: variable or field ‘type’ declared void | |
void type(QRType new_qr); | |
^ | |
/usr/include/tins/dns.h:458:19: error: ‘QRType’ was not declared in this scope | |
/usr/include/tins/dns.h:563:32: error: non-member function ‘Tins::queries_type Tins::queries()’ cannot have cv-qualifier | |
queries_type queries() const; | |
^ | |
/usr/include/tins/dns.h:570:34: error: non-member function ‘Tins::resources_type Tins::answers()’ cannot have cv-qualifier | |
resources_type answers() const; | |
^ | |
/usr/include/tins/dns.h:577:36: error: non-member function ‘Tins::resources_type Tins::authority()’ cannot have cv-qualifier | |
resources_type authority() const; | |
^ | |
/usr/include/tins/dns.h:584:37: error: non-member function ‘Tins::resources_type Tins::additional()’ cannot have cv-qualifier | |
resources_type additional() const; | |
^ | |
/usr/include/tins/dns.h:610:70: error: non-member function ‘bool Tins::matches_response(const uint8_t*, uint32_t)’ cannot have cv-qualifier | |
bool matches_response(const uint8_t *ptr, uint32_t total_sz) const; | |
^ | |
/usr/include/tins/dns.h:615:22: error: non-member function ‘Tins::DNS* Tins::clone()’ cannot have cv-qualifier | |
DNS *clone() const { | |
^ | |
/usr/include/tins/dns.h: In function ‘Tins::DNS* Tins::clone()’: | |
/usr/include/tins/dns.h:616:29: error: invalid use of ‘this’ in non-member function | |
return new DNS(*this); | |
^ | |
/usr/include/tins/dns.h:616:33: error: invalid new-expression of abstract class type ‘Tins::DNS’ | |
return new DNS(*this); | |
^ | |
/usr/include/tins/dns.h:51:11: note: because the following virtual functions are pure within ‘Tins::DNS’: | |
class DNS : public PDU { | |
^ | |
In file included from /usr/include/tins/dns.h:40:0, | |
from /usr/include/tins/tins.h:33, | |
from fails.cc:2: | |
/usr/include/tins/pdu.h:179:26: note: virtual uint32_t Tins::PDU::header_size() const | |
virtual uint32_t header_size() const = 0; | |
^ | |
/usr/include/tins/pdu.h:309:22: note: virtual Tins::PDU* Tins::PDU::clone() const | |
virtual PDU *clone() const = 0; | |
^ | |
/usr/include/tins/pdu.h:371:25: note: virtual Tins::PDU::PDUType Tins::PDU::pdu_type() const | |
virtual PDUType pdu_type() const = 0; | |
^ | |
/usr/include/tins/pdu.h:422:22: note: virtual void Tins::PDU::write_serialization(uint8_t*, uint32_t, const Tins::PDU*) | |
virtual void write_serialization(uint8_t *buffer, uint32_t total_sz, const PDU *parent) = 0; | |
^ | |
In file included from /usr/include/tins/tins.h:33:0, | |
from fails.cc:2: | |
/usr/include/tins/dns.h: At global scope: | |
/usr/include/tins/dns.h:618:5: error: expected unqualified-id before ‘private’ | |
private: | |
^ | |
In file included from /usr/include/tins/dns.h:39:0, | |
from /usr/include/tins/tins.h:33, | |
from fails.cc:2: | |
/usr/include/tins/dns.h:649:11: error: declaration does not declare anything [-fpermissive] | |
} TINS_END_PACK; | |
^ | |
In file included from /usr/include/tins/tins.h:33:0, | |
from fails.cc:2: | |
/usr/include/tins/dns.h:654:72: error: non-member function ‘const uint8_t* Tins::compose_name(const uint8_t*, char*)’ cannot have cv-qualifier | |
const uint8_t* compose_name(const uint8_t *ptr, char *out_ptr) const; | |
^ | |
/usr/include/tins/dns.h:655:91: error: non-member function ‘void Tins::convert_records(const uint8_t*, const uint8_t*, Tins::resources_type&)’ cannot have cv-qualifier | |
void convert_records(const uint8_t *ptr, const uint8_t *end, resources_type &res) const; | |
^ | |
/usr/include/tins/dns.h:656:89: error: non-member function ‘const uint8_t* Tins::find_section_end(const uint8_t*, uint32_t)’ cannot have cv-qualifier | |
const uint8_t* find_section_end(const uint8_t *ptr, const uint32_t num_records) const; | |
^ | |
/usr/include/tins/dns.h:657:59: error: non-member function ‘const uint8_t* Tins::find_dname_end(const uint8_t*)’ cannot have cv-qualifier | |
const uint8_t* find_dname_end(const uint8_t *ptr) const; | |
^ | |
/usr/include/tins/dns.h:665:9: error: ‘dnshdr’ does not name a type | |
dnshdr dns; | |
^ | |
/usr/include/tins/dns.h:669:1: error: expected declaration before ‘}’ token | |
} | |
^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment