This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]