delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/20/03:27:26

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <Sagar DOT Shah AT sid DOT cam DOT ac DOT uk>
To: Robert Collins <robert DOT collins AT itdomain DOT com DOT au>
cc: <cygwin AT sources DOT redhat DOT com>
Subject: Re: Compiling Finger
In-Reply-To: <014501c09ab5$ba043590$0200a8c0@lifelesswks>
Message-ID: <Pine.WNT.4.32.0102200812510.-441491@srs29.sid.cam.ac.uk>
X-X-Sender: srs29 AT imap DOT hermes DOT cam DOT ac DOT uk
MIME-Version: 1.0

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

- Raw text -


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