Home > Back-end >  Ngixn1.16 fastdfs - nginx - module - 1.20 compile make's error/Java/fastdfs - nginx - module -
Ngixn1.16 fastdfs - nginx - module - 1.20 compile make's error/Java/fastdfs - nginx - module -

Time:09-23

Recently in to build FastDFS server, but at the time of installation FastDFS - nginx - the module card master, Ng compile time error error as follows has been
/Java/fastdfs - nginx - module - 1.20/SRC//common. C: In the function 'fdfs_calc_content_length:
/Java/fastdfs - nginx - module - 1.20/SRC//common. C: 597:27: error: implicit declaration of the function of ' get_current_time_us '; Did you mean 'get_current_dir_name'? [- Werror=implicit function - declaration]
"%" PRIx64, get_current_time_us ());
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Get_current_dir_name
/Java/fastdfs - nginx - module - 1.20/SRC//common. C: 597:16: error: the format "% lx expects argument of type 'long unsigned int, but 3 from the argument type" int "[- Werror=format=]
"%" PRIx64, get_current_time_us ());
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
In the file included the from/usr/local/include/fastcommon common_define. H: 31,
The from/usr/local/include/fastcommon/logger. H: 15,
The from/Java/fastdfs - nginx - module - 1.20/SRC//common. C: 21,
The from/Java/fastdfs - nginx - module - 1.20/SRC//ngx_http_fastdfs_module. C: 6:
The/usr/include/inttypes. H: 121:34: note: the format string is defined here
# define PRIx64 __PRI64_PREFIX "x"
In the file included the from/Java/fastdfs - nginx - module - 1.20/SRC//ngx_http_fastdfs_module. C: 6:
/Java/fastdfs - nginx - module - 1.20/SRC//common. C: In the function 'fdfs_http_request_handler:
/Java/fastdfs - nginx - module - 1.20/SRC//common. C: 1245-61: error: 'FDFSHTTPParams {aka' struct & lt; anonymous> } 'has no member named' support_multi_range
'Make all day, every head was bombed, changed all versions of Ng and fastdfs - nginx - module, don't quote this is submitted to the other, not a success, only with your bosses for help,

CodePudding user response:

Now that do compile installation, compile your environment description

CodePudding user response:

May be your libfastcommon and fastdfs version are not compatible, try for the latest version
  • Related