From owner-freebsd-questions Sat Jun 30 8:43:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from suntana.fh-konstanz.de (suntana.fh-konstanz.de [141.37.9.230]) by hub.freebsd.org (Postfix) with ESMTP id 6E33D37B848 for ; Sat, 30 Jun 2001 08:41:52 -0700 (PDT) (envelope-from vahe@fh-konstanz.de) Received: from vvl10 (vvl10.fh-konstanz.de [141.37.112.110]) by suntana.fh-konstanz.de (8.9.3+Sun/8.9.3) with SMTP id RAA16743; Sat, 30 Jun 2001 17:41:33 +0200 (MET DST) Message-ID: <001f01c1017b$c1ab9fe0$7c45fea9@vvl10> From: "Vahe Khachikyan" To: "Ravi.C" , References: <3B2D8D0E.28FF99D4@wipro.com> Subject: Re: Regarding pthread_mutex_init Date: Sat, 30 Jun 2001 17:45:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 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 Sorry for late answer but I was out of home for a while. I can't tell you anything about problem 1. But about problem 2 I have just a question . You have "-pthread" flags in your gcc's command line ?! Linker on FreBSD links against libc_r instead of libc when you use this flag . At the moment no other ideas ;-(( -- Vahe --- ----- Original Message ----- From: "Ravi.C" To: Sent: Monday, June 18, 2001 7:09 AM Subject: Regarding pthread_mutex_init > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message