BZ #130: CACAO doesn't build on Fedora 11 (glibc 2.10)

Status fields:

creation_ts:2009-06-20 15:17
component:unspecified
version:default branch
rep_platform:All
op_sys:Linux
bug_status:RESOLVED
resolution:FIXED
reporter:stefan@complang.tuwien.ac.at
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src/vm/jit/x86_64
-I../../src/vm/jit/x86_64/linux -I/home/sr/classpath98/include
-I/home/sr/classpath98/include -std=c++98 -pedantic -Wall -Wno-long-long -m64
-D__X86_64__ -D__LINUX__ -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600
-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_REENTRANT -g -O0 -MT logging.lo -MD -MP -MF
.deps/logging.Tpo -c logging.cpp -o logging.o
In file included from ../../src/threads/posix/mutex-posix.hpp:68,
                 from ../../src/threads/mutex.hpp:33,
                 from ../../src/threads/condition.hpp:32,
                 from ../../src/threads/posix/thread-posix.hpp:44,
                 from ../../src/threads/thread.hpp:36,
                 from ../../src/mm/dumpmemory.hpp:215,
                 from ../../src/mm/memory.hpp:51,
                 from logging.cpp:35:
../../src/vm/os.hpp: In static member function ‘static int os::scandir(const char*,
dirent***, int (*)(const dirent*), int (*)(const void*, const void*))’:
../../src/vm/os.hpp:520: error: invalid conversion from ‘int (*)(const void*, const
void*)’ to ‘int (*)(const dirent**, const dirent**)’
make[3]: *** [logging.lo] Error 1

Comment #1 by stefan@complang.tuwien.ac.at on 2009-06-20 15:42:29

Again, this disgusting problem can be solved by some disgusting template trickery.

http://mips.complang.tuwien.ac.at/hg/cacao/rev/ceb047b0deb4