aliyun / aliyun-oss-c-sdk

Aliyun OSS SDK for C
MIT License
151 stars 86 forks source link

编译OSS错误 apr1.5.2 #99

Closed goog closed 2 years ago

goog commented 2 years ago
Linking C static library build/Release/lib/liboss_c_sdk_static.a
[ 47%] Built target oss_c_sdk_static
[ 48%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_sample_util.o
[ 50%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_config.o
[ 51%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/main.o
[ 52%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_put_object_sample.o
[ 53%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_append_object_sample.o
[ 55%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_get_object_sample.o
[ 56%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_head_object_sample.o
[ 57%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_delete_object_sample.o
[ 59%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_multipart_upload_sample.o
[ 60%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_crc_sample.o
[ 61%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_image_sample.o
[ 63%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_progress_sample.o
[ 64%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_callback_sample.o
[ 65%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_list_object_sample.o
[ 67%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_resumable_sample.o
[ 68%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_get_object_meta_sample.o
[ 69%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_put_object_acl_sample.o
[ 71%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_get_object_acl_sample.o
[ 72%] Building C object oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/oss_select_object_sample.o
Linking C executable ../build/Release/bin/oss_c_sdk_sample
/home/cheng/work/shc_gw1230/bu/local/lib/libapr-1.a(apr_snprintf.o): In function `apr_cvt':
strings/apr_snprintf.c:(.text+0x158): undefined reference to `modf'
strings/apr_snprintf.c:(.text+0x1e4): undefined reference to `modf'
strings/apr_snprintf.c:(.text+0x32c): undefined reference to `modf'
collect2: error: ld returned 1 exit status
make[2]: *** [build/Release/bin/oss_c_sdk_sample] Error 1
make[1]: *** [oss_c_sdk_sample/CMakeFiles/oss_c_sdk_sample.dir/all] Error 2
make: *** [all] Error 2

apr make install ok, but build oss then pop error.

goog commented 2 years ago

添加math library