BIRD 2.0.5 build failures on RHEL/CentOS 6 and 7

Ondrej Zajicek santiago at crfreenet.org
Mon Aug 5 22:50:02 CEST 2019


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: santiago at 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."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20190805/0bb14f42/attachment.sig>


More information about the Bird-users mailing list