From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Tuexen Newsgroups: gmane.lisp.guile.devel Subject: Re: scm_mutex_lock and scm_mutex_unlock Date: Sun, 23 Oct 2005 22:53:57 +0200 Message-ID: <27b846bf36ef865fd296f6fca17decd5@lurchi.franken.de> References: <87fyqss9h1.fsf@uni-dortmund.de> <0670f7f98de893c735f61c3d27eb60c9@lurchi.franken.de> <877jc4rnyf.fsf@uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1130100922 28788 80.91.229.2 (23 Oct 2005 20:55:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Oct 2005 20:55:22 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Oct 23 22:55:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ETms0-0000ai-L7 for guile-devel@m.gmane.org; Sun, 23 Oct 2005 22:55:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETms0-0006PH-5x for guile-devel@m.gmane.org; Sun, 23 Oct 2005 16:55:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETmrw-0006PB-4j for guile-devel@gnu.org; Sun, 23 Oct 2005 16:55:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETmru-0006Oz-Bf for guile-devel@gnu.org; Sun, 23 Oct 2005 16:55:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETmrt-0006Ow-Qt for guile-devel@gnu.org; Sun, 23 Oct 2005 16:55:01 -0400 Original-Received: from [193.175.24.27] (helo=ilsa.franken.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ETmrt-0003CV-U4 for guile-devel@gnu.org; Sun, 23 Oct 2005 16:55:02 -0400 Original-Received: from [192.168.1.17] (p508F6C63.dip.t-dialin.net [80.143.108.99]) by ilsa.franken.de (Postfix) with ESMTP id 1B173245D0; Sun, 23 Oct 2005 22:54:58 +0200 (CEST) (KNF account authenticated via SMTP-AUTH) In-Reply-To: <877jc4rnyf.fsf@uni-dortmund.de> Original-To: Marius Vollmer X-Mailer: Apple Mail (2.623) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5346 Archived-At: Hi Marius, see my comments in-line. Best regards Michael On Oct 23, 2005, at 22:13 Uhr, Marius Vollmer wrote: > Michael Tuexen writes: > >> eval.c:2658: error: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' >> undeclared here (not in a function) >> >> Any idea, how to fix that? I'm trying to compile it on Mac OS X >> 10.3.9. > > Hmm. PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP seems not to be portable > enough. (I know that the _NP suffix means 'non-portable'...) > > I guess the most portable way to get recursive mutexes is to use > pthread_mutex_init together with pthread_mutexattr_settype with > PTHREAD_MUTEX_RECURSIVE, which is defined in UNIX98. That sounds good. PTHREAD_MUTEX_RECURSIVE is defined on my system. > > I will make this change and let you know when it is done. Thank you very much. > > In the mean time, could you try to configure with --without-threads? Done. Same result. Line 2658 of eval.c is not ifdefed, I think. So it is always compiled in. > With that option, guile should make no reference to pthread things. Does not work, I think. And would not help... I'm trying 1.7.2, because I want to use pthreads... > > -- > GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 > _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel