/tmp/gpdb_need/aliyun-oss-c-sdk-master/oss_c_sdk/oss_xml.c: In function ‘get_xmlnode_value’:
/tmp/gpdb_need/aliyun-oss-c-sdk-master/oss_c_sdk/oss_xml.c:72:29: error: dereferencing pointer to incomplete type ‘mxml_node_t {aka struct _mxml_node_s}’
if (NULL != node && node->child != NULL) {
^~
CMakeFiles/oss_c_sdk.dir/build.make:218: recipe for target 'CMakeFiles/oss_c_sdk.dir/oss_c_sdk/oss_xml.o' failed
make[2]: * [CMakeFiles/oss_c_sdk.dir/oss_c_sdk/oss_xml.o] Error 1
CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/oss_c_sdk.dir/all' failed
make[1]: * [CMakeFiles/oss_c_sdk.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: * [all] Error 2
参见这个的反馈讨论:https://github.com/michaelrsweet/mxml/issues/247
需要对代码进行重构:
node = mxmlFindElement(...);
mxmlElementSetAttr(node, attrName, newValue);
return tree;
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。