Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "Bill McCormick" To: "Cygwin" Subject: flockcyg Date: Sun, 17 Aug 2003 15:21:55 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Note-from-DJ: This may be spam 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/