Version: 1.5.0 (using KDE KDE 3.5.2) Installed from: Compiled From Sources Compiler: gcc 3.4.6 OS: Linux The following compile error occurs with glibc 2.4 and gcc 3.4.6 Making all in ruby make[4]: Entering directory `/var/tmp/portage/koffice-libs-1.5.0/work/koffice-libs-1.5.0/lib/kross/ruby' /bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib/kross -I/usr/lib/ruby/1.8/i686-linux -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O3 -march=pentium4 -fomit-frame-pointer -pipe -ffast-math -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o rubyinterpreter.lo `test -f 'rubyinterpreter.cpp' || echo './'`rubyinterpreter.cpp /bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib/kross -I/usr/lib/ruby/1.8/i686-linux -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O3 -march=pentium4 -fomit-frame-pointer -pipe -ffast-math -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o rubyextension.lo `test -f 'rubyextension.cpp' || echo './'`rubyextension.cpp In file included from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/i686-pc-linux-gnu/bits/gthr-default.h:44, from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/i686-pc-linux-gnu/bits/gthr.h:96, from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/i686-pc-linux-gnu/bits/c++io.h:37, from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/iosfwd:47, from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/bits/stl_algobase.h:70, from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/bits/stl_tree.h:66, from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/map:66, from rubyinterpreter.cpp:21: /usr/include/unistd.h:266: error: declaration of `int eaccess(const char*, int) throw ()' throws different exceptions /usr/lib/ruby/1.8/i686-linux/intern.h:224: error: than previous declaration `int eaccess(const char*, int)' make[4]: *** [rubyinterpreter.lo] Error 1
The error is in Ruby.
Created attachment 15791 [details] Patch that tries to fix the issue Hi Alan, this is a known bug in Ruby. See bugreports #125644 and #125645 (and http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7195 ). But since you are the theird one that note this problem, I guess we should try to work around the issue. Could you please try to apply the attached patch (cd koffice/lib/kross && patch -p0 < /path/to/kross20060426.patch) and look if that fixes the compile for you (the buggy ruby should be disabled; "checking if C++ program with ruby can be compiled... no" message on configure). A lot of thanks in advance and may the source be with us :)