Bug 272460 - www/nginx-devel latest patches stop compile
Summary: www/nginx-devel latest patches stop compile
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Sergey A. Osokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-12 04:53 UTC by doctor
Modified: 2023-07-29 06:22 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (osa)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description doctor 2023-07-12 04:53:58 UTC
Experiencing a bunch of error that are stopping successful compilation of nginx-devel 11 July 2023
Comment 1 Sergey A. Osokin freebsd_committer freebsd_triage 2023-07-12 23:41:27 UTC
Hi there,

thanks for the report.

Could you please provide more details about the issue.

Thank you.
Comment 2 doctor 2023-07-13 13:51:42 UTC
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
Comment 3 doctor 2023-07-13 14:18:07 UTC
I had to disab le the stream option and in one case that njs option to compile nginx-devel
Comment 4 Sergey A. Osokin freebsd_committer freebsd_triage 2023-07-13 15:05:01 UTC
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?