From: "Martin Dürst" Date: 2009-09-29T16:47:14+09:00 Subject: [ruby-core:25832] [Bug #2153] Built issue with include/ruby/st.h (expected declaration ... before ‘uint32_t’) Issue #2153 has been updated by Martin D��rst. Assigned to set to Nobuyoshi Nakada This is the error that I got in cygwin before revision 25132: gcc -O3 -fomit-frame-pointer -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -I. -I.ext/include/i386-cygwin -I./include -I. -DRUBY_EXPORT -o st.o -c st.c st.c:1187: error: conflicting types for 'st_hash_uint32' ./include/ruby/st.h:112: error: previous declaration of 'st_hash_uint32' was here st.c:1187: error: conflicting types for 'st_hash_uint32' ./include/ruby/st.h:112: error: previous declaration of 'st_hash_uint32' was here make: *** [st.o] Error 1 Thinking whether to change st.c or st.h, I changed st.h, because the name of the function contains uint32, and therefore the type uint32_t seemed to make more sense than a simple unsigned int. I think Nobuyoshi is best qualified to figure out what he wanted, because this code is originally from him (revision 25106 or so). So I'm assigning this bug to him. Regards, Martin. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2153 ---------------------------------------- http://redmine.ruby-lang.org