This is the mail archive of the cygwin@sources.redhat.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]

Re: Compiling Finger



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


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