[gnutls-help] Compilation error

Anton anton.vojlenko at gmail.com
Fri Mar 4 16:12:31 CET 2016


Hello,

I downloaded GnuTLS 3.4.10 sources from 
ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/gnutls-3.4.10.tar.xz and while 
making them i have next errors:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I./gl -I./gl 
-I./../lib/includes -I./../lib/includes -I./../libdane/includes 
-I./../extra/includes -W -Wabi -Waddress -Wall -Wattributes 
-Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align 
-Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch 
-Wdeprecated -Wdeprecated-declarations -Wdisabled-optimization 
-Wdiv-by-zero -Wempty-body -Wendif-labels -Wenum-compare -Wextra 
-Wformat-contains-nul -Wformat-extra-args -Wformat-security 
-Wformat-zero-length -Wignored-qualifiers -Wimplicit 
-Wimplicit-function-declaration -Wimplicit-int -Winit-self 
-Wint-to-pointer-cast -Winvalid-pch -Wlogical-op -Wmain -Wmissing-braces 
-Wmissing-declarations -Wmissing-field-initializers 
-Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes 
-Wmultichar -Wnested-externs -Wnonnull -Wold-style-declaration 
-Wold-style-definition -Woverflow -Woverride-init -Wpacked 
-Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-sign 
-Wpointer-to-int-cast -Wpragmas -Wreturn-type -Wsequence-point -Wshadow 
-Wstrict-aliasing -Wstrict-prototypes -Wswitch -Wsync-nand -Wtrigraphs 
-Wtype-limits -Wuninitialized -Wunknown-pragmas 
-Wunsafe-loop-optimizations -Wunused -Wunused-but-set-parameter 
-Wunused-but-set-variable -Wunused-function -Wunused-label 
-Wunused-macros -Wunused-parameter -Wunused-value -Wunused-variable 
-Wvariadic-macros -Wvolatile-register-var -Wwrite-strings 
-Wnormalized=nfc -fdiagnostics-show-option -funit-at-a-time 
-Wno-missing-field-initializers -Wno-missing-field-initializers 
-Wno-format-y2k -Wno-unused-value -Wno-unused-parameter 
-Wno-stack-protector -Wno-int-to-pointer-cast -fdiagnostics-show-option 
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT 
ocsptool-args.lo -MD -MP -MF .deps/ocsptool-args.Tpo -c ocsptool-args.c  
-fPIC -DPIC -o .libs/ocsptool-args.o
cc1: warning: command line option "-Wenum-compare" is valid for 
C++/ObjC++ but not for C
ocsptool-args.c:269: warning: 'static' is not at beginning of 
declaration [-Wold-style-declaration]
ocsptool-args.c:269: error: duplicate 'static'
ocsptool-args.c:269: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'optDesc'
ocsptool-args.c:563: warning: suggest parentheses around arithmetic in 
operand of '|' [-Wparentheses]
ocsptool-args.c:568: error: 'optDesc' undeclared here (not in a function)
ocsptool-args.c: In function 'doOptDebug':
ocsptool-args.c:609: warning: nested extern declaration of 
'option_usage_fp' [-Wnested-externs]
ocsptool-args.c:615: warning: implicit declaration of function 'strtol' 
[-Wimplicit-function-declaration]
ocsptool-args.c:615: warning: nested extern declaration of 'strtol' 
[-Wnested-externs]
ocsptool-args.c:42:1: warning: macro "OPTION_CODE_COMPILE" is not used
make[4]: *** [ocsptool-args.lo] Error 1

Any ideas what wrong with the sources?
Thanks.

Best regards,
Anton



More information about the Gnutls-help mailing list