Misleading "Symbol already defined" error

Maria Matějka maria.matejka at nic.cz
Tue Feb 4 10:37:37 CET 2020


Hello!
Fixed in master.
Maria

On 2/2/20 5:38 PM, Martin Weinelt wrote:
> Hi,
> 
> i was debugging this on and off for the last 36 hours and found the error message quite misleading.
> 
> [root at ganymede:/etc/bird]# cat bird2.conf
> router id 172.23.42.3;
> protocol device {
>   scan time 10;
> };
> [root at ganymede:/etc/bird]# bird -c bird2.conf -p
> bird: bird2.conf:1:1 Symbol already defined
> 
> [root at ganymede:/etc/bird]# bird --version
> BIRD version 2.0.7
> 
> 
> But the error is not due to birds config file, it is due to a duplicate entry in /etc/iproute2/rt_tables definitions.
> 
> [root at ganymede:/etc/bird]# ltrace bird -c bird2.conf -p
> [...]
> strcmp("ipt_igpt", "ipt_igpt") = 0
> strlen("Symbol already defined") = 22
> [...]
> 
> 
> Took me quite some time to find this and I would appreciate if the error message could be improved.
> 
> 
> Best regards,
> 
> Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3028 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20200204/d3ff8011/attachment.p7s>


More information about the Bird-users mailing list