Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jun 2001 17:45:57 +0200
From:      "Vahe Khachikyan" <vahe@fh-konstanz.de>
To:        "Ravi.C" <ravindran.chandra@wipro.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Regarding pthread_mutex_init
Message-ID:  <001f01c1017b$c1ab9fe0$7c45fea9@vvl10>
References:  <3B2D8D0E.28FF99D4@wipro.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <ravindran.chandra@wipro.com>
To: <freebsd-questions@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001f01c1017b$c1ab9fe0$7c45fea9>