Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 392611

Summary: dev-lang/ruby-1.8.7_p352 fails to build with glibc 2.14
Product: Gentoo Linux Reporter: Todd Goodman <tsg>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kripton
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info =dev-lang/ruby-1.8.7_p352
emerge -pqv =dev-lang/ruby-1.8.7_p352
build.log

Description Todd Goodman 2011-11-30 14:06:29 UTC
dev-lang/ruby-1.8.7_p352 fails to build with glibc 2.14 with the following error:

In file included from dl.c:104:0:
callback.func:1:1: warning: data definition has no type or storage class
callback.func:1:7: error: expected identifier or '(' before 'long'
In file included from dl.c:104:0:
callback.func:78:33: error: expected ')' before '(' token
callback.func:79:3: warning: data definition has no type or storage class
callback.func:79:24: error: 'proc' undeclared here (not in a function)
callback.func:79:39: error: 'argc' undeclared here (not in a function)
callback.func:79:45: error: 'argv' undeclared here (not in a function)
callback.func:82:1: error: expected identifier or '(' before '}' token
dl.c:106:1: error: expected ';', ',' or ')' before 'static'
make[1]: *** [dl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/dev-lang/ruby-1.8.7_p352/work/ruby-1.8.7-p352/ext/dl'



Reproducible: Always

Steps to Reproduce:
1. emerge =glibc-2.14
2. emerge =ruby-1.8.7_p352
3.
Actual Results:  
Build fails

Expected Results:  
Build completes

See http://forums.gentoo.org/viewtopic-p-6885202.html for a description of the problem.  The patch at http://redmine.ruby-lang.org/attachments/1931/stdout-rouge-fix.patch fixes the problem.
Comment 1 Todd Goodman 2011-11-30 14:09:26 UTC
Created attachment 294307 [details]
emerge --info =dev-lang/ruby-1.8.7_p352
Comment 2 Todd Goodman 2011-11-30 14:09:46 UTC
Created attachment 294309 [details]
emerge -pqv =dev-lang/ruby-1.8.7_p352
Comment 3 Todd Goodman 2011-11-30 14:10:02 UTC
Created attachment 294311 [details]
build.log
Comment 4 Agostino Sarubbo gentoo-dev 2011-11-30 14:16:33 UTC

*** This bug has been marked as a duplicate of bug 370413 ***