Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译失败 dereferencing pointer to incomplete type ‘mxml_node_t {aka struct _mxml_node_s} #77

Closed
zhaochengwei opened this issue Nov 6, 2019 · 3 comments

Comments

@zhaochengwei
Copy link

~/oss_c_sdk/aliyun-oss-c-sdk-3.5.0$ make Scanning dependencies of target oss_c_sdk_static [ 1%] Building C object CMakeFiles/oss_c_sdk_static.dir/oss_c_sdk/aos_status.o oss_c_sdk/aliyun-oss-c-sdk-3.5.0/oss_c_sdk/aos_status.c: In function ‘aos_should_retry’: oss_c_sdk/aliyun-oss-c-sdk-3.5.0/oss_c_sdk/aos_status.c:34:9: warning: unused variable ‘aos_error_code’ [-Wunused-variable] int aos_error_code = 0; ^~~~~~~~~~~~~~ oss_c_sdk/aliyun-oss-c-sdk-3.5.0/oss_c_sdk/aos_status.c: In function ‘aos_status_parse_from_body’: **oss_c_sdk/aliyun-oss-c-sdk-3.5.0/oss_c_sdk/aos_status.c:95:26: error: dereferencing pointer to incomplete type ‘mxml_node_t {aka struct _mxml_node_s}’ node_content = code_node->child->value.opaque; ^~** CMakeFiles/oss_c_sdk_static.dir/build.make:182: recipe for target 'CMakeFiles/oss_c_sdk_static.dir/oss_c_sdk/aos_status.o' failed make[2]: *** [CMakeFiles/oss_c_sdk_static.dir/oss_c_sdk/aos_status.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/oss_c_sdk_static.dir/all' failed make[1]: *** [CMakeFiles/oss_c_sdk_static.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

版本如下:
apr-1.7.0
apr-util-1.6.1
mxml-3.1

@huiguangjun
Copy link
Contributor

你把 mxml 换成 2.x 的版本 后试试看。

@kangaxx
Copy link

kangaxx commented Sep 21, 2020

3.1版本修改了mxml_node_t,去掉了child,还是用2.8版本吧,readme要不改下?

@huiguangjun
Copy link
Contributor

b4253aa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants