[gnutls-devel] C99?
Ludovic Courtès
ludo at gnu.org
Wed Jul 27 21:56:49 CEST 2016
Hello,
With current master I get this:
--8<---------------cut here---------------start------------->8---
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../lib/x509 -I../.. -I../../../lib/x509/../../gl -I./../../gl -I../../../lib/x509/../includes -I./../includes -I../../../lib/x509/.. -Wframe-larger-than=4096 -Wtype-limits -W -Wabi -Waddress -Waggressive-loop-optimizations -Wall -Wattributes -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdate-time -Wdeprecated -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wdouble-promotion -Wempty-body -Wendif-labels -Wenum-compare -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-zero-length -Wfree-nonheap-object -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wjump-misses-init -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes -Wmultichar -Wnarrowing -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wopenmp-simd -Woverflow -Woverride-init -Wpacked -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wreturn-local-addr -Wreturn-type -Wsequence-point -Wshadow -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wsuggest-attribute=format -Wswitch -Wsync-nand -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-macros -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings -Wnormalized=nfc -Wno-missing-field-initializers -Wno-unused-parameter -fdiagnostics-show-option -I/gnu/store/9b413hb811li9wim9advgcwllclhbgjg-nettle-3.2/include -I/gnu/store/r9swffa651bgq4cvjgh81h6aqqzgwkjf-libtasn1-4.7/include -I/gnu/store/pnax3d98xn5j7phj577v6sk9p9kfcs6m-libidn-1.32/include -g -O2 -MT name_constraints.lo -MD -MP -MF .deps/name_constraints.Tpo -c ../../../lib/x509/name_constraints.c -fPIC -DPIC -o .libs/name_constraints.o
../../../lib/x509/name_constraints.c: In function '_gnutls_name_constraints_intersect':
../../../lib/x509/name_constraints.c:241:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int type = 1; type <= GNUTLS_SAN_MAX; type++) {
^
../../../lib/x509/name_constraints.c:241:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
Makefile:1438: recipe for target 'name_constraints.lo' failed
make[4]: *** [name_constraints.lo] Error 1
make[4]: Leaving directory '/home/ludo/src/gnutls/+build/lib/x509'
Makefile:1902: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/ludo/src/gnutls/+build/lib'
Makefile:1591: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/ludo/src/gnutls/+build/lib'
Makefile:1430: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ludo/src/gnutls/+build'
Makefile:1358: recipe for target 'all' failed
make: *** [all] Error 2
ludo at pluto ~/src/gnutls/+build [env]# gcc --version
gcc (GCC) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--8<---------------cut here---------------end--------------->8---
I don’t know if the intent is to use C99 or not.
Thanks,
Ludo’.
More information about the Gnutls-devel
mailing list