Bug 126083 - koffice-libs fails to compile with glibc-2.4
Summary: koffice-libs fails to compile with glibc-2.4
Status: RESOLVED NOT A BUG
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KOffice Bug Wranglers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-22 19:10 UTC by Alan Dion
Modified: 2006-04-26 23:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch that tries to fix the issue (435 bytes, patch)
2006-04-26 23:14 UTC, Sebastian Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Dion 2006-04-22 19:10:07 UTC
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
Comment 1 Thiago Macieira 2006-04-26 17:43:13 UTC
The error is in Ruby.
Comment 2 Sebastian Sauer 2006-04-26 23:14:43 UTC
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 :)