From owner-freebsd-questions Thu Sep 3 15:42:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA09416 for freebsd-questions-outgoing; Thu, 3 Sep 1998 15:42:10 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from helmholtz.salk.edu (helmholtz.salk.edu [198.202.70.34]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA09338 for ; Thu, 3 Sep 1998 15:41:58 -0700 (PDT) (envelope-from bartol@salk.edu) Received: from cole.salk.edu (cole [198.202.70.113]) by helmholtz.salk.edu (8.7.5/8.7.3) with SMTP id PAA23250; Thu, 3 Sep 1998 15:35:52 -0700 (PDT) Date: Thu, 3 Sep 1998 15:35:50 -0700 (PDT) From: Tom Bartol To: "Daniel M. Eischen" cc: freebsd-questions@FreeBSD.ORG Subject: Re: pthread_attr_setscope missing from libc_r ??? In-Reply-To: <199809032155.QAA29128@iworks.interworks.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks! I'm trying this now. VTK is trying to set it to PTHREAD_SCOPE_SYSTEM but hopefully it won't break anything to comment out the code. I'll find out shortly... Tom On Thu, 3 Sep 1998, Daniel M. Eischen wrote: > > > I'm trying to compile VTK (a multithreaded viz tool kit) but I'm getting > > the following error in the final link step: > > > > vtkMultiThreader.o: Undefined symbol `_pthread_attr_setscope' referenced > > from text segment > > Just comment out the code that calls pthread_attr_setscope in VTK. > FreeBSD doesn't have it yet, and until kernel threads come, it'll > always be PTHREAD_SCOPE_PROCESS anyways. > > > which seems to suggest that I'm missing the pthread_attr_setscope > > function. The function should exist according to the pthread(3) man page. > > Well, it's defintely not implemented yet, but it would be simple > enough to add to libc_r. Trying to set it to PTHREAD_SCOPE_SYSTEM > would return EINVAL until kernel threads come. > > Dan Eischen > deischen@iworks.InterWorks.org > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message