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
586 stars 56 forks source link

problem on freebsd #7

Open iamsens opened 5 years ago

iamsens commented 5 years ago

hello I tried compile ngx_php7 on 11.1-RELEASE-p8 FreeBSD amd64 but recieve this error:

/usr/work/src/nginxPhp/ngx_php7/src/php/impl/php_ngx_track.c:513:38: error: address of 'execute_data->func->common' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] if (&execute_data->func->common) { ~~ ~~~~^~ /usr/work/src/nginxPhp/ngx_php7/src/php/impl/php_ngx_track.c:525:38: error: address of 'execute_data->func->op_array' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] if (&execute_data->func->op_array) { ~~ ~~~~^~~~ 2 errors generated. *** Error code 1

Stop. make[1]: stopped in /usr/work/src/nginxPhp/nginx-1.10.3 *** Error code 1

Stop. make: stopped in /usr/work/src/nginxPhp/nginx-1.10.3

Your know where issue?

rryqszq4 commented 5 years ago

@iamsens Unfortunately, I have not compiled ngx_php7 on the freebsd platform, I need time to try to solve the compatibility problem, you can also give some help.

iamsens commented 5 years ago

If you need some assistance, just ask

rryqszq4 commented 5 years ago

@iamsens hi Compiled by the compiler of clang version 6.0.0 on freebsd 11.2 system. The brief at https://github.com/rryqszq4/ngx_php7/commit/2e2be8dad31ffc0ef4b0082f81d482dac6fa29fa