When compiling libthrowable i get this error: In file included from ../../libthrowable/internal/threads.h:25, from internal.cc:25: ../../libthrowable/internal/posix_threads.h: In function 'void libthrowable::internal::posix::detail::checkCall(int, const char*, const char*, int, const char*)': ../../libthrowable/internal/posix_threads.h:88: error: 'strerror_r' was not declared in this scope make[3]: *** [internal.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DLIBTHROWABLE_BUILD -pthread -D_REENTRANT -O2 -march=amdfam10 -pipe -Wall -Wextra -Winit-self -Wconversion -Wredundant-decls -MT posix_threads.lo -MD -MP -MF .deps/posix_threads.Tpo -c posix_threads.cc -o posix_threads.o >/dev/null 2>&1 make[3]: Leaving directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0/libthrowable/internal' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0/libthrowable' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: Expected Results: libthrowable should build :]
Created attachment 164264 [details] My emerge --info
Why did you write "does not compile with threads use" in the summary? This looks like a gcc-4.3 problem to me. Please attach the entire build log.
Jer is totally right, this is gcc 4.3 breakage -- more header files need to be included explicitly, which in this case it means adding "#include <cstring>"
adding '#include <cstring>' to 'libthrowable/internal/posix_threads.h' solves the problem using gcc-4.3.1
+ 06 Sep 2008; Peter Alfredsen <loki_val@gentoo.org> + files/libthrowable-1.1.0-gcc43.diff: + Update gcc-4.3 patch per bug 236362. Thanks to Michael Gisbers + <michael@gisbers.de>. +
Adding upstream, so he can also fix it there.
thanks, should be fixed in svn and included in the next release which should happen soon.