Compile issue with 9.11.12
Hello ISC,
I'm trying to compile the newest Bind 9.11.12 release on an older Linux system using GCC 2.95. The failure I see is the following:
In file included from siphash.c:34:
include/isc/endian.h: At top level:
include/isc/endian.h:12: warning: ignoring pragma: once
In file included from siphash.c:36:
include/isc/siphash.h:15: warning: ignoring pragma: once
siphash.c: In function `isc_siphash24':
siphash.c:96: parse error before `k0'
siphash.c:109: `end' undeclared (first use in this function)
siphash.c:109: (Each undeclared identifier is reported only once
siphash.c:109: for each function it appears in.)
siphash.c:112: `v3' undeclared (first use in this function)
siphash.c:114: parse error before `size_t'
siphash.c:114: `i' undeclared (first use in this function)
siphash.c:114: warning: statement with no effect
siphash.c:114: parse error before `)'
siphash.c:115: `v2' undeclared (first use in this function)
siphash.c:115: `v1' undeclared (first use in this function)
siphash.c:115: `v0' undeclared (first use in this function)
siphash.c:118: `m' undeclared (first use in this function)
siphash.c:90: warning: unused parameter `inlen'
siphash.c: At top level:
siphash.c:121: parse error before `switch'
siphash.c:153: warning: type defaults to `int' in declaration of `v1'
siphash.c:153: `v1' used prior to declaration
siphash.c:153: warning: right shift count >= width of type
siphash.c:153: `v0' undeclared here (not in a function)
siphash.c:153: initializer element is not constant
siphash.c:153: warning: data definition has no type or storage class
siphash.c:153: warning: type defaults to `int' in declaration of `v3'
siphash.c:153: `v3' used prior to declaration
siphash.c:153: warning: right shift count >= width of type
siphash.c:153: `v2' undeclared here (not in a function)
siphash.c:153: initializer element is not constant
siphash.c:153: warning: data definition has no type or storage class
siphash.c:153: warning: type defaults to `int' in declaration of `v0'
siphash.c:153: `v0' used prior to declaration
siphash.c:153: warning: left shift count >= width of type
siphash.c:153: warning: right shift count >= width of type
siphash.c:153: initializer element is not constant
siphash.c:153: warning: data definition has no type or storage class
siphash.c:153: parse error before `+='
siphash.c:153: warning: type defaults to `int' in declaration of `v1'
siphash.c:153: redefinition of `v1'
siphash.c:153: `v1' previously defined here
siphash.c:153: warning: right shift count >= width of type
siphash.c:153: `v2' undeclared here (not in a function)
siphash.c:153: initializer element is not constant
siphash.c:153: warning: data definition has no type or storage class
siphash.c:153: warning: type defaults to `int' in declaration of `v3'
siphash.c:153: redefinition of `v3'
siphash.c:153: `v3' previously defined here
siphash.c:153: warning: right shift count >= width of type
siphash.c:153: initializer element is not constant
siphash.c:153: warning: data definition has no type or storage class
siphash.c:153: warning: type defaults to `int' in declaration of `v2'
siphash.c:153: `v2' used prior to declaration
siphash.c:153: warning: left shift count >= width of type
siphash.c:153: warning: right shift count >= width of type
siphash.c:153: initializer element is not constant
siphash.c:153: warning: data definition has no type or storage class
siphash.c:154: parse error before `}'
siphash.c:161: warning: type defaults to `int' in declaration of `v1'
siphash.c:161: redefinition of `v1'
siphash.c:153: `v1' previously defined here
siphash.c:161: warning: right shift count >= width of type
siphash.c:161: initializer element is not constant
siphash.c:161: warning: data definition has no type or storage class
siphash.c:161: warning: type defaults to `int' in declaration of `v3'
siphash.c:161: redefinition of `v3'
siphash.c:153: `v3' previously defined here
siphash.c:161: warning: right shift count >= width of type
siphash.c:161: initializer element is not constant
siphash.c:161: warning: data definition has no type or storage class
siphash.c:161: warning: type defaults to `int' in declaration of `v0'
siphash.c:161: redefinition of `v0'
siphash.c:153: `v0' previously defined here
siphash.c:161: warning: left shift count >= width of type
siphash.c:161: warning: right shift count >= width of type
siphash.c:161: initializer element is not constant
siphash.c:161: warning: data definition has no type or storage class
siphash.c:161: parse error before `+='
siphash.c:161: warning: type defaults to `int' in declaration of `v1'
siphash.c:161: redefinition of `v1'
siphash.c:161: `v1' previously defined here
siphash.c:161: warning: right shift count >= width of type
siphash.c:161: initializer element is not constant
siphash.c:161: warning: data definition has no type or storage class
siphash.c:161: warning: type defaults to `int' in declaration of `v3'
siphash.c:161: redefinition of `v3'
siphash.c:161: `v3' previously defined here
siphash.c:161: warning: right shift count >= width of type
siphash.c:161: initializer element is not constant
siphash.c:161: warning: data definition has no type or storage class
siphash.c:161: warning: type defaults to `int' in declaration of `v2'
siphash.c:161: redefinition of `v2'
siphash.c:153: `v2' previously defined here
siphash.c:161: warning: left shift count >= width of type
siphash.c:161: warning: right shift count >= width of type
siphash.c:161: initializer element is not constant
siphash.c:161: warning: data definition has no type or storage class
siphash.c:162: parse error before `}'
siphash.c:164: warning: type defaults to `int' in declaration of `b'
siphash.c:164: initializer element is not constant
siphash.c:164: warning: data definition has no type or storage class
siphash.c:166: warning: type defaults to `int' in declaration of `out'
siphash.c:166: invalid initializer
siphash.c:166: warning: data definition has no type or storage class
siphash.c:166: warning: type defaults to `int' in declaration of `out'
siphash.c:166: conflicting types for `out'
siphash.c:166: previous declaration of `out'
siphash.c:166: invalid initializer
siphash.c:166: warning: data definition has no type or storage class
siphash.c:166: warning: type defaults to `int' in declaration of `out'
siphash.c:166: conflicting types for `out'
siphash.c:166: previous declaration of `out'
siphash.c:166: invalid initializer
siphash.c:166: warning: data definition has no type or storage class
siphash.c:166: warning: type defaults to `int' in declaration of `out'
siphash.c:166: conflicting types for `out'
siphash.c:166: previous declaration of `out'
siphash.c:166: invalid initializer
siphash.c:166: warning: data definition has no type or storage class
siphash.c:166: parse error before `+'
siphash.c:166: parse error before `+'
siphash.c:166: parse error before `+'
siphash.c:166: parse error before `+'
siphash.c:167: parse error before `}'
Please see previous tickets where the Bind 9.11 tree does not require C-99 compliant compilers and is thus supported:
- Gitlab ticket 1098 : #1098 (closed)
- Gitlab ticket 640 : #640 (closed)
- Old tracker ticket 47015 : https://bugs.isc.org/Public/Bug/Display.html?id=47015
I am able to process patches and run test builds to confirm if any proposed fixes resolve any issues. Thanks for any help you can provide!
--David