From owner-freebsd-questions Tue May 13 10:12:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA00170 for questions-outgoing; Tue, 13 May 1997 10:12:03 -0700 (PDT) Received: from d2si.com (macbeth.d2si.com [206.8.31.2]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA00151 for ; Tue, 13 May 1997 10:11:58 -0700 (PDT) Received: (from alec@localhost) by d2si.com (8.8.5/8.8.5) id MAA03295; Tue, 13 May 1997 12:11:40 -0500 (CDT) From: Alec Kloss Message-Id: <199705131711.MAA03295@d2si.com> Subject: Re: C compilation errors In-Reply-To: from Bill Grunfelder at "May 13, 97 12:15:52 pm" To: wjgrun@outland.cyberwar.com (Bill Grunfelder) Date: Tue, 13 May 1997 12:11:40 -0500 (CDT) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 > To: freebsd-questions@FreeBSD.ORG > Subject: C compilation errors > Message-ID: > 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.