From: Lyle Johnson Date: 2002-03-19T01:24:27+09:00 Subject: Re: This bonehead can't build FXRuby on RH7.2 > I managed to get over the "Too many arguments to function" hurtles > with the suggested patches to Ruby 1.6.7's ruby.h and intern.h, but > now it fails during compilation of FXRuby.cpp, viz, > > g++ -fPIC -g -O2 -O0 -DSWIG_NOINCLUDE -Iinclude -I. -I/usr/local/pkgs/ruby-1 ..6.7/lib/ruby/1.6/i686-linux -I/usr/local/pkgs/FXRuby-0.99.189/ext/fox -I/us r/local/pkgs/ruby-1.6.7/include -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H -I/usr/l ocal/include/fox > -I/usr/local/include -c -o FXRuby.o FXRuby.cpp > In file included from /usr/local/include/iosfwd:5, > from /usr/local/include/utility:5, > from /usr/local/include/xutility:6, > from /usr/local/include/iterator:5, > from /usr/local/include/memory:5, > from /usr/local/include/xtree:6, > from /usr/local/include/map:5, > from FXRuby.cpp:35: > /usr/local/include/cstdio:44: `clearerr' is already declared in this scope > /usr/local/include/cstdio:44: `fclose' is already declared in this scope > [..] My, but this raises a number of questions ;) Let's start with a few... 1. Which version of g++ are you compiling with (try typing 'g++ --version' to see). 2. What are the g++ header files doing in /usr/local/include of all places? 3. Can you check to see what happens if you edit the Makefile in FXRuby-0.99.189/ext/fox and remove the compiler flag '-I/usr/local/include" and then do "make" again? Thanks, Lyle