On Mon, Sep 28, 2009 at 5:24 PM, Daniel Bovensiepen <redmine / ruby-lang.org> wrote: > The following happens during compiling: > > gcc -I. -I../../.ext/include/x86_64-darwin10.0.0 -I../.././include -I../.././ext/syck -DRUBY_EXTCONF_H=\"extconf.h\" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -fomit-frame-pointer -ggdb -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -fno-common -pipe -o gram.o -c gram.c > In file included from syck.h:21, > from gram.y:16: > ../.././include/ruby/st.h:112: error: expected declaration specifiers or ¡Æ...¡Ç before ¡Æuint32_t¡Ç > make[1]: *** [gram.o] Error 1 > make: *** [mkmain.sh] Error 1 > > I don't want to provide a patch, because I don't know how it will apply to the mention cygwin issue. > Hi, You could use following patch for ext/syck/syck.h, that would add necessary includes (<stdint.h>): index 81b3d67..4657349 100644 --- a/ext/syck/syck.h +++ b/ext/syck/syck.h @@ -18,7 +18,7 @@ #include <stdio.h> #include <stdlib.h> #include <ctype.h> -#include "ruby/st.h" +#include "ruby/ruby.h" #if defined(__cplusplus) extern "C" {