【紧急求助】CentOS 9 Stream 编译安装openresty版本 错误 | openresty-1.25.3.1

50 views
Skip to first unread message

ls too

unread,
Aug 8, 2024, 9:45:17 PM8/8/24
to openresty
Dear all 各位

问题环境:
系统是: CentOS 9 Stream
内核:5.14.0-480.el9.x86_64
我编译的版本是 openresty-1.25.3.1/ openresty-1.25.3.2 都出现以下问题,
执行 ./configure 都是正常的

但正常后我们执行 gmake / 或者make 都出现以下错误,我实在找不到问题,因此向官方社区求助

编译代码如下:
"install_openresty_text"函数代码如下:

install_openresty_text() {
log "INFO" "开始编译安装 OpenResty Nginx"

local openresty_filename="${OPENRESTY_VERSION_NAME}"
local openresty_url="${OPENRESTY_URL}"

# 下载 OpenResty
execute_command "download_module \"${openresty_filename}\" \"${goog_584717884openresty_url}\" \"${DOWNLOAD_DIR}\" \"wget\" \"y\"" "下载 $openresty_filename 模块" "y"

local openresty_src_dir="$DOWNLOAD_DIR/openresty-${NGINX_VERSION}"
execute_command "cd $openresty_src_dir" "切换到 OpenResty 源码目录" "y"

log "INFO" "切换到 OpenResty 源码目录: $openresty_src_dir"

local openresty_pwd=$(pwd)

log "INFO" "切换到 OpenResty 源码目录: $openresty_src_dir, 验证当前路径:${openresty_pwd}"
sleep 8

# 设置相关软件安装路径/目录
perl_openresty_path="${libs["perl_install_path_dir"]}"
zlib_openresty_path="${libs["zlib_install_path_dir"]}"
pcre_openresty_path="${libs["perl_install_path_dir"]}"
libmaxminddb_openresty_path="${libs["libmaxminddb_install_dir"]}"
modsecurity_nginx_openresty_path="${libs["modsecurity_install_dir"]}"

# declare -A CONFIGURE_OPTIONS
# 配置 OpenResty 的编译选项
local CONFIGURE_OPTIONS=(
"--prefix=${NGINX_DIR}"
"--sbin-path=${NGINX_DIR}/sbin"
"--conf-path=${NGINX_DIR}/conf/nginx.conf"
"--error-log-path=${NGINX_LOG_DIR}/nginx_error.log"
"--http-log-path=${NGINX_LOG_DIR}/nginx_access.log"
"--pid-path=${NGINX_DIR}/run/nginx.pid"
"--lock-path=${NGINX_DIR}/run/nginx.lock"
"--user=${NGINX_USER}"
"--group=${NGINX_USER}"
"--build=CentOS"
"--with-select_module"
"--with-poll_module"
"--with-threads"
"--with-file-aio"
"--with-http_realip_module"
"--with-http_addition_module"
"--with-http_xslt_module=dynamic"
"--with-http_sub_module"
"--with-http_dav_module"
"--with-http_flv_module"
"--with-http_mp4_module"
"--with-http_gunzip_module"
"--with-http_auth_request_module"
"--with-http_random_index_module"
"--with-http_secure_link_module"
"--with-http_degradation_module"
"--with-http_slice_module"
"--with-http_gzip_static_module"
"--with-http_stub_status_module"
"--with-http_perl_module=dynamic"
"--http-client-body-temp-path=${openresty_dir}/cache/client_temp"
"--http-proxy-temp-path=${openresty_dir}/cache/proxy_temp"
"--http-fastcgi-temp-path=${openresty_dir}/cache/fastcgi_temp"
"--http-uwsgi-temp-path=${openresty_dir}/cache/uwsgi_temp"
"--http-scgi-temp-path=${openresty_dir}/cache/scgi_temp"
"--with-mail=dynamic"
"--with-mail_ssl_module"
"--with-stream=dynamic"
"--with-stream_ssl_module"
"--with-stream_realip_module"
"--with-stream_ssl_preread_module"
"--with-compat"
"--with-debug"
"--with-luajit"
"--with-http_v2_module"
"--with-http_v3_module"
"--with-http_ssl_module"
"--with-http_gzip_static_module"
"--with-http_stub_status_module"
"--with-http_image_filter_module=dynamic"
"--with-pcre-jit"
"--with-cc-opt=-D_POSIX_C_SOURCE=200112L -DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC -O2 -I${libmaxminddb_openresty_path}/include -I${modsecurity_nginx_openresty_path}/include -I/usr/local/include"
"--with-ld-opt=-Wl,-rpath,${NGINX_DIR}/luajit/lib -L/usr/local/lib -L${modsecurity_nginx_openresty_path}/lib -L${libmaxminddb_openresty_path}/lib"
"--add-module=/opt/ngx/modsecurity-nginx-v1.0.3"
"--add-module=/opt/ngx/ngx_cache_purge-2.3"
"--add-module=/opt/ngx/ngx_http_consistent_hash-master"
"--add-module=/opt/ngx/ngx_http_geoip2_module-3.4"
"--add-module=/opt/ngx/ngx_http_substitutions_filter_module-0.6.4"
"--add-module=/opt/ngx/ngx_brotli-1.0.0rc"
"--add-module=/opt/ngx/redis2-nginx-module-0.15"
"--add-module=/opt/ngx/encrypted-session-nginx-module-0.09"
"--add-module=/opt/ngx/ngx_waf-10.1.2"
)



##  .confgure  日志信息如下:
执行.confgure 命令结果如下:

checking for require defined symbols (--require-defined) ... found
+ ngx_stream_lua_module was configured
adding module in /opt/ngx/modsecurity-nginx-v1.0.3
checking for ModSecurity library ... found
+ ngx_http_modsecurity_module was configured
adding module in /opt/ngx/ngx_cache_purge-2.3
+ ngx_http_cache_purge_module was configured
adding module in /opt/ngx/ngx_http_consistent_hash-master
+ ngx_http_upstream_consistent_hash was configured
adding module in /opt/ngx/ngx_http_geoip2_module-3.4
checking for MaxmindDB library ... found
+ ngx_geoip2_module was configured
adding module in /opt/ngx/ngx_http_substitutions_filter_module-0.6.4
+ ngx_http_subs_filter_module was configured
adding module in /opt/ngx/ngx_brotli-1.0.0rc
+ ngx_brotli was configured
adding module in /opt/ngx/redis2-nginx-module-0.15
+ ngx_http_redis2_module was configured
adding module in /opt/ngx/encrypted-session-nginx-module-0.09
found ngx_devel_kit for ngx_encrypted_session; looks good.
+ ngx_http_encrypted_session_module was configured
adding module in /opt/ngx/ngx_waf-10.1.2
checking for modsecurity library ... found
checking for curl library ... found
checking for cJSON library ... found
checking for uthash library ... found
checking for C99 features ... found
checking for sodium library ... found
+ ngx_http_waf_module was configured
checking for PCRE library ... found
checking for PCRE JIT support ... found
checking for OpenSSL library ... found
checking for OpenSSL QUIC support ... not found
checking for OpenSSL QUIC compatibility ... found
checking for zlib library ... found
checking for libxslt ... found
checking for libexslt ... found
checking for GD library ... found
checking for GD WebP support ... found
checking for perl
+ perl version: This is perl 5, version 38, subversion 2 (v5.38.2) built for x86_64-linux-thread-multi
+ perl interpreter multiplicity found
creating objs/Makefile

Configuration summary
+ using threads
+ using system PCRE library
+ using system OpenSSL library
+ using system zlib library

nginx path prefix: "/www_v2/server/nginx/nginx"
nginx binary file: "/www_v2/server/nginx/sbin"
nginx modules path: "/www_v2/server/nginx/nginx/modules"
nginx configuration prefix: "/www_v2/server/nginx/conf"
nginx configuration file: "/www_v2/server/nginx/conf/nginx.conf"
nginx pid file: "/www_v2/server/nginx/run/nginx.pid"
nginx error log file: "/www_v2/wwwlogs/nginx_error.log"
nginx http access log file: "/www_v2/wwwlogs/nginx_access.log"
nginx http client request body temporary files: "/cache/client_temp"
nginx http proxy temporary files: "/cache/proxy_temp"
nginx http fastcgi temporary files: "/cache/fastcgi_temp"
nginx http uwsgi temporary files: "/cache/uwsgi_temp"
nginx http scgi temporary files: "/cache/scgi_temp"

cd ../..
Type the following commands to build and install:
gmake
gmake install

执行:gmake/make  日志信息如下:

``` ddd
src/os/unix/ngx_files.h:351:21: error: unknown type name ‘u_char’; did you mean ‘char’?
351 | size_t ngx_fs_bsize(u_char *name);
| ^~~~~~
| char
src/os/unix/ngx_files.h:352:24: error: unknown type name ‘u_char’; did you mean ‘char’?
352 | off_t ngx_fs_available(u_char *name);
| ^~~~~~
| char
src/os/unix/ngx_files.h:381:45: error: unknown type name ‘u_char’; did you mean ‘char’?
381 | ssize_t ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size,
| ^~~~~~
| char
src/os/unix/ngx_files.h:389:43: error: unknown type name ‘u_char’; did you mean ‘char’?
389 | ssize_t ngx_thread_read(ngx_file_t *file, u_char *buf, size_t size,
| ^~~~~~
| char
In file included from src/core/ngx_core.h:55,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/os/unix/ngx_shmem.h:17:5: error: unknown type name ‘u_char
17 | u_char *addr;
| ^~~~~~
In file included from src/core/ngx_core.h:57,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/os/unix/ngx_user.h:20:44: error: unknown type name ‘u_char’; did you mean ‘char’?
20 | ngx_int_t ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt,
| ^~~~~~
| char
src/os/unix/ngx_user.h:20:57: error: unknown type name ‘u_char’; did you mean ‘char’?
20 | ngx_int_t ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt,
| ^~~~~~
| char
src/os/unix/ngx_user.h:21:5: error: unknown type name ‘u_char’; did you mean ‘char’?
21 | u_char **encrypted);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:60,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_parse_time.h:16:28: error: unknown type name ‘u_char’; did you mean ‘char’?
16 | time_t ngx_parse_http_time(u_char *value, size_t len);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:61,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_log.h:45:9: error: unknown type name ‘u_char
45 | typedef u_char *(*ngx_log_handler_pt) (ngx_log_t *log, u_char *buf, size_t len);
| ^~~~~~
src/core/ngx_log.h:45:56: error: unknown type name ‘u_char’; did you mean ‘char’?
45 | typedef u_char *(*ngx_log_handler_pt) (ngx_log_t *log, u_char *buf, size_t len);
| ^~~~~~
| char
src/core/ngx_log.h:47:5: error: unknown type name ‘u_char’; did you mean ‘char’?
47 | u_char *buf, size_t len);
| ^~~~~~
| char
src/core/ngx_log.h:58:5: error: unknown type name ‘ngx_log_handler_pt
58 | ngx_log_handler_pt handler;
| ^~~~~~~~~~~~~~~~~~
src/core/ngx_log.h:61:5: error: unknown type name ‘ngx_log_writer_pt
61 | ngx_log_writer_pt writer;
| ^~~~~~~~~~~~~~~~~
src/core/ngx_log.h:233:25: error: unknown type name ‘u_char’; did you mean ‘char’?
233 | ngx_log_t *ngx_log_init(u_char *prefix, u_char *error_log);
| ^~~~~~
| char
src/core/ngx_log.h:233:41: error: unknown type name ‘u_char’; did you mean ‘char’?
233 | ngx_log_t *ngx_log_init(u_char *prefix, u_char *error_log);
| ^~~~~~
| char
src/core/ngx_log.h:236:1: error: unknown type name ‘u_char’; did you mean ‘char’?
236 | u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err);
| ^~~~~~
| char
src/core/ngx_log.h:236:23: error: unknown type name ‘u_char’; did you mean ‘char’?
236 | u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err);
| ^~~~~~
| char
src/core/ngx_log.h:236:36: error: unknown type name ‘u_char’; did you mean ‘char’?
236 | u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:63,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_palloc.h:50:5: error: unknown type name ‘u_char
50 | u_char *last;
| ^~~~~~
src/core/ngx_palloc.h:51:5: error: unknown type name ‘u_char
51 | u_char *end;
| ^~~~~~
src/core/ngx_palloc.h:70:5: error: unknown type name ‘u_char
70 | u_char *name;
| ^~~~~~
In file included from src/core/ngx_core.h:64,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_buf.h:21:5: error: unknown type name ‘u_char
21 | u_char *pos;
| ^~~~~~
src/core/ngx_buf.h:22:5: error: unknown type name ‘u_char
22 | u_char *last;
| ^~~~~~
src/core/ngx_buf.h:26:5: error: unknown type name ‘u_char
26 | u_char *start; /* start of buffer */
| ^~~~~~
src/core/ngx_buf.h:27:5: error: unknown type name ‘u_char
27 | u_char *end; /* end of buffer */
| ^~~~~~
In file included from src/core/ngx_core.h:68,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_hash.h:18:5: error: unknown type name ‘u_short
18 | u_short len;
| ^~~~~~~
src/core/ngx_hash.h:19:5: error: unknown type name ‘u_char
19 | u_char name[1];
| ^~~~~~
src/core/ngx_hash.h:42:40: error: unknown type name ‘u_char’; did you mean ‘char’?
42 | typedef ngx_uint_t (*ngx_hash_key_pt) (u_char *data, size_t len);
| ^~~~~~
| char
src/core/ngx_hash.h:54:5: error: unknown type name ‘ngx_hash_key_pt
54 | ngx_hash_key_pt key;
| ^~~~~~~~~~~~~~~
src/core/ngx_hash.h:98:5: error: unknown type name ‘u_char
98 | u_char *lowcase_key;
| ^~~~~~
src/core/ngx_hash.h:103:55: error: unknown type name ‘u_char’; did you mean ‘char’?
103 | void *ngx_hash_find(ngx_hash_t *hash, ngx_uint_t key, u_char *name, size_t len);
| ^~~~~~
| char
src/core/ngx_hash.h:104:55: error: unknown type name ‘u_char’; did you mean ‘char’?
104 | void *ngx_hash_find_wc_head(ngx_hash_wildcard_t *hwc, u_char *name, size_t len);
| ^~~~~~
| char
src/core/ngx_hash.h:105:55: error: unknown type name ‘u_char’; did you mean ‘char’?
105 | void *ngx_hash_find_wc_tail(ngx_hash_wildcard_t *hwc, u_char *name, size_t len);
| ^~~~~~
| char
src/core/ngx_hash.h:107:5: error: unknown type name ‘u_char’; did you mean ‘char’?
107 | u_char *name, size_t len);
| ^~~~~~
| char
src/core/ngx_hash.h:115:25: error: unknown type name ‘u_char’; did you mean ‘char’?
115 | ngx_uint_t ngx_hash_key(u_char *data, size_t len);
| ^~~~~~
| char
src/core/ngx_hash.h:116:28: error: unknown type name ‘u_char’; did you mean ‘char’?
116 | ngx_uint_t ngx_hash_key_lc(u_char *data, size_t len);
| ^~~~~~
| char
src/core/ngx_hash.h:117:28: error: unknown type name ‘u_char’; did you mean ‘char’?
117 | ngx_uint_t ngx_hash_strlow(u_char *dst, u_char *src, size_t n);
| ^~~~~~
| char
src/core/ngx_hash.h:117:41: error: unknown type name ‘u_char’; did you mean ‘char’?
117 | ngx_uint_t ngx_hash_strlow(u_char *dst, u_char *src, size_t n);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:69,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_file.h:60:5: error: unknown type name ‘u_char
60 | u_char *conf_file;
| ^~~~~~
src/core/ngx_file.h:142:51: error: unknown type name ‘u_char’; did you mean ‘char’?
142 | void ngx_create_hashed_filename(ngx_path_t *path, u_char *file, size_t len);
| ^~~~~~
| char
src/core/ngx_file.h:144:32: error: unknown type name ‘u_char’; did you mean ‘char’?
144 | ngx_err_t ngx_create_full_path(u_char *dir, ngx_uint_t access);
| ^~~~~~
| char
src/core/ngx_file.h:149:25: error: unknown type name ‘u_char’; did you mean ‘char’?
149 | ngx_int_t ngx_copy_file(u_char *from, u_char *to, ngx_copy_file_t *cf);
| ^~~~~~
| char
src/core/ngx_file.h:149:39: error: unknown type name ‘u_char’; did you mean ‘char’?
149 | ngx_int_t ngx_copy_file(u_char *from, u_char *to, ngx_copy_file_t *cf);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:70,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_crc.h:19:9: error: unknown type name ‘u_char’; did you mean ‘char’?
19 | ngx_crc(u_char *data, size_t len)
| ^~~~~~
| char
In file included from src/core/ngx_core.h:71,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_crc32.h:21:17: error: unknown type name ‘u_char’; did you mean ‘char’?
21 | ngx_crc32_short(u_char *p, size_t len)
| ^~~~~~
| char
src/core/ngx_crc32.h:39:16: error: unknown type name ‘u_char’; did you mean ‘char’?
39 | ngx_crc32_long(u_char *p, size_t len)
| ^~~~~~
| char
src/core/ngx_crc32.h:58:33: error: unknown type name ‘u_char’; did you mean ‘char’?
58 | ngx_crc32_update(uint32_t *crc, u_char *p, size_t len)
| ^~~~~~
| char
In file included from src/core/ngx_core.h:72,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_murmurhash.h:16:27: error: unknown type name ‘u_char’; did you mean ‘char’?
16 | uint32_t ngx_murmur_hash2(u_char *data, size_t len);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:74,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_regex.h:52:5: error: unknown type name ‘u_char
52 | u_char *names;
| ^~~~~~
src/core/ngx_regex.h:59:5: error: unknown type name ‘u_char
59 | u_char *name;
| ^~~~~~
In file included from src/core/ngx_core.h:76,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_radix_tree.h:48:5: error: unknown type name ‘u_char’; did you mean ‘char’?
48 | u_char *key, u_char *mask, uintptr_t value);
| ^~~~~~
| char
src/core/ngx_radix_tree.h:48:18: error: unknown type name ‘u_char’; did you mean ‘char’?
48 | u_char *key, u_char *mask, uintptr_t value);
| ^~~~~~
| char
src/core/ngx_radix_tree.h:50:5: error: unknown type name ‘u_char’; did you mean ‘char’?
50 | u_char *key, u_char *mask);
| ^~~~~~
| char
src/core/ngx_radix_tree.h:50:18: error: unknown type name ‘u_char’; did you mean ‘char’?
50 | u_char *key, u_char *mask);
| ^~~~~~
| char
src/core/ngx_radix_tree.h:51:57: error: unknown type name ‘u_char’; did you mean ‘char’?
51 | uintptr_t ngx_radix128tree_find(ngx_radix_tree_t *tree, u_char *key);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:77,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_times.h:26:1: error: unknown type name ‘u_char’; did you mean ‘char’?
26 | u_char *ngx_http_time(u_char *buf, time_t t);
| ^~~~~~
| char
src/core/ngx_times.h:26:23: error: unknown type name ‘u_char’; did you mean ‘char’?
26 | u_char *ngx_http_time(u_char *buf, time_t t);
| ^~~~~~
| char
src/core/ngx_times.h:27:1: error: unknown type name ‘u_char’; did you mean ‘char’?
27 | u_char *ngx_http_cookie_time(u_char *buf, time_t t);
| ^~~~~~
| char
src/core/ngx_times.h:27:30: error: unknown type name ‘u_char’; did you mean ‘char’?
27 | u_char *ngx_http_cookie_time(u_char *buf, time_t t);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:79,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_shmtx.h:41:5: error: unknown type name ‘u_char’; did you mean ‘char’?
41 | u_char *name);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:80,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_slab.h:47:5: error: unknown type name ‘u_char
47 | u_char *start;
| ^~~~~~
src/core/ngx_slab.h:48:5: error: unknown type name ‘u_char
48 | u_char *end;
| ^~~~~~
src/core/ngx_slab.h:52:5: error: unknown type name ‘u_char
52 | u_char *log_ctx;
| ^~~~~~
src/core/ngx_slab.h:53:5: error: unknown type name ‘u_char
53 | u_char zero;
| ^~~~~~
In file included from src/core/ngx_core.h:81,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_inet.h:109:25: error: unknown type name ‘u_char’; did you mean ‘char’?
109 | in_addr_t ngx_inet_addr(u_char *text, size_t len);
| ^~~~~~
| char
src/core/ngx_inet.h:111:26: error: unknown type name ‘u_char’; did you mean ‘char’?
111 | ngx_int_t ngx_inet6_addr(u_char *p, size_t len, u_char *addr);
| ^~~~~~
| char
src/core/ngx_inet.h:111:49: error: unknown type name ‘u_char’; did you mean ‘char’?
111 | ngx_int_t ngx_inet6_addr(u_char *p, size_t len, u_char *addr);
| ^~~~~~
| char
src/core/ngx_inet.h:112:23: error: unknown type name ‘u_char’; did you mean ‘char’?
112 | size_t ngx_inet6_ntop(u_char *p, u_char *text, size_t len);
| ^~~~~~
| char
src/core/ngx_inet.h:112:34: error: unknown type name ‘u_char’; did you mean ‘char’?
112 | size_t ngx_inet6_ntop(u_char *p, u_char *text, size_t len);
| ^~~~~~
| char
src/core/ngx_inet.h:114:62: error: unknown type name ‘u_char’; did you mean ‘char’?
114 | size_t ngx_sock_ntop(struct sockaddr *sa, socklen_t socklen, u_char *text,
| ^~~~~~
| char
src/core/ngx_inet.h:116:46: error: unknown type name ‘u_char’; did you mean ‘char’?
116 | size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len);
| ^~~~~~
| char
src/core/ngx_inet.h:119:62: error: unknown type name ‘u_char’; did you mean ‘char’?
119 | ngx_int_t ngx_parse_addr(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text,
| ^~~~~~
| char
src/core/ngx_inet.h:122:5: error: unknown type name ‘u_char’; did you mean ‘char’?
122 | u_char *text, size_t len);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:82,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_cycle.h:35:5: error: unknown type name ‘u_char’; did you mean ‘char’?
35 | u_char *buf, size_t len);
| ^~~~~~
| char
src/core/ngx_cycle.h:95:5: error: unknown type name ‘ngx_log_intercept_pt
95 | ngx_log_intercept_pt intercept_error_log_handler;
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/core/ngx_core.h:83,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_resolver.h:65:5: error: unknown type name ‘u_short
65 | u_short priority;
| ^~~~~~~
src/core/ngx_resolver.h:66:5: error: unknown type name ‘u_short
66 | u_short weight;
| ^~~~~~~
src/core/ngx_resolver.h:72:5: error: unknown type name ‘u_short
72 | u_short priority;
| ^~~~~~~
src/core/ngx_resolver.h:73:5: error: unknown type name ‘u_short
73 | u_short weight;
| ^~~~~~~
src/core/ngx_resolver.h:74:5: error: unknown type name ‘u_short
74 | u_short port;
| ^~~~~~~
src/core/ngx_resolver.h:80:5: error: unknown type name ‘u_short
80 | u_short priority;
| ^~~~~~~
src/core/ngx_resolver.h:81:5: error: unknown type name ‘u_short
81 | u_short weight;
| ^~~~~~~
src/core/ngx_resolver.h:82:5: error: unknown type name ‘u_short
82 | u_short port;
| ^~~~~~~
src/core/ngx_resolver.h:97:5: error: unknown type name ‘u_char
97 | u_char *name;
| ^~~~~~
src/core/ngx_resolver.h:104:5: error: unknown type name ‘u_short
104 | u_short nlen;
| ^~~~~~~
src/core/ngx_resolver.h:105:5: error: unknown type name ‘u_short
105 | u_short qlen;
| ^~~~~~~
src/core/ngx_resolver.h:107:5: error: unknown type name ‘u_char
107 | u_char *query;
| ^~~~~~
src/core/ngx_resolver.h:109:5: error: unknown type name ‘u_char
109 | u_char *query6;
| ^~~~~~
src/core/ngx_resolver.h:115:9: error: unknown type name ‘u_char
115 | u_char *cname;
| ^~~~~~
src/core/ngx_resolver.h:119:5: error: unknown type name ‘u_char
119 | u_char code;
| ^~~~~~
src/core/ngx_resolver.h:120:5: error: unknown type name ‘u_short
120 | u_short naddrs;
| ^~~~~~~
src/core/ngx_resolver.h:121:5: error: unknown type name ‘u_short
121 | u_short nsrvs;
| ^~~~~~~
src/core/ngx_resolver.h:122:5: error: unknown type name ‘u_short
122 | u_short cnlen;
| ^~~~~~~
src/core/ngx_resolver.h:130:5: error: unknown type name ‘u_short
130 | u_short naddrs6;
| ^~~~~~~
In file included from src/core/ngx_core.h:85,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/event/ngx_event_openssl.h:114:5: error: unknown type name ‘u_char
114 | u_char early_buf;
| ^~~~~~
src/event/ngx_event_openssl.h:149:5: error: unknown type name ‘u_char
149 | u_char id[32];
| ^~~~~~
src/event/ngx_event_openssl.h:151:5: error: unknown type name ‘u_char
151 | u_char *session;
| ^~~~~~
src/event/ngx_event_openssl.h:159:5: error: unknown type name ‘u_char
159 | u_char name[16];
| ^~~~~~
src/event/ngx_event_openssl.h:160:5: error: unknown type name ‘u_char
160 | u_char hmac_key[32];
| ^~~~~~
src/event/ngx_event_openssl.h:161:5: error: unknown type name ‘u_char
161 | u_char aes_key[32];
| ^~~~~~
src/event/ngx_event_openssl.h:316:43: error: unknown type name ‘u_char’; did you mean ‘char’?
316 | ssize_t ngx_ssl_recv(ngx_connection_t *c, u_char *buf, size_t size);
| ^~~~~~
| char
src/event/ngx_event_openssl.h:317:44: error: unknown type name ‘u_char’; did you mean ‘char’?
317 | ssize_t ngx_ssl_write(ngx_connection_t *c, u_char *data, size_t size);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:87,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/event/quic/ngx_event_quic.h:84:5: error: unknown type name ‘u_char
84 | u_char av_token_key[NGX_QUIC_AV_KEY_LEN];
| ^~~~~~
src/event/quic/ngx_event_quic.h:85:5: error: unknown type name ‘u_char
85 | u_char sr_token_key[NGX_QUIC_SR_KEY_LEN];
| ^~~~~~
src/event/quic/ngx_event_quic.h:124:52: error: unknown type name ‘u_char’; did you mean ‘char’?
124 | ngx_int_t ngx_quic_get_packet_dcid(ngx_log_t *log, u_char *data, size_t len,
| ^~~~~~
| char
src/event/quic/ngx_event_quic.h:127:41: error: unknown type name ‘u_char’; did you mean ‘char’?
127 | ngx_str_t *secret, ngx_str_t *salt, u_char *out, size_t len);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:93,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_open_file_cache.h:60:5: error: unknown type name ‘u_char
60 | u_char *name;
| ^~~~~~
In file included from src/core/ngx_core.h:94,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/os/unix/ngx_os.h:19:53: error: unknown type name ‘u_char’; did you mean ‘char’?
19 | typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size);
| ^~~~~~
| char
src/os/unix/ngx_os.h:22:53: error: unknown type name ‘u_char’; did you mean ‘char’?
22 | typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size);
| ^~~~~~
| char
src/os/unix/ngx_os.h:27:5: error: unknown type name ‘ngx_recv_pt
27 | ngx_recv_pt recv;
| ^~~~~~~~~~~
src/os/unix/ngx_os.h:29:5: error: unknown type name ‘ngx_recv_pt
29 | ngx_recv_pt udp_recv;
| ^~~~~~~~~~~
src/os/unix/ngx_os.h:30:5: error: unknown type name ‘ngx_send_pt
30 | ngx_send_pt send;
| ^~~~~~~~~~~
src/os/unix/ngx_os.h:31:5: error: unknown type name ‘ngx_send_pt
31 | ngx_send_pt udp_send;
| ^~~~~~~~~~~
src/os/unix/ngx_os.h:46:44: error: unknown type name ‘u_char’; did you mean ‘char’?
46 | ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size);
| ^~~~~~
| char
src/os/unix/ngx_os.h:48:48: error: unknown type name ‘u_char’; did you mean ‘char’?
48 | ssize_t ngx_udp_unix_recv(ngx_connection_t *c, u_char *buf, size_t size);
| ^~~~~~
| char
src/os/unix/ngx_os.h:49:44: error: unknown type name ‘u_char’; did you mean ‘char’?
49 | ssize_t ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size);
| ^~~~~~
| char
src/os/unix/ngx_os.h:52:48: error: unknown type name ‘u_char’; did you mean ‘char’?
52 | ssize_t ngx_udp_unix_send(ngx_connection_t *c, u_char *buf, size_t size);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:95,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_connection.h:131:5: error: unknown type name ‘ngx_recv_pt
131 | ngx_recv_pt recv;
| ^~~~~~~~~~~
src/core/ngx_connection.h:132:5: error: unknown type name ‘ngx_send_pt
132 | ngx_send_pt send;
| ^~~~~~~~~~~
In file included from src/core/ngx_core.h:96,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_syslog.h:30:1: error: unknown type name ‘u_char’; did you mean ‘char’?
30 | u_char *ngx_syslog_add_header(ngx_syslog_peer_t *peer, u_char *buf);
| ^~~~~~
| char
src/core/ngx_syslog.h:30:56: error: unknown type name ‘u_char’; did you mean ‘char’?
30 | u_char *ngx_syslog_add_header(ngx_syslog_peer_t *peer, u_char *buf);
| ^~~~~~
| char
src/core/ngx_syslog.h:31:58: error: unknown type name ‘u_char’; did you mean ‘char’?
31 | void ngx_syslog_writer(ngx_log_t *log, ngx_uint_t level, u_char *buf,
| ^~~~~~
| char
src/core/ngx_syslog.h:33:50: error: unknown type name ‘u_char’; did you mean ‘char’?
33 | ssize_t ngx_syslog_send(ngx_syslog_peer_t *peer, u_char *buf, size_t len);
| ^~~~~~
| char
In file included from src/core/ngx_core.h:97,
from src/core/ngx_bpf.h:12,
from src/event/quic/ngx_event_quic_bpf_code.c:6:
src/core/ngx_proxy_protocol.h:29:1: error: unknown type name ‘u_char’; did you mean ‘char’?
29 | u_char *ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf,
| ^~~~~~
| char
src/core/ngx_proxy_protocol.h:29:54: error: unknown type name ‘u_char’; did you mean ‘char’?
29 | u_char *ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf,
| ^~~~~~
| char
src/core/ngx_proxy_protocol.h:30:5: error: unknown type name ‘u_char’; did you mean ‘char’?
30 | u_char *last);
| ^~~~~~
| char
src/core/ngx_proxy_protocol.h:31:1: error: unknown type name ‘u_char’; did you mean ‘char’?
31 | u_char *ngx_proxy_protocol_write(ngx_connection_t *c, u_char *buf,
| ^~~~~~
| char
src/core/ngx_proxy_protocol.h:31:55: error: unknown type name ‘u_char’; did you mean ‘char’?
31 | u_char *ngx_proxy_protocol_write(ngx_connection_t *c, u_char *buf,
| ^~~~~~
| char
src/core/ngx_proxy_protocol.h:32:5: error: unknown type name ‘u_char’; did you mean ‘char’?
32 | u_char *last);
| ^~~~~~
| char
gmake[2]: *** [objs/Makefile:1688: objs/src/event/quic/ngx_event_quic_bpf_code.o] Error 1
gmake[2]: Leaving directory '/opt/text/openresty-1.25.3.2/build/nginx-1.25.3'
gmake[1]: *** [Makefile:10: build] Error 2
gmake[1]: Leaving directory '/opt/text/openresty-1.25.3.2/build/nginx-1.25.3'
gmake: *** [Makefile:9: all] Error 2 




Reply all
Reply to author
Forward
0 new messages