[MacPorts] #67945: gnutls-devel 3.8.1 conflicts with legacy-support: benchmark.h: error: static declaration of 'gettime' follows non-static declaration

MacPorts noreply at macports.org
Fri Aug 11 14:16:01 UTC 2023


#67945: gnutls-devel 3.8.1 conflicts with legacy-support: benchmark.h: error:
static declaration of 'gettime' follows non-static declaration
--------------------------+--------------------------
 Reporter:  barracuda156  |      Owner:  Schamschula
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.8.1
 Keywords:                |       Port:  gnutls-devel
--------------------------+--------------------------
 {{{
 /bin/sh ../libtool  --tag=CC   --mode=compile /opt/local/bin/gcc-mp-12
 -DHAVE_CONFIG_H -I. -I..  -I./gl -I./gl -I./../lib/includes
 -I./../lib/includes -I./../libdane/includes -I./../extra/includes
 -I/opt/local/include -I/opt/local/include/LegacySupport -fanalyzer -fno-
 common -Wall -Wbad-function-cast -Wcast-align=strict -Wdate-time
 -Wdisabled-optimization -Wdouble-promotion -Wduplicated-branches
 -Wduplicated-cond -Wextra -Winit-self -Winvalid-pch -Wlogical-op
 -Wmissing-declarations -Wmissing-include-dirs -Wmissing-prototypes
 -Wnested-externs -Wnull-dereference -Wold-style-definition -Wopenmp-simd
 -Wpacked -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsuggest-
 attribute=cold -Wsuggest-attribute=format -Wsuggest-attribute=malloc
 -Wsuggest-final-methods -Wsuggest-final-types -Wsync-nand -Wtrampolines
 -Wuninitialized -Wunknown-pragmas -Wunused-macros -Wvariadic-macros
 -Wvector-operation-performance -Wwrite-strings -Warray-bounds=2
 -Wattribute-alias=2 -Wbidi-chars=any,ucn -Wformat-overflow=2 -Wformat=2
 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-overflow=2 -Wuse-
 after-free=3 -Wunused-const-variable=2 -Wvla-larger-than=4031 -Wno-
 analyzer-malloc-leak -Wno-missing-field-initializers -Wno-unused-parameter
 -Wno-format-truncation -Wimplicit-fallthrough=2 -Wabi=11 -fdiagnostics-
 show-option -fno-builtin-strcmp  -pipe -Os
 -I/opt/local/include/LegacySupport -arch ppc -c -o gnutls-serv-options.lo
 gnutls-serv-options.c
 /opt/local/bin/gcc-mp-12 -DHAVE_CONFIG_H -I. -I..  -I./gl -I./gl
 -I./../lib/includes -I./../lib/includes -I./../libdane/includes
 -I./../extra/includes  -I/opt/local/include
 -I/opt/local/include/LegacySupport -fanalyzer -fno-common -Wall -Wbad-
 function-cast -Wcast-align=strict -Wdate-time -Wdisabled-optimization
 -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wextra -Winit-
 self -Winvalid-pch -Wlogical-op -Wmissing-declarations -Wmissing-include-
 dirs -Wmissing-prototypes -Wnested-externs -Wnull-dereference -Wold-style-
 definition -Wopenmp-simd -Wpacked -Wpointer-arith -Wshadow -Wstrict-
 prototypes -Wsuggest-attribute=cold -Wsuggest-attribute=format -Wsuggest-
 attribute=malloc -Wsuggest-final-methods -Wsuggest-final-types -Wsync-nand
 -Wtrampolines -Wuninitialized -Wunknown-pragmas -Wunused-macros
 -Wvariadic-macros -Wvector-operation-performance -Wwrite-strings -Warray-
 bounds=2 -Wattribute-alias=2 -Wbidi-chars=any,ucn -Wformat-overflow=2
 -Wformat=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-
 overflow=2 -Wuse-after-free=3 -Wunused-const-variable=2 -Wvla-larger-
 than=4031 -Wno-analyzer-malloc-leak -Wno-missing-field-initializers -Wno-
 unused-parameter -Wno-format-truncation -Wimplicit-fallthrough=2 -Wabi=11
 -fdiagnostics-show-option -fno-builtin-strcmp  -pipe -Os
 -I/opt/local/include/LegacySupport -arch ppc -c -o cli.o cli.c
 In file included from cli.c:65:
 benchmark.h:38:20: error: static declaration of 'gettime' follows non-
 static declaration
    38 | inline static void gettime(struct timespec *ts)
       |                    ^~~~~~~
 In file included from benchmark.h:32:
 ./gl/timespec.h:93:6: note: previous declaration of 'gettime' with type
 'void(struct timespec *)'
    93 | void gettime (struct timespec *) _GL_ARG_NONNULL ((1));
       |      ^~~~~~~
 libtool: compile:  /opt/local/bin/gcc-mp-12 -DHAVE_CONFIG_H -I. -I..
 -I./gl -I./gl -I./../lib/includes -I./../lib/includes
 -I./../libdane/includes -I./../extra/includes -I/opt/local/include
 -I/opt/local/include/LegacySupport -fanalyzer -fno-common -Wall -Wbad-
 function-cast -Wcast-align=strict -Wdate-time -Wdisabled-optimization
 -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wextra -Winit-
 self -Winvalid-pch -Wlogical-op -Wmissing-declarations -Wmissing-include-
 dirs -Wmissing-prototypes -Wnested-externs -Wnull-dereference -Wold-style-
 definition -Wopenmp-simd -Wpacked -Wpointer-arith -Wshadow -Wstrict-
 prototypes -Wsuggest-attribute=cold -Wsuggest-attribute=format -Wsuggest-
 attribute=malloc -Wsuggest-final-methods -Wsuggest-final-types -Wsync-nand
 -Wtrampolines -Wuninitialized -Wunknown-pragmas -Wunused-macros
 -Wvariadic-macros -Wvector-operation-performance -Wwrite-strings -Warray-
 bounds=2 -Wattribute-alias=2 -Wbidi-chars=any,ucn -Wformat-overflow=2
 -Wformat=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-
 overflow=2 -Wuse-after-free=3 -Wunused-const-variable=2 -Wvla-larger-
 than=4031 -Wno-analyzer-malloc-leak -Wno-missing-field-initializers -Wno-
 unused-parameter -Wno-format-truncation -Wimplicit-fallthrough=2 -Wabi=11
 -fdiagnostics-show-option -fno-builtin-strcmp -pipe -Os
 -I/opt/local/include/LegacySupport -arch ppc -c gnutls-serv-options.c
 -fno-common -DPIC -o .libs/gnutls-serv-options.o
 make[3]: *** [cli.o] Error 1
 make[3]: *** Waiting for unfinished jobs....
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gnutls
 /gnutls-devel/work/gnutls-3.8.1/src'
 make[2]: *** [all] Error 2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67945>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list