From owner-freebsd-questions Sun Jun 17 22: 3:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by hub.freebsd.org (Postfix) with ESMTP id BBA0037B401 for ; Sun, 17 Jun 2001 22:03:08 -0700 (PDT) (envelope-from ravindran.chandra@wipro.com) Received: from ecvwall11.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id f5IFMdj27071 for ; Mon, 18 Jun 2001 10:22:39 -0500 (GMT) Received: from ecvwall11.wipro.com ([192.168.181.23]) by ecmail.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GF40ML00.2CE for ; Mon, 18 Jun 2001 10:31:33 +0530 Received: from wipro.com ([192.168.205.203]) by platinum.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GF40NO00.B22 for ; Mon, 18 Jun 2001 10:32:12 +0530 Message-ID: <3B2D8D0E.28FF99D4@wipro.com> Date: Mon, 18 Jun 2001 10:39:39 +0530 From: "Ravi.C" Organization: Wipro Technologies - Global R&D X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Regarding pthread_mutex_init Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, We are calling pthread_mutex_init() function while writing gigabit ethernet device driver in FreeBSD 4.3. We are facing the following problem : Problem 1 : While doing make, In file /usr/src/include/pthread.h sched.h is not found. I figured out this file(sched.h) present in /usr/include/posix4 dir and copied the directory posix4 under /usr/src/include/posix4 and changed sched.h to posix4/sched.h. Then the make error went off. Problem 2: After doing the above dirty fix, when we try to load the driver using kldload, I am getting the following error : link_elf : symbol pthread_mutex_init undefined. Can anyone please tell me what is the problem? Thanks and Regards, Ravi.C To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message