Summary: | dev-lang/ruby-1.8.7_p357 fails to build in dl.c: callback.func:1:7: error: expected identifier or ‘(’ before ‘long’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexandre Rostovtsev (RETIRED) <tetromino> |
Component: | [OLD] Development | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | massimobalestra |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info dev-lang/ruby:1.8
build.log |
Created attachment 297421 [details]
build.log
*** This bug has been marked as a duplicate of bug 370413 *** |
Created attachment 297419 [details] emerge --info dev-lang/ruby:1.8 dev-lang/ruby-1.8.7_p357 and 1.8.7_p352 both fail to build on my system (~amd64, gcc-4.6.2, glibc-2.14.1-r1) with the same error: # USE="berkdb doc gdbm ipv6 ncurses readline socks5 ssl threads tk -debug -examples -libedit -rubytests -xemacs" emerge ruby:1.8 [...] x86_64-pc-linux-gnu-gcc -I. -I../.. -I../../. -I../.././ext/dl -DHAVE_DLFCN_H -DHAVE_DLOPEN -DHAVE_DLCLOSE -DHAVE_DLSYM -DHAVE_DLERROR -I. -fPIC -march=native -O2 -pipe -fno-strict-aliasing -fno-strict-aliasing -fPIC -fno-defer-pop -fno-omit-frame-pointer -c dl.c sym.c: In function ‘rb_dlsym_inspect’: sym.c:275:21: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘struct sym_data *’ [-Wformat] sym.c:275:21: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘void *’ [-Wformat] sym.c:275:21: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘struct sym_data *’ [-Wformat] sym.c:275:21: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘void *’ [-Wformat] In file included from dl.c:104:0: callback.func:1:1: warning: data definition has no type or storage class [enabled by default] 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 [enabled by default] 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_p357/work/ruby-1.8.7-p357/ext/dl' Note that I had been able to build ruby-1.8.7_p352 on this machine in September, when I was using glibc-2.13-r4 and gcc-4.6.1-r1.