From owner-freebsd-questions Thu Sep 3 14:49:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA29155 for freebsd-questions-outgoing; Thu, 3 Sep 1998 14:49:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from iworks.interworks.org (iworks.interworks.org [128.255.18.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA29139 for ; Thu, 3 Sep 1998 14:49:55 -0700 (PDT) (envelope-from deischen@iworks.interworks.org) Received: (from deischen@localhost) by iworks.interworks.org (8.8.7/8.8.7) id QAA29128; Thu, 3 Sep 1998 16:55:06 -0500 (CDT) Date: Thu, 3 Sep 1998 16:55:06 -0500 (CDT) From: "Daniel M. Eischen" Message-Id: <199809032155.QAA29128@iworks.interworks.org> To: bartol@salk.edu Subject: Re: pthread_attr_setscope missing from libc_r ??? Cc: freebsd-questions@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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