[Pkg-swan-devel] Bug#753140: strongswan: Excess initialiser elements in gcrypt plugin

Michael Tautschnig mt at debian.org
Sun Jun 29 15:10:19 UTC 2014


Package: strongswan
Version: 5.1.3-4
Usertags: goto-cc

During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder
and pbuilder) the build failed with the following error. Please note that we
use our research compiler tool-chain (using tools from the cbmc package), which
permits extended reporting on type inconsistencies at link time.

[...]
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/libstrongswan -D_FORTIFY_SOURCE=2 -rdynamic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -include /srv/jenkins-slave/workspace/sid-goto-cc-strongswan/strongswan-5.1.3/config.h -c gcrypt_plugin.c  -fPIC -DPIC -o .libs/gcrypt_plugin.o
gcrypt_plugin.c:90:15: warning: 'gcry_thread_cbs' is deprecated (declared at /usr/include/gcrypt.h:213) [-Wdeprecated-declarations]
 static struct gcry_thread_cbs thread_functions = {
               ^
gcrypt_plugin.c:91:2: warning: excess elements in struct initializer [enabled by default]
  GCRY_THREAD_OPTION_USER, NULL,
  ^
gcrypt_plugin.c:91:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:92:2: warning: excess elements in struct initializer [enabled by default]
  mutex_init, mutex_destroy, mutex_lock, mutex_unlock,
  ^
gcrypt_plugin.c:92:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:92:2: warning: excess elements in struct initializer [enabled by default]
gcrypt_plugin.c:92:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:92:2: warning: excess elements in struct initializer [enabled by default]
gcrypt_plugin.c:92:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:92:2: warning: excess elements in struct initializer [enabled by default]
gcrypt_plugin.c:92:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:93:2: warning: excess elements in struct initializer [enabled by default]
  NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
  ^
gcrypt_plugin.c:93:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:93:2: warning: excess elements in struct initializer [enabled by default]
gcrypt_plugin.c:93:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:93:2: warning: excess elements in struct initializer [enabled by default]
gcrypt_plugin.c:93:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:93:2: warning: excess elements in struct initializer [enabled by default]
gcrypt_plugin.c:93:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:93:2: warning: excess elements in struct initializer [enabled by default]
gcrypt_plugin.c:93:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:93:2: warning: excess elements in struct initializer [enabled by default]
gcrypt_plugin.c:93:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:93:2: warning: excess elements in struct initializer [enabled by default]
gcrypt_plugin.c:93:2: warning: (near initialization for 'thread_functions') [enabled by default]
gcrypt_plugin.c:94:1: warning: excess elements in struct initializer [enabled by default]
 };
 ^
gcrypt_plugin.c:94:1: warning: (near initialization for 'thread_functions') [enabled by default]
structure member designator 1 out of bounds (1)
CONVERSION ERROR
Makefile:555: recipe for target 'gcrypt_plugin.lo' failed
make[6]: *** [gcrypt_plugin.lo] Error 1


These excess initialiser elements may be the result of API changes. As these
elements aren't NULL (or some other default initialiser) likely the code is
actually broken at this stage.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-swan-devel/attachments/20140629/38b5045d/attachment.sig>


More information about the Pkg-swan-devel mailing list