Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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]
Comment by Allan McRae (Allan) - Wednesday, 09 November 2011, 12:18 GMT Comment by Michael Walker (Barrucadu) - Wednesday, 09 November 2011, 14:42 GMT
Works with that package.

Loading...