From: Tim Hunter Date: 2004-08-25T07:20:45+09:00 Subject: Error in defines.h when compiling with on UltraSPARC II An RMagick user has reported a problem compling RMagick on an UltraSPARC II running Debian Linux. The error is in the defines.h header. Gcc says: gcc -fPIC -std=c99 -Wall -g -O2 -Wall -pthread -I. -I/usr/lib/ruby/1.8/sparc-linux -I/usr/lib/ruby/1.8/sparc-linux -I/build/buildd/librmagick-ruby-1.5.0/ext/RMagick -DRUBY_VERSION=0x182 -I/usr/include -c rmdraw.c In file included from /usr/lib/ruby/1.8/sparc-linux/ruby.h:22, from rmagick.h:19, from rmdraw.c:10: /usr/lib/ruby/1.8/sparc-linux/defines.h: In function `flush_register_windows': /usr/lib/ruby/1.8/sparc-linux/defines.h:216: error: `asm' undeclared (first use in this function) /usr/lib/ruby/1.8/sparc-linux/defines.h:216: error: (Each undeclared identifier is reported only once /usr/lib/ruby/1.8/sparc-linux/defines.h:216: error: for each function it appears in.) /usr/lib/ruby/1.8/sparc-linux/defines.h:216: error: parse error before "volatile" This is Ruby 1.8.2. No error occurs if the -std=c99 option is omitted. Any ideas? RMagick uses the fmax function, defined in C99. I could replace it with something else but I'd rather not.