Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236362 - dev-cpp/libthrowable-1.1.0 - ../../libthrowable/internal/posix_threads.h:88: error: 'strerror_r' was not declared in this scope
Summary: dev-cpp/libthrowable-1.1.0 - ../../libthrowable/internal/posix_threads.h:88: ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
Depends on:
Blocks: gcc-4.3
  Show dependency tree
Reported: 2008-09-01 16:05 UTC by Tomáš Chvátal (RETIRED)
Modified: 2008-09-08 19:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

My emerge --info (,5.03 KB, text/plain)
2008-09-01 16:05 UTC, Tomáš Chvátal (RETIRED)

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Chvátal (RETIRED) gentoo-dev 2008-09-01 16:05:11 UTC
When compiling libthrowable i get this error:
In file included from ../../libthrowable/internal/threads.h: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 -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 :]
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2008-09-01 16:05:31 UTC
Created attachment 164264 [details]
My emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-01 21:20:00 UTC
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.
Comment 3 Wormo (RETIRED) gentoo-dev 2008-09-02 06:13:17 UTC
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>"
Comment 4 Michael Gisbers 2008-09-04 07:01:09 UTC
adding '#include <cstring>' to 'libthrowable/internal/posix_threads.h' solves the problem using gcc-4.3.1
Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2008-09-06 11:44:47 UTC
+  06 Sep 2008; Peter Alfredsen <>
+  files/libthrowable-1.1.0-gcc43.diff:
+  Update gcc-4.3 patch per bug 236362. Thanks to Michael Gisbers
+  <>.
Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2008-09-06 12:11:13 UTC
Adding upstream, so he can also fix it there.
Comment 7 Matthias Langer 2008-09-08 19:48:16 UTC
thanks, should be fixed in svn and included in the next release which should happen soon.