rryqszq4 / ngx-php

ngx-php - Embedded php7 or php8 scripting language for nginx module. Mainline development version of the ngx-php.
BSD 2-Clause "Simplified" License
582 stars 56 forks source link

Build from source error #118

Closed puleeno closed 3 years ago

puleeno commented 3 years ago

I receive errors when building from source. Please check the below infos.

Build logs

[root@khotrungviet nginx-1.16.1]# make
make -f objs/Makefile
make[1]: Entering directory `/root/nginx-1.16.1'
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/src/ngx_http_php7_zend_uthread.o \
    /root/ngx_php7/src/ngx_http_php7_zend_uthread.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/src/ngx_http_php8_zend_uthread.o \
    /root/ngx_php7/src/ngx_http_php8_zend_uthread.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/src/ngx_http_php_zend_uthread.o \
    /root/ngx_php7/src/ngx_http_php_zend_uthread.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/src/ngx_http_php_sleep.o \
    /root/ngx_php7/src/ngx_http_php_sleep.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/src/ngx_http_php_socket.o \
    /root/ngx_php7/src/ngx_http_php_socket.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/src/ngx_http_php_util.o \
    /root/ngx_php7/src/ngx_http_php_util.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/src/ngx_http_php_variable.o \
    /root/ngx_php7/src/ngx_http_php_variable.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/src/ngx_http_php_header.o \
    /root/ngx_php7/src/ngx_http_php_header.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/src/ngx_http_php_keepalive.o \
    /root/ngx_php7/src/ngx_http_php_keepalive.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/src/ngx_php_debug.o \
    /root/ngx_php7/src/ngx_php_debug.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/src/ngx_php_conf_file.o \
    /root/ngx_php7/src/ngx_php_conf_file.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/impl/php_ngx.o \
    /root/ngx_php7/src/php/impl/php_ngx.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/impl/php_ngx_core.o \
    /root/ngx_php7/src/php/impl/php_ngx_core.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/impl/php_ngx_log.o \
    /root/ngx_php7/src/php/impl/php_ngx_log.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/impl/php_ngx_request.o \
    /root/ngx_php7/src/php/impl/php_ngx_request.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/impl/php_ngx_socket.o \
    /root/ngx_php7/src/php/impl/php_ngx_socket.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/impl/php_ngx_var.o \
    /root/ngx_php7/src/php/impl/php_ngx_var.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/impl/php_ngx_sockets.o \
    /root/ngx_php7/src/php/impl/php_ngx_sockets.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/impl/php_ngx_header.o \
    /root/ngx_php7/src/php/impl/php_ngx_header.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs -I src/http -I src/http/modules -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/src -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk \
    -o objs/addon/impl/php_ngx_cookie.o \
    /root/ngx_php7/src/php/impl/php_ngx_cookie.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /root/ngx_php7/third_party/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/php -I /usr/include/php/main -I /usr/include/php/TSRM -I /usr/include/php/Zend -I /usr/include/php/ext -I /usr/include/php/ext/date/lib -I /usr/include/php/sapi/embed -I objs \
    -o objs/ngx_modules.o \
    objs/ngx_modules.c
cc -o objs/nginx \
objs/src/core/nginx.o \
objs/src/core/ngx_log.o \
objs/src/core/ngx_palloc.o \
objs/src/core/ngx_array.o \
objs/src/core/ngx_list.o \
objs/src/core/ngx_hash.o \
objs/src/core/ngx_buf.o \
objs/src/core/ngx_queue.o \
objs/src/core/ngx_output_chain.o \
objs/src/core/ngx_string.o \
objs/src/core/ngx_parse.o \
objs/src/core/ngx_parse_time.o \
objs/src/core/ngx_inet.o \
objs/src/core/ngx_file.o \
objs/src/core/ngx_crc32.o \
objs/src/core/ngx_murmurhash.o \
objs/src/core/ngx_md5.o \
objs/src/core/ngx_sha1.o \
objs/src/core/ngx_rbtree.o \
objs/src/core/ngx_radix_tree.o \
objs/src/core/ngx_slab.o \
objs/src/core/ngx_times.o \
objs/src/core/ngx_shmtx.o \
objs/src/core/ngx_connection.o \
objs/src/core/ngx_cycle.o \
objs/src/core/ngx_spinlock.o \
objs/src/core/ngx_rwlock.o \
objs/src/core/ngx_cpuinfo.o \
objs/src/core/ngx_conf_file.o \
objs/src/core/ngx_module.o \
objs/src/core/ngx_resolver.o \
objs/src/core/ngx_open_file_cache.o \
objs/src/core/ngx_crypt.o \
objs/src/core/ngx_proxy_protocol.o \
objs/src/core/ngx_syslog.o \
objs/src/event/ngx_event.o \
objs/src/event/ngx_event_timer.o \
objs/src/event/ngx_event_posted.o \
objs/src/event/ngx_event_accept.o \
objs/src/event/ngx_event_udp.o \
objs/src/event/ngx_event_connect.o \
objs/src/event/ngx_event_pipe.o \
objs/src/os/unix/ngx_time.o \
objs/src/os/unix/ngx_errno.o \
objs/src/os/unix/ngx_alloc.o \
objs/src/os/unix/ngx_files.o \
objs/src/os/unix/ngx_socket.o \
objs/src/os/unix/ngx_recv.o \
objs/src/os/unix/ngx_readv_chain.o \
objs/src/os/unix/ngx_udp_recv.o \
objs/src/os/unix/ngx_send.o \
objs/src/os/unix/ngx_writev_chain.o \
objs/src/os/unix/ngx_udp_send.o \
objs/src/os/unix/ngx_udp_sendmsg_chain.o \
objs/src/os/unix/ngx_channel.o \
objs/src/os/unix/ngx_shmem.o \
objs/src/os/unix/ngx_process.o \
objs/src/os/unix/ngx_daemon.o \
objs/src/os/unix/ngx_setaffinity.o \
objs/src/os/unix/ngx_setproctitle.o \
objs/src/os/unix/ngx_posix_init.o \
objs/src/os/unix/ngx_user.o \
objs/src/os/unix/ngx_dlopen.o \
objs/src/os/unix/ngx_process_cycle.o \
objs/src/os/unix/ngx_linux_init.o \
objs/src/event/modules/ngx_epoll_module.o \
objs/src/os/unix/ngx_linux_sendfile_chain.o \
objs/src/core/ngx_regex.o \
objs/src/http/ngx_http.o \
objs/src/http/ngx_http_core_module.o \
objs/src/http/ngx_http_special_response.o \
objs/src/http/ngx_http_request.o \
objs/src/http/ngx_http_parse.o \
objs/src/http/modules/ngx_http_log_module.o \
objs/src/http/ngx_http_request_body.o \
objs/src/http/ngx_http_variables.o \
objs/src/http/ngx_http_script.o \
objs/src/http/ngx_http_upstream.o \
objs/src/http/ngx_http_upstream_round_robin.o \
objs/src/http/ngx_http_file_cache.o \
objs/src/http/ngx_http_write_filter_module.o \
objs/src/http/ngx_http_header_filter_module.o \
objs/src/http/modules/ngx_http_chunked_filter_module.o \
objs/src/http/modules/ngx_http_range_filter_module.o \
objs/src/http/modules/ngx_http_gzip_filter_module.o \
objs/src/http/ngx_http_postpone_filter_module.o \
objs/src/http/modules/ngx_http_ssi_filter_module.o \
objs/src/http/modules/ngx_http_charset_filter_module.o \
objs/src/http/modules/ngx_http_userid_filter_module.o \
objs/src/http/modules/ngx_http_headers_filter_module.o \
objs/src/http/ngx_http_copy_filter_module.o \
objs/src/http/modules/ngx_http_not_modified_filter_module.o \
objs/src/http/modules/ngx_http_static_module.o \
objs/src/http/modules/ngx_http_autoindex_module.o \
objs/src/http/modules/ngx_http_index_module.o \
objs/src/http/modules/ngx_http_mirror_module.o \
objs/src/http/modules/ngx_http_try_files_module.o \
objs/src/http/modules/ngx_http_auth_basic_module.o \
objs/src/http/modules/ngx_http_access_module.o \
objs/src/http/modules/ngx_http_limit_conn_module.o \
objs/src/http/modules/ngx_http_limit_req_module.o \
objs/src/http/modules/ngx_http_geo_module.o \
objs/src/http/modules/ngx_http_map_module.o \
objs/src/http/modules/ngx_http_split_clients_module.o \
objs/src/http/modules/ngx_http_referer_module.o \
objs/src/http/modules/ngx_http_rewrite_module.o \
objs/src/http/modules/ngx_http_proxy_module.o \
objs/src/http/modules/ngx_http_fastcgi_module.o \
objs/src/http/modules/ngx_http_uwsgi_module.o \
objs/src/http/modules/ngx_http_scgi_module.o \
objs/src/http/modules/ngx_http_memcached_module.o \
objs/src/http/modules/ngx_http_empty_gif_module.o \
objs/src/http/modules/ngx_http_browser_module.o \
objs/src/http/modules/ngx_http_upstream_hash_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
objs/src/http/modules/ngx_http_upstream_random_module.o \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
objs/src/http/modules/ngx_http_upstream_zone_module.o \
objs/addon/src/ndk.o \
objs/addon/src/ngx_http_php_module.o \
objs/addon/src/ngx_http_php_core.o \
objs/addon/src/ngx_http_php_directive.o \
objs/addon/src/ngx_http_php_handler.o \
objs/addon/src/ngx_http_php_request.o \
objs/addon/src/ngx_http_php7_zend_uthread.o \
objs/addon/src/ngx_http_php8_zend_uthread.o \
objs/addon/src/ngx_http_php_zend_uthread.o \
objs/addon/src/ngx_http_php_sleep.o \
objs/addon/src/ngx_http_php_socket.o \
objs/addon/src/ngx_http_php_util.o \
objs/addon/src/ngx_http_php_variable.o \
objs/addon/src/ngx_http_php_header.o \
objs/addon/src/ngx_http_php_keepalive.o \
objs/addon/src/ngx_php_debug.o \
objs/addon/src/ngx_php_conf_file.o \
objs/addon/impl/php_ngx.o \
objs/addon/impl/php_ngx_core.o \
objs/addon/impl/php_ngx_log.o \
objs/addon/impl/php_ngx_request.o \
objs/addon/impl/php_ngx_socket.o \
objs/addon/impl/php_ngx_var.o \
objs/addon/impl/php_ngx_sockets.o \
objs/addon/impl/php_ngx_header.o \
objs/addon/impl/php_ngx_cookie.o \
objs/ngx_modules.o \
-Wl,-rpath,/usr/lib64/php -ldl -lpthread -lcrypt -lcrypt -largon2 -lresolv -lcrypt -ledit -lncurses -lstdc++ -lz -lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcrypt -largon2 -lcrypt -L/usr/lib64/php -lphpU -lpcre -lz \
-Wl,-E
/usr/bin/ld: cannot find -lphpU
collect2: error: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/root/nginx-1.16.1'
make: *** [build] Error 2

OS informations:

[root@khotrungviet nginx-1.16.1]# lscpu
OS: CentOS 7
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 79
Model name:            Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
Stepping:              1
CPU MHz:               2199.998
BogoMIPS:              4399.99
Virtualization:        VT-x
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K
NUMA node0 CPU(s):     0
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon rep_good nopl eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap xsaveopt md_clear spec_ctrl
rryqszq4 commented 3 years ago

@puleeno Can you show your php-config infomation ?

puleeno commented 3 years ago

@rryqszq4 Please check my below php-config infos

Usage: ./php-config [OPTION]
Options:
  --prefix            [/usr/lib/php]
  --includes          [-I/usr/lib/php/include/php -I/usr/lib/php/include/php/main -I/usr/lib/php/include/php/TSRM -I/usr/lib/php/include/php/Zend -I/usr/lib/php/include/php/ext -I/usr/lib/php/include/php/ext/date/lib]
  --ldflags           []
  --libs              [-lcrypt   -lresolv -lcrypt -lrt -lrt -lm -ldl  -lxml2 -lsqlite3 -lxml2 -lsqlite3 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lcrypt ]
  --extension-dir     [/usr/lib/php/lib/php/extensions/no-debug-non-zts-20190902]
  --include-dir       [/usr/lib/php/include/php]
  --man-dir           [/usr/lib/php/php/man]
  --php-binary        [/usr/lib/php/bin/php]
  --php-sapis         [ cli embed phpdbg cgi]
  --ini-path          [/usr/lib/php/lib]
  --ini-dir           []
  --configure-options [--prefix=/usr/lib/php --enable-embed]
  --version           [7.4.13]
  --vernum            [70413]
rryqszq4 commented 3 years ago

@puleeno Fix detail https://github.com/rryqszq4/ngx_php7/pull/119, and you can try again from master branch. Thanks for your feedback.

puleeno commented 3 years ago

@rryqszq4 I just build from source on master branch. It's working.

Thank you for working hard.