This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
flockcyg
- From: "Bill McCormick" <wpmccormick at covad dot net>
- To: "Cygwin" <cygwin at cygwin dot com>
- Date: Sun, 17 Aug 2003 15:21:55 -0500
- Subject: flockcyg
- Reply-to: <wpmccormick at covad dot net>
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/