Note:
We need to inject '-std=c99' because the reference implementation of blake2
is using C99 specific semantics.
------------------------------------------------------------------------------
crypto_generichash/blake2/ref/blake2b-ref.c: In function 'blake2b_init0':
crypto_generichash/blake2/ref/blake2b-ref.c:143:3: error: 'for' loop initial declarations are only allowed in C99 mode
crypto_generichash/blake2/ref/blake2b-ref.c:143:3: note: use option -std=c99 or -std=gnu99 to compile your code
crypto_generichash/blake2/ref/blake2b-ref.c: In function 'crypto_generichash_blake2b__init_param':
crypto_generichash/blake2/ref/blake2b-ref.c:155:3: error: 'for' loop initial declarations are only allowed in C99 mode
crypto_generichash/blake2/ref/blake2b-ref.c: In function 'crypto_generichash_blake2b__final':
crypto_generichash/blake2/ref/blake2b-ref.c:328:3: error: 'for' loop initial declarations are only allowed in C99 mode
------------------------------------------------------------------------------
Note:
This is an "unofficial" patch which was not provided by the vserver folks,
but to be able to proceed with updating the 3.4 kernel series we put an
adjusted version that applies on top of linux 3.4.55.
Note:
This change needs to be introduced because when cross-compiling configure
detects the python installation from the host which leads to enabling
python support even if there is no python installed in the target.
Note:
build error without the patch
-----------------------------------------------------------------------------
make[4]: *** [localcharset.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from ./wchar.h:63:0,
from printf-args.h:42,
from printf-parse.h:26,
from printf-parse.c:37:
./stdio.h:143:1: error: 'gets' undeclared here (not in a function)
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT vasnprintf.lo -MD -MP -MF .deps/vasnprintf.Tpo -c vasnprintf.c -fPIC -DPIC -o .libs/vasnprintf.o
In file included from ./wchar.h:63:0,
from printf-args.h:42,
from printf-args.c:30:
./stdio.h:143:1: error: 'gets' undeclared here (not in a function)
In file included from glob.c:38:0:
./stdio.h:143:1: error: 'gets' undeclared here (not in a function)
make[4]: *** [printf-args.lo] Error 1
glob.c:168:1: warning: '__leaf__' attribute has no effect on unit local functions [-Wattributes]
glob.c:216:1: warning: '__leaf__' attribute has no effect on unit local functions [-Wattributes]
glob.c:217:1: warning: '__leaf__' attribute has no effect on unit local functions [-Wattributes]
make[4]: *** [printf-parse.lo] Error 1
In file included from snprintf.c:22:0:
./stdio.h:143:1: error: 'gets' undeclared here (not in a function)
In file included from vasnprintf.c:71:0:
./stdio.h:143:1: error: 'gets' undeclared here (not in a function)
make[4]: *** [glob.lo] Error 1
make[4]: *** [snprintf.lo] Error 1
make[4]: *** [vasnprintf.lo] Error 1
-----------------------------------------------------------------------------