Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 236362

Summary: dev-cpp/libthrowable-1.1.0 - ../../libthrowable/internal/posix_threads.h:88: error: 'strerror_r' was not declared in this scope
Product: Gentoo Linux Reporter: Tomáš Chvátal (RETIRED) <scarabeus>
Component: [OLD] UnspecifiedAssignee: Thomas Anderson (tanderson) (RETIRED) <tanderson>
Status: RESOLVED FIXED    
Severity: normal CC: fauli, m.langer798, michael
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: My emerge --info

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,                                                                                                                  
                 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 :]
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 <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>.
+
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.