Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 1997 12:11:40 -0500 (CDT)
From:      Alec Kloss <alec@d2si.com>
To:        wjgrun@outland.cyberwar.com (Bill Grunfelder)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: C compilation errors
Message-ID:  <199705131711.MAA03295@d2si.com>
In-Reply-To: <Pine.BSF.3.95q.970513115918.24021A-100000@outland.cyberwar.com> from Bill Grunfelder at "May 13, 97 12:15:52 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Bill Grunfelder is responsible for:
> From owner-freebsd-questions@FreeBSD.ORG Tue May 13 11:58:38 1997
> Date: Tue, 13 May 1997 12:15:52 -0400 (EDT)
> From: Bill Grunfelder <wjgrun@outland.cyberwar.com>
> To: freebsd-questions@FreeBSD.ORG
> Subject: C compilation errors
> Message-ID: <Pine.BSF.3.95q.970513115918.24021A-100000@outland.cyberwar.com>
> Sender: owner-questions@FreeBSD.ORG
> X-Loop: FreeBSD.org
> Precedence: bulk

> 
> Can someone tell me (or point me in the right direction as to) what
> (packages/ports/libraries/whatever) I'm missing that would result in
> these errors when trying to compile a C program?
> 
> m.c: In function `lockfile':
> m.c:113: `F_LOCK' undeclared (first use this function)
> m.c:113: (Each undeclared identifier is reported only once
> m.c:113: for each function it appears in.)
> m.c: In function `unlockfile':
> m.c:204: `F_ULOCK' undeclared (first use this function)
> 
> This is on a newly installed FreeBSD 2.2.1-RELEASE system.  Also, does
> anyone have a port of req/tkreq - I didn't see one in the ports
> collection.  Thanks,
> 
> Bill
> .......................................................................
> Bill Grunfelder                                    System Administrator
> 
> -The above does not necessarily coincide with the views of my employer-
> 

Well, whatever it is that you are missing, I don't seem to it either,
on a 2.2.1 system.  I'd guess that they are symbolic constants for
some old record locking scheme that POSIX.1 has replaced.  I'd guess
you'll have to go into the source and figure out what it's doing, and
fix it up to use fcntl() and it's constants F_GETLK, F_SETLK, etc.




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