FS#26794 - Linker error when compiling Bison 2.5 files using an extern yyerror.
Attached to Project:
Arch Linux
Opened by Michael Walker (Barrucadu) - Tuesday, 08 November 2011, 10:23 GMT
Last edited by Allan McRae (Allan) - Friday, 25 November 2011, 03:23 GMT
Opened by Michael Walker (Barrucadu) - Tuesday, 08 November 2011, 10:23 GMT
Last edited by Allan McRae (Allan) - Friday, 25 November 2011, 03:23 GMT
|
Details
Minimal breaking example (example.y):
$ bison example.y $ gcc example.tab.c -ly /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/liby.a(yyerror.o): In function `yyerror': (.text+0x12): undefined reference to `rpl_fprintf' collect2: ld returned 1 exit status Expected behaviour: not that. If yyerror is defined, rather than the liby one used, no such error occurs. Downgrading to Bison 2.4.3 "fixes" this problem. |
This task depends upon
Closed by Allan McRae (Allan)
Friday, 25 November 2011, 03:23 GMT
Reason for closing: Fixed
Additional comments about closing: bison-2.5-3 in [testing]
Friday, 25 November 2011, 03:23 GMT
Reason for closing: Fixed
Additional comments about closing: bison-2.5-3 in [testing]
example.y
http://allanmcrae.com/tmp/bison-2.5-3-i686.pkg.tar.xz
http://allanmcrae.com/tmp/bison-2.5-3-x86_64.pkg.tar.xz