Experiencing a bunch of error that are stopping successful compilation of nginx-devel 11 July 2023
Hi there, thanks for the report. Could you please provide more details about the issue. Thank you.
cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -fstrict-aliasing -Wstrict-overflow=5 -Wmissing-prototypes -Werror -g -O -I/usr/local/include/luajit-2.1 -O2 -pipe -g -I/usr/local/include -DLDAP_DEPRECATED -DLIBICONV_PLUG -Wno-compound-token-split-by-macro -fstack-protector-strong -fno-strict-aliasing -DLARGEFILE_SOURCE -DBUILDING_NGINX -DNDK_SET_VAR -Wno-deprecated-declarations -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -Isrc -Ibuild -Injs -o build/src/njs_value.o -MMD -MF build/src/njs_value.dep -MT build/src/njs_value.o src/njs_value.c src/njs_value.c:491:1: error: no previous prototype for function 'njs_value_native_function' [-Werror,-Wmissing-prototypes] njs_value_native_function(const njs_value_t *value) ^ src/njs_value.c:490:1: note: declare 'static' if the function is not intended to be used outside of this translation unit njs_function_native_t ^ static src/njs_value.c:573:1: error: no previous prototype for function 'njs_value_is_error' [-Werror,-Wmissing-prototypes] njs_value_is_error(const njs_value_t *value) ^ src/njs_value.c:572:1: note: declare 'static' if the function is not intended to be used outside of this translation unit njs_int_t ^ static src/njs_value.c:601:1: error: no previous prototype for function 'njs_value_is_data_view' [-Werror,-Wmissing-prototypes] njs_value_is_data_view(const njs_value_t *value) ^ src/njs_value.c:600:1: note: declare 'static' if the function is not intended to be used outside of this translation unit njs_int_t ^ static src/njs_value.c:641:15: error: implicit declaration of function 'njs_vm_proto' is invalid in C99 [-Werror,-Wimplicit-function-declaration] obj = njs_vm_proto(vm, index); ^ src/njs_value.c:641:13: error: incompatible integer to pointer conversion assigning to 'njs_object_t *' (aka 'struct njs_object_s *') from 'int' [-Werror,-Wint-conversion] obj = njs_vm_proto(vm, index); ^ ~~~~~~~~~~~~~~~~~~~~~~~ src/njs_value.c:1624:1: error: redefinition of 'njs_value_to_integer' njs_value_to_integer(njs_vm_t *vm, njs_value_t *value, int64_t *dst) ^ /usr/local/include/njs_value_conversion.h:66:1: note: previous definition is here njs_value_to_integer(njs_vm_t *vm, njs_value_t *value, int64_t *dst) ^ src/njs_value.c:1684:1: error: no previous prototype for function 'njs_value_construct' [-Werror,-Wmissing-prototypes] njs_value_construct(njs_vm_t *vm, njs_value_t *constructor, njs_value_t *args, ^ src/njs_value.c:1683:1: note: declare 'static' if the function is not intended to be used outside of this translation unit njs_int_t ^ static 7 errors generated. *** [build/src/njs_value.o] Error code 1 make[4]: stopped in /usr/ports/www/nginx-devel/work/njs-0.8.0 1 error make[4]: stopped in /usr/ports/www/nginx-devel/work/njs-0.8.0 *** [/usr/ports/www/nginx-devel/work/njs-0.8.0/nginx/../build/libnjs.a] Error code 2 make[3]: stopped in /usr/ports/www/nginx-devel/work/nginx-1.25.1 1 error make[3]: stopped in /usr/ports/www/nginx-devel/work/nginx-1.25.1 *** [build] Error code 2 make[2]: stopped in /usr/ports/www/nginx-devel/work/nginx-1.25.1 1 error make[2]: stopped in /usr/ports/www/nginx-devel/work/nginx-1.25.1 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/www/nginx-devel *** Error code 1 Stop. make: stopped in /usr/ports/www/nginx-devel
I had to disab le the stream option and in one case that njs option to compile nginx-devel
Thanks for sharing the build.log. Could you share the following file /var/db/ports/www_nginx-devel/options, thank you. Also, is there any specific compiler flags set in /etc/make.conf?