Bug#844145: elektra: FTBFS: kdberrors.h:489:0: error: invalid storage class for function 'elektraSetErrorf8'

2017-01-02 Thread Markus Raab
Thanks for reporting the issue!

The issue is that the file gets compiled before it is completely written to 
disc. We think the issue is already solved and released upstream.

https://github.com/ElektraInitiative/libelektra/issues/1247

As workaround, you can use a smaller number of parallel build jobs
(-j parameter of make).

Best regards, Markus



Bug#844145: elektra: FTBFS: kdberrors.h:489:0: error: invalid storage class for function 'elektraSetErrorf8'

2016-11-12 Thread Lucas Nussbaum
Source: elektra
Version: 0.8.14-5.1
Severity: serious
Tags: stretch sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-2016 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> cd /<>/obj-x86_64-linux-gnu/src/libelektra && /usr/bin/cc  
> -DHAVE_KDBCONFIG_H -Delektra_EXPORTS 
> -I/<>/obj-x86_64-linux-gnu/src/include 
> -I/<>/src/include 
> -I/<>/obj-x86_64-linux-gnu/src/bindings/cpp/include 
> -I/<>/src/bindings/cpp/include 
> -I/<>/obj-x86_64-linux-gnu/src/libelektra  -g -O2 
> -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu99  
> -Wno-deprecated-declarations  -Wno-long-long -pedantic -Wno-variadic-macros 
> -Wall -Wextra -Wno-overlength-strings -Wsign-compare -Wfloat-equal 
> -Wformat-security -Wshadow -Wcomments -Wtrigraphs -Wundef -Wuninitialized 
> -Winit-self -Wmaybe-uninitialized -Wsign-compare -Wfloat-equal 
> -Wformat-security -fPIC   -o CMakeFiles/elektra.dir/array.c.o   -c 
> /<>/src/libelektra/array.c
> [ 14%] Building CXX object 
> src/plugins/python/CMakeFiles/elektra-python-objects.dir/python.cpp.o
> In file included from /<>/src/plugins/augeas/augeas.h:9:0,
>  from /<>/src/plugins/augeas/augeas.c:17:
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h: In function 
> 'elektraAddWarningf6':
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:489:1: warning: 
> null character(s) ignored
>   buffer[12] = '\0'; strcat(buffer, "/mountpoint");
>  ^
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:489:0: warning: 
> ISO C forbids nested functions [-Wpedantic]
>   buffer[12] = '\0'; strcat(buffer, "/mountpoint");
>  
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:489:0: error: 
> invalid storage class for function 'elektraSetErrorf8'
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h: In function 
> 'elektraSetErrorf8':
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:489:0: warning: 
> declaration of 'reason' shadows a parameter [-Wshadow]
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:455:69: note: 
> shadowed declaration is here
>  static inline void elektraAddWarningf6(Key *warningKey, const char *reason,
>  ^~
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:490:14: 
> warning: declaration of 'file' shadows a parameter [-Wshadow]
>   keySetMeta(warningKey, buffer, keyName(warningKey));
>   ^~~~
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:456:14: note: 
> shadowed declaration is here
>   const char *file, const char *line, ...)
>   ^~~~
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:490:32: 
> warning: declaration of 'line' shadows a parameter [-Wshadow]
>   keySetMeta(warningKey, buffer, keyName(warningKey));
> ^~~~
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:456:32: note: 
> shadowed declaration is here
>   const char *file, const char *line, ...)
> ^~~~
> cd /<>/obj-x86_64-linux-gnu/src/plugins/python && /usr/bin/c++   
> -DELEKTRA_STATIC -DHAVE_KDBCONFIG_H -DPLUGIN_SHORT_NAME=python 
> -DPYTHON_PLUGIN_NAME=python -DPYTHON_PLUGIN_SYMBOL_NAME=Python 
> -DREADME=readme_python.c -DSWIG_RUNTIME=\"runtime.h\" -DSWIG_TYPE_TABLE=kdb 
> -I/<>/obj-x86_64-linux-gnu/src/include 
> -I/<>/src/include 
> -I/<>/obj-x86_64-linux-gnu/src/bindings/cpp/include 
> -I/<>/src/bindings/cpp/include -I/usr/include/python3.5m 
> -I/<>/obj-x86_64-linux-gnu/src/plugins/python 
> -I/<>/tests/cframework  -g -O2 
> -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -std=c++11  
> -Wno-deprecated-declarations  -Wstrict-null-sentinel -D_GLIBCXX_USE_NANOSLEEP 
> -Wno-missing-field-initializers -Wold-style-cast -Woverloaded-virtual  
> -Wsign-promo  -Wno-long-long -pedantic -Wno-variadic-macros -Wall -Wextra 
> -Wno-overlength-strings -Wsign-compare -Wfloat-equal -Wformat-security 
> -Wshadow -Wcomments -Wtrigraphs -Wundef -Wuninitialized -Winit-self 
> -Wmaybe-uninitialized   -fPIC -Wno-shadow -Wno-old-style-cast 
> -Wno-unused-variable -o CMakeFiles/elektra-python-objects.dir/python.cpp.o -c 
> /<>/src/plugins/python/python.cpp
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h: In function 
> 'elektraAddWarningf6':
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:510:1: warning: 
> ISO C forbids nested functions [-Wpedantic]
>   {
>  ^~
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:510:20: error: 
> invalid storage class for function 'elektraSetError8'
>   {
> ^   
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h: In function 
> 'elektraSetError8':
> /<>/obj-x86_64-linux-gnu/src/include/kdberrors.h:510:64: 
> warning: declaration of 'reason' shadows a parameter [-Wshadow]
>   {
>