I'm using ~amd64 but I think that this problem also applicable another architecture. during emerging ruby-1.8.7_p352, we can meet message as below. 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 sym.c: In function ‘rb_dlsym_inspect’: sym.c:275:21: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 4 has type ‘struct sym_data *’ sym.c:275:21: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 5 has type ‘void *’ sym.c:275:21: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 4 has type ‘struct sym_data *’ sym.c:275:21: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 5 has type ‘void *’ dl.c:106:1: error: expected ‘;’, ‘,’ or ‘)’ before ‘static’ so I did check where callback.func is and what that problem is. this file is located at /var/tmp/portage/dev-lang/ruby-1.8.7_p352/work/ruby-1.8.7-p352/ext/dl created after fetching and extracting ruby source codes. the front part of file "callback.func" seems corrupt. first function has invalid form of function. I attached that corrupted file in this report. * i think that this bug needs to report to the upstream *
*** This bug has been marked as a duplicate of bug 370413 ***