You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/local/src/fastdfs-nginx-module-1.22/src//common.c:903:42: error: ‘%s’ directive output may be truncated writing up to 510 bytes into a region of size between 111 and 127 [-Werror=format-truncation=]
902 | file_id_without_group = uri + 1; //skip /
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
903 | snprintf(file_id, sizeof(file_id), "%s/%s",
| ^~
/usr/local/src/fastdfs-nginx-module-1.22/src//common.c:903:3: note: ‘snprintf’ output between 2 and 528 bytes into a destination of size 128
903 | snprintf(file_id, sizeof(file_id), "%s/%s",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
904 | my_group_name, file_id_without_group);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/src/fastdfs-nginx-module-1.22/src//common.c:857:39: error: ‘%s’ directive output may be truncated writing up to 510 bytes into a region of size 128 [-Werror=format-truncation=]
857 | snprintf(file_id, sizeof(file_id), "%s", uri + 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/usr/local/src/fastdfs-nginx-module-1.22/src//common.c:857:3: note: ‘snprintf’ output between 1 and 511 bytes into a destination of size 128
857 | snprintf(file_id, sizeof(file_id), "%s", uri + 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:1207: objs/addon/src/ngx_http_fastdfs_module.o] Error 1
make[1]: Leaving directory '/usr/local/src/nginx-1.19.2'
make: *** [Makefile:8: build] Error 2
The text was updated successfully, but these errors were encountered:
/usr/bin/ld: objs/src/core/nginx.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol environ@@GLIBC_2.17' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: objs/src/core/nginx.o(.text+0xc8c): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol environ@@GLIBC_2.17'
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[1]: *** [objs/Makefile:326: objs/nginx] Error 1
make[1]: Leaving directory '/opt/nginx-1.22.0'
make: *** [Makefile:10: build] Error 2
/usr/local/src/fastdfs-nginx-module-1.22/src//common.c:903:42: error: ‘%s’ directive output may be truncated writing up to 510 bytes into a region of size between 111 and 127 [-Werror=format-truncation=]
902 | file_id_without_group = uri + 1; //skip /
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
903 | snprintf(file_id, sizeof(file_id), "%s/%s",
| ^~
/usr/local/src/fastdfs-nginx-module-1.22/src//common.c:903:3: note: ‘snprintf’ output between 2 and 528 bytes into a destination of size 128
903 | snprintf(file_id, sizeof(file_id), "%s/%s",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
904 | my_group_name, file_id_without_group);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/src/fastdfs-nginx-module-1.22/src//common.c:857:39: error: ‘%s’ directive output may be truncated writing up to 510 bytes into a region of size 128 [-Werror=format-truncation=]
857 | snprintf(file_id, sizeof(file_id), "%s", uri + 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/usr/local/src/fastdfs-nginx-module-1.22/src//common.c:857:3: note: ‘snprintf’ output between 1 and 511 bytes into a destination of size 128
857 | snprintf(file_id, sizeof(file_id), "%s", uri + 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:1207: objs/addon/src/ngx_http_fastdfs_module.o] Error 1
make[1]: Leaving directory '/usr/local/src/nginx-1.19.2'
make: *** [Makefile:8: build] Error 2
The text was updated successfully, but these errors were encountered: