Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2007 13:51:01 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        girish r <fmail_girish@yahoo.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: semaphore.h does'nt include fcntl.h ?
Message-ID:  <20070115195101.GJ46272@dan.emsphone.com>
In-Reply-To: <539649.30215.qm@web62010.mail.re1.yahoo.com>
References:  <539649.30215.qm@web62010.mail.re1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 15), girish r said:
> > You'll need to include "options P1003_1B_SEMAPHORES" in your kernel
> > config, or load the "sem" kernel module.
> > --Dan Nelson
>
> I could'nt find "sem" so I tried sysvsem.ko but I get:
> 
> kldload: can't load sysvsem: File exists
> 
> Does it mean that sysvsem support is already present
> in the kernel? I am using fbsd 6.2.

sysv semaphores are different from POSIX semaphores, so loading
sysvsem.ko won't help you here.  It looks like the "sem" module is
missing from /usr/src/sys/modules/Makefile, which explains why you
don't have it :)  You can build it manually though:

 cd /usr/src/sys/modules/sem 
 make obj && make depend && make && make install
 kldload sem

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070115195101.GJ46272>