Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 20 Feb 2001 08:25:50 +0000 (GMT Standard Time) From: "Sagar R. Shah" To: Robert Collins cc: Subject: Re: Compiling Finger In-Reply-To: <014501c09ab5$ba043590$0200a8c0@lifelesswks> Message-ID: X-X-Sender: srs29 AT imap DOT hermes DOT cam DOT ac DOT uk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 20 Feb 2001, Robert Collins wrote: > Sagar, you cannot just copy header files from platform to platform. Robert, I know that, i didn't expect whatever was compilied to actually work as it should, I just wanted it to compile.... > Also are you building the finger client or the finger daemon? the client > And finally the error you get is probably useful information :] Well as I said initially it was complainig about a missing sys/acct.h Then when I used the BSD version of the file, the compilation proceeded and I got the following error: os.c: In function `utmp_to_packets': os.c:398: `S_IFCHR' undeclared (first use in this function) os.c:398: (Each undeclared identifier is reported only once os.c:398: for each function it appears in.) This didn't seem to have anything to do with the wreckless use of acct.h, so I continued my dodgy wreckless behaviour, found the instance of S_IFCHR (it only appeared once in the source, and killed it). Again this will probably produce a finger that doesn't work...but hey ;-) Then got: tty.c: In function `get_last_access': tty.c:96: `S_IFMT' undeclared (first use in this function) tty.c:96: (Each undeclared identifier is reported only once tty.c:96: for each function it appears in.) tty.c:96: `S_IFLNK' undeclared (first use in this function) more wrecklessness...and then finger.c: In function `call_finger': finger.c:234: warning: passing arg 1 of `gethostbyaddr' from incompatible pointer type gcc -O -o finger finger.o ../lib/libfinger.a ./../version.o ./../maildir.o -lc -lm ../lib/libfinger.a(error.o)(.text+0x226):error.c: undefined reference to `errno' ../lib/libfinger.a(error.o)(.text+0x22e):error.c: undefined reference to `errno' ../lib/libfinger.a(error.o)(.text+0x234):error.c: undefined reference to `sys_nerr' ../lib/libfinger.a(error.o)(.text+0x23d):error.c: undefined reference to `sys_errlist' ../lib/libfinger.a(os.o)(.text+0x9a):os.c: undefined reference to `errno' ../lib/libfinger.a(os.o)(.text+0xa3):os.c: undefined reference to `sys_errlist ah well ;-) I've never written any C before, so I doubted that I'd be able to figure out what was going on, so i decided to leave it.....but since you asked so nicely for the errors I pulled everything again and thus the above report. Obviously getting the finger client to work on cygwin isn't as straightforward as I'd hoped. Sagar -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple