On Mon, Aug 05, 2019 at 09:35:43PM +0200, Robert Scheck wrote: > Hello all, > > I'm seeing the following build failures with BIRD 2.0.5 on RHEL/CentOS 6, > while BIRD 2.0.4 worked fine (just did a BIRD version bump, not more):
> --- snipp --- > BUILDSTDERR: obj/conf/cf-parse.y: In function 'cf_parse': > BUILDSTDERR: obj/conf/cf-parse.y:1918: error: unknown field 'asn' specified > in initializer > BUILDSTDERR: obj/conf/cf-parse.y:1918: warning: missing braces around > initializer > BUILDSTDERR: obj/conf/cf-parse.y:1918: warning: (near initialization for > '(anonymous).val.pmi.<anonymous>') Hi I think we started to require newer bison (although it should be checked by configure and complained there). We aim to be compatible with 5 year old systems, but RHEL/CentOS 6 is too old even for that. > And even building on RHEL/CentOS 7 fails now (also just a BIRD version > bump): > > --- snipp --- > BUILDSTDERR: /usr/bin/ld: /tmp/ccZUW9JI.ltrans0.ltrans.o: relocation > R_X86_64_32 against `.rodata' can not be used when making a shared object; > recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: /tmp/ccZUW9JI.ltrans1.ltrans.o: relocation > R_X86_64_32 against hidden symbol `sk_class.61292' can not be used when > making a shared object > BUILDSTDERR: /usr/bin/ld: /tmp/ccZUW9JI.ltrans2.ltrans.o: relocation > R_X86_64_32 against `.rodata' can not be used when making a shared object; > recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: /tmp/ccZUW9JI.ltrans3.ltrans.o: relocation > R_X86_64_32 against `.rodata' can not be used when making a shared object; > recompile with -fPIC > --- snapp --- Not sure about that, it works on CentOS 7 in our Gitlab test build. It seems like our configure script improperly adds -flto even if CFLAGS / LDFLAGS are expliclty set, and it is incompatible with your flags. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
signature.asc
Description: PGP signature