Subject: lib/37641: problem in NetBSD4.0rc1 gcc4.0 libobjc fall in single thread
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <k-1@yk.rim.or.jp>
List: netbsd-bugs
Date: 12/29/2007 10:35:00
>Number:         37641
>Category:       lib
>Synopsis:       problem in NetBSD4.0rc1 gcc4.0 libobjc fall in single thread
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 29 10:35:00 +0000 2007
>Originator:     Terutaka ODA
>Release:        NetBSD 4.0RC1
>Organization:
>Environment:
NetBSD 4.0-RC1
>Description:
I compile Netbsd/pkgsrc/meta-pkgs/gnustep in netbsd-4-0-rc1(enable native thread), but fall back to  single thread version.

>How-To-Repeat:
Ever.
>Fix:
Index: gthr.h
===================================================================
RCS file: /cvsroot/src/gnu/dist/gcc4/gcc/gthr.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 gthr.h
--- gthr.h      20 Apr 2006 08:51:14 -0000      1.1.1.1
+++ gthr.h      3 Sep 2007 17:03:57 -0000
@@ -115,7 +115,10 @@
 
 /* Fallback to single thread definitions.  */
 #else
-#include "gthr-single.h"
+/*#error "single"*/
+/*#include "gthr-single.h"*/
+#include "gthr-default.h"
+
 #endif
 
 #ifndef HIDE_EXPORTS