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

在win10编译 ng1.18.0 失败 #271

Open
QAQQL opened this issue Aug 15, 2023 · 0 comments
Open

在win10编译 ng1.18.0 失败 #271

QAQQL opened this issue Aug 15, 2023 · 0 comments

Comments

@QAQQL
Copy link

QAQQL commented Aug 15, 2023

编译版本
nginx-2a0a77b5fa3a(nginx-1.18.0)
编译环境
win10,vs2022,strawberry-perl-5.32.1.1-64bit
编译路径
/objs/lib
├─nginx-upsync-module-2.1.3
├─nginx_upstream_check_module-0.4.0
├─openssl-1.1.1v
├─pcre-8.45
└─zlib-1.2.13

我在nmake编译中遇到
cl -c -O2 -W4 -nologo -MT -Zi -Fdobjs/nginx.pdb -DFD_SETSIZE=1024 -DNO_SYS_TYPES_H -Yungx_config.h -Fpobjs/ngx_config.pch -I src/core -I src/event -I src/event/modules -I src/os/win32 -I objs/lib/nginx_upstream_check_module-0.4.0 -I objs/lib/pcre-8.45 -I objs/lib/openssl-1.1.1v/openssl/include -I objs/lib/zlib-1.2.13 -I objs -I src/http -I src/http/modules -I objs/lib/nginx-upsync-module-2.1.3/src -Foobjs/addon/src/ngx_http_upsync_module.obj objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c
ngx_http_upsync_module.c
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(1356): warning C4456: “temp1”的声明隐藏了上一个本地声 明
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(1299): note: 参见“temp1”的声明
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(2372): warning C4013: “ngx_change_file_access”未定义;假设外部返回 int
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(2373): error C2065: “S_IRUSR”: 未声明的标识符
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(2373): error C2065: “S_IWUSR”: 未声明的标识符
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(2373): error C2065: “S_IRGRP”: 未声明的标识符
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(2373): error C2065: “S_IROTH”: 未声明的标识符
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(2373): error C2065: “S_IWOTH”: 未声明的标识符
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(2551): warning C4013: “srandom”未定义;假设外部返回 int
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(2695): error C2057: 应输入常量表达式
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(2695): error C2466: 不能分配常量大小为 0 的数组
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(2695): error C2133: “request”: 未知的大小
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(3077): warning C4013: “lseek”未定义;假设外部返回 int
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(3086): warning C4013: “ftruncate”未定义;假设外部返回 int
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(3767): warning C4013: “close”未定义;假设外部返回 int
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(3788): error C2057: 应输入常量表达式
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(3788): error C2466: 不能分配常量大小为 0 的数组
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(3788): error C2133: “request”: 未知的大小
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(3809): warning C4057: “函数”:“const char *”与“u_char *”在稍微不同的基类型间接寻址上不同
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(3828): error C2057: 应输入常量表达式
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(3828): error C2466: 不能分配常量大小为 0 的数组
objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c(3828): error C2133: “buff”: 未知的大小
NMAKE : fatal error U1077: “cl -c -O2 -W4 -nologo -MT -Zi -Fdobjs/nginx.pdb -DFD_SETSIZE=1024 -DNO_SYS_TYPES_H -Yungx_config.h -Fpobjs/ngx_config.pch -I src/core -I src/event -I src/event/modules -I src/os/win32 -I objs/lib/nginx_upstream_check_module-0.4.0 -I objs/lib/pcre-8.45 -I objs/lib/openssl-1.1.1v/openssl/include -I objs/lib/zlib-1.2.13 -I objs -I src/http -I src/http/modules -I objs/lib/nginx-upsync-module-2.1.3/src -Foobjs/addon/src/ngx_http_upsync_module.obj objs/lib/nginx-upsync-module-2.1.3/src/ngx_http_upsync_module.c”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x86\nmake.exe" -f objs/Makefile”: 返回代码“0x2”
Stop.

请问我该如何处理(我在编译前已pacth(check_1.16.1+.patch))

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

1 participant