aliyun / ossfs

Export s3fs for aliyun oss.
GNU General Public License v2.0
738 stars 152 forks source link

v1.91.1 在 alpine 下编译报错 #161

Closed zhujintao closed 11 months ago

zhujintao commented 1 year ago

DESKTOP-PJ27IM8:~/ossfs# make make all-recursive make[1]: Entering directory '/root/ossfs' Making all in src make[2]: Entering directory '/root/ossfs/src' g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -DUSE_OPENSSL_30 -g -O2 -Wall -fno-exceptions -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -MT s3fs_help.o -MD -MP -MF .deps/s3fs_help.Tpo -c -o s3fs_help.o s3fs_help.cpp In file included from s3fs_help.cpp:26: common.h:34:14: error: 'int64_t' does not name a type 34 | static const int64_t FIVE_GB = 5LL 1024LL 1024LL * 1024LL; | ^~~ common.h:29:1: note: 'int64_t' is defined in header ''; did you forget to '#include '? 28 | #include "s3fs_logger.h" +++ |+#include 29 | make[2]: [Makefile:726: s3fs_help.o] Error 1 make[2]: Leaving directory '/root/ossfs/src' make[1]: [Makefile:416: all-recursive] Error 1 make[1]: Leaving directory '/root/ossfs' make: *** [Makefile:355: all] Error 2

zhujintao commented 11 months ago

common.h 添加 #include <stdint.h> 后编译成功。