Summary: | dev-lang/ruby-2* - readline.c: In function 'Init_readline': readline.c:1977:26: error: 'Function' undeclared (first use in this function) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Development | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bertrand, bitlord0xff, bugs+gentoo, maggu2810, nordwnd, proteuss, renatogallo, silvio.gerli |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.ruby-lang.org/issues/9578 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 503364 | ||
Attachments: | build.log |
Description
Juergen Rose
2014-03-01 09:46:47 UTC
MAKEOPTS=-j1 emerge -v1 '=dev-lang/ruby-2.1.0::gentoo' fails with: make[2]: Entering directory '/var/tmp/portage/dev-lang/ruby-2.1.0/work/ruby-2.1.0/ext/readline' x86_64-pc-linux-gnu-gcc -I. -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/readline -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -march=amdfam10 -O2 -pipe -fno-strict-aliasing -fPIC -o readline.o -c readline.c readline.c: In function 'Init_readline': readline.c:1977:26: error: 'Function' undeclared (first use in this function) rl_pre_input_hook = (Function *)readline_pre_input_hook; ^ readline.c:1977:26: note: each undeclared identifier is reported only once for each function it appears in readline.c:1977:36: error: expected expression before ')' token rl_pre_input_hook = (Function *)readline_pre_input_hook; ^ Makefile:228: recipe for target 'readline.o' failed make[2]: *** [readline.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-lang/ruby-2.1.0/work/ruby-2.1.0/ext/readline' exts.mk:199: recipe for target 'ext/readline/all' failed "MAKEOPTS=-j1 emerge -v1 '=dev-lang/ruby-2.0*::gentoo'" fails with the same error:
make[2]: Entering directory '/var/tmp/portage/dev-lang/ruby-2.0.0_p353-r2/work/ruby-2.0.0-p353/ext/readline'
x86_64-pc-linux-gnu-gcc -I. -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/readline -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -march=amdfam10 -O2 -pipe -fno-strict-aliasing -fPIC -o readline.o -c readline.c
readline.c: In function 'Init_readline':
readline.c:1886:26: error: 'Function' undeclared (first use in this function)
rl_pre_input_hook = (Function *)readline_pre_input_hook;
^
readline.c:1886:26: note: each undeclared identifier is reported only once for each function it appears in
readline.c:1886:36: error: expected expression before ')' token
rl_pre_input_hook = (Function *)readline_pre_input_hook;
^
Makefile:227: recipe for target 'readline.o' failed
make[2]: *** [readline.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-lang/ruby-2.0.0_p353-r2/work/ruby-2.0.0-p353/ext/readline'
exts.mk:180: recipe for target 'ext/readline/all' failed
make[1]: *** [ext/readline/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-lang/ruby-2.0.0_p353-r2/work/ruby-2.0.0-p353'
uncommon.mk:179: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2
* ERROR: dev-lang/ruby-2.0.0_p353-r2::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-lang/ruby-2.0.0_p353-r2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-lang/ruby-2.0.0_p353-r2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-lang/ruby-2.0.0_p353-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-lang/ruby-2.0.0_p353-r2/temp/environment'.
* Working directory: '/var/tmp/portage/dev-lang/ruby-2.0.0_p353-r2/work/ruby-2.0.0-p353'
* S: '/var/tmp/portage/dev-lang/ruby-2.0.0_p353-r2/work/ruby-2.0.0-p353'
>>> Failed to emerge dev-lang/ruby-2.0.0_p353-r2, Log file:
This one looks related to this bug (upstream) https://bugs.ruby-lang.org/issues/9578 I applied patch from upstream bug report to dev-lang/ruby-2.0.0_p353-r2 it compiles :-) (that is what I can test) The upstream bug report indicates that this is caused by readline 6.3, so a workaround is to use readline 6.2 for now. Same problem here: *** Bug 503384 has been marked as a duplicate of this bug. *** they already fixed it. can we add their patches? This is fixed in ruby 2.0.0_p451. I'm leaving this bug open since this most likely also needs to be fixed in ruby 2.1.0. This is also fixed in ruby 2.1.1 *** Bug 503614 has been marked as a duplicate of this bug. *** |