www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/17/16:34:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [24.34.177.222]
X-Originating-Email: [mgainty AT hotmail DOT com]
From: "Martin Gainty" <mgainty AT hotmail DOT com>
To: <wpmccormick AT covad DOT net>, "Cygwin" <cygwin AT cygwin DOT com>
References: <NDBBLLFMLFMANIDPNADCAEJJFEAA DOT wpmccormick AT covad DOT net>
Subject: Re: flockcyg
Date: Sun, 17 Aug 2003 16:34:42 -0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Message-ID: <Law10-OE66wvnLXLEZr0001231d@hotmail.com>
X-OriginalArrivalTime: 17 Aug 2003 20:34:32.0113 (UTC) FILETIME=[F6C5BA10:01C364FE]

From what I read it is supposed to be undefined
e.g.
#ifndef LOCK_H
  #define LOCK_H
#endif

Hth,
Martin
----- Original Message -----
From: "Bill McCormick" <wpmccormick AT covad DOT net>
To: "Cygwin" <cygwin AT cygwin DOT com>
Sent: Sunday, August 17, 2003 1:21 PM
Subject: flockcyg


> Hello,
>
> I'm trying to compile a program that has:
>
> #ifdef HAVE_FLOCK
>     (void) flock(fd,LOCK_EX);
> #else
>     lseek(fd,0L,0);
>     (void) lockf(fd,F_LOCK,0L);
> #endif
>
> I include flockcyg.h in the program and specify -I/usr/include/c-client/
in
> the Makefile. I assume this function can be found in /lib/libc-client.a an
I
> try to link that in.
>
> So that got me past the following problem:
>
> parse.c: In function `SetLock':
> parse.c:1090: warning: implicit declaration of function `flock'
> parse.c:1090: `LOCK_EX' undeclared (first use in this function)
> parse.c:1090: (Each undeclared identifier is reported only once
> parse.c:1090: for each function it appears in.)
> parse.c: In function `UnsetLock':
> parse.c:1102: `LOCK_UN' undeclared (first use in this function)
> make: *** [parse.o] Error 1
>
> But now I get ~100 linker errors like:
>
> /lib/libc-client.a(osdep.o)(.text+0x1c6): In function `fatal':
> /home/Abe/sources/deployment/imap/uw-imap-2002d-2/c-client/ftl_unix.c:28:
> undefined reference to `_mm_fatal'
> /lib/libc-client.a(osdep.o)(.text+0x6c0): In function `auth_md5_client':
> /home/Abe/sources/deployment/imap/uw-imap-2002d-2/c-client/auth_md5.c:99:
> undefined reference to `_mm_login'
> /
>
> So I guessed wrong and this appears to be a lib for uw-imap.
>
> Rebaseall did not help. Googling for flockcyg did not turn anything up
> either.
>
> Any ideas, help, etc ... ?
>
>
> Bill
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019