chai2010 / protorpc.cxx

This package provides C++ Protobuf-RPC support.
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

debian: protorpc.cxx does not build on debian using libtinyxml2-dev #2

Closed mhaberler closed 9 years ago

mhaberler commented 9 years ago

since there is no history on the included tinyxml - hard to tell, is that 2.6.2? the readme suggests so the below doesnt add up though.

is there any reason NOT to use the stock libtinyxml2-dev ?

Compiling machinetalk/lib/xml_message.cc machinetalk/lib/xml_message.cc:128:46: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:128:57: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive] machinetalk/lib/xml_message.cc:167:11: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:167:22: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive] machinetalk/lib/xml_message.cc:352:55: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:352:66: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive] machinetalk/lib/xml_message.cc:363:75: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:363:86: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive] machinetalk/lib/xml_message.cc:377:77: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:377:88: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive] machinetalk/lib/xml_message.cc:392:75: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:392:86: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive] machinetalk/lib/xml_message.cc:406:77: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:406:88: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive] machinetalk/lib/xml_message.cc:421:59: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:421:70: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive] machinetalk/lib/xml_message.cc:430:64: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:430:75: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive] machinetalk/lib/xml_message.cc:433:63: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:433:74: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive] machinetalk/lib/xml_message.cc:437:62: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:437:73: error: ISO C++ forbids declaration of ‘node’ with no type [-fpermissive] machinetalk/lib/xml_message.cc: In member function ‘bool google::protobuf::xml::XmlMessageImpl::LoadFile(const string&)’: machinetalk/lib/xml_message.cc:77:5: error: ‘TiXmlDocument’ was not declared in this scope machinetalk/lib/xml_message.cc:77:19: error: expected ‘;’ before ‘doc’ machinetalk/lib/xml_message.cc:78:9: error: ‘doc’ was not declared in this scope machinetalk/lib/xml_message.cc:86:11: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:87:9: error: ‘root’ was not declared in this scope machinetalk/lib/xml_message.cc:95:35: error: ‘root’ was not declared in this scope machinetalk/lib/xml_message.cc: In member function ‘bool google::protobuf::xml::XmlMessageImpl::ParseFromString(const string&)’: machinetalk/lib/xml_message.cc:104:5: error: ‘TiXmlDocument’ was not declared in this scope machinetalk/lib/xml_message.cc:104:19: error: expected ‘;’ before ‘doc’ machinetalk/lib/xml_message.cc:105:5: error: ‘doc’ was not declared in this scope machinetalk/lib/xml_message.cc:114:11: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:115:9: error: ‘root’ was not declared in this scope machinetalk/lib/xml_message.cc:123:35: error: ‘root’ was not declared in this scope machinetalk/lib/xmlmessage.cc: In member function ‘bool google::protobuf::xml::XmlMessageImpl::generateMessageFromXml(const int, google::protobuf::Message&)’: machinetalk/lib/xmlmessage.cc:134:30: error: request for member ‘ToElement’ in ‘ node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:135:35: error: request for member ‘ToElement’ in ‘* node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:147:15: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:147:57: error: expected ‘;’ before ‘p’ machinetalk/lib/xml_message.cc:147:57: error: ‘p’ was not declared in this scope machinetalk/lib/xmlmessage.cc: In member function ‘bool google::protobuf::xml::XmlMessageImpl::generateMessageFieldValueFromXml(const int, google::protobuf::Message&, const google::protobuf::Reflection, const google::protobuf::FieldDescriptor)’: machinetalk/lib/xmlmessage.cc:172:31: error: request for member ‘ToElement’ in ‘ node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:188:18: error: request for member ‘ToElement’ in ‘* node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:201:18: error: request for member ‘ToElement’ in ‘* node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:215:18: error: request for member ‘ToElement’ in ‘* node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:229:18: error: request for member ‘ToElement’ in ‘* node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:243:18: error: request for member ‘ToElement’ in ‘* node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:257:18: error: request for member ‘ToElement’ in ‘* node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:270:18: error: request for member ‘ToElement’ in ‘* node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:284:18: error: request for member ‘ToElement’ in ‘* node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:308:18: error: request for member ‘ToElement’ in ‘* node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:326:18: error: request for member ‘ToElement’ in ‘* node’, which is of non-class type ‘const int’ machinetalk/lib/xml_message.cc:330:19: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:330:63: error: expected ‘;’ before ‘p’ machinetalk/lib/xml_message.cc:330:63: error: ‘p’ was not declared in this scope machinetalk/lib/xml_message.cc: In member function ‘std::vectorstd::basicstring google::protobuf::xml::XmlMessageImpl::readFieldValueData(const int, bool)’: machinetalk/lib/xml_message.cc:441:15: error: ‘TiXmlNode’ does not name a type machinetalk/lib/xml_message.cc:441:57: error: expected ‘;’ before ‘p’ machinetalk/lib/xml_message.cc:441:57: error: ‘p’ was not declared in this scope machinetalk/lib/xmlmessage.cc: In member function ‘void google::protobuf::xml::XmlMessageImpl::printFieldValue(const google::protobuf::Message&, const google::protobuf::Reflection, const google::protobuf::FieldDescriptor_, int, google::protobuf::xml::XmlMessageImpl::Printer&) const’: machinetalk/lib/xml_message.cc:822:9: error: ‘TIXML_STRING’ was not declared in this scope machinetalk/lib/xml_message.cc:822:22: error: expected ‘;’ before ‘strIn’ machinetalk/lib/xml_message.cc:823:9: error: ‘TiXmlBase’ has not been declared machinetalk/lib/xml_message.cc:823:33: error: ‘strIn’ was not declared in this scope machinetalk/lib/xml_message.cc:823:41: error: ‘strEncoded’ was not declared in this scope machinetalk/lib/xml_message.cc: In member function ‘bool google::protobuf::xml::XmlMessageImpl::ParseFromString(const string&)’: machinetalk/lib/xml_message.cc:124:3: warning: control reaches end of non-void function [-Wreturn-type] machinetalk/lib/xml_message.cc: In member function ‘bool google::protobuf::xml::XmlMessageImpl::LoadFile(const string&)’: machinetalk/lib/xmlmessage.cc:96:3: warning: control reaches end of non-void function [-Wreturn-type] make: ** [objects/machinetalk/lib/xml_message.o] Error 1 make: Target `default' not remade because of errors.

mhaberler commented 9 years ago

oh I see, it is libtinyxml-dev - that works