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: Building C-Kermit (6.0.192) with Cygwin 1.1


On Thu, Oct 05, 2000 at 10:48:59AM -0700, Jeff wrote:
>Which of the makefile targets work best?  I tried modifying the linux
>target, and get:
>
>administrator@MYBOX ~/kermit
>$ make cygwin
>Making C-Kermit "6.0.192" for Cygwin...
>make wermit "CC = gcc" "CC2 = gcc" \
>"CFLAGS = -O4 -DPOSIX -DDYNAMIC \
>-DBIGBUFOK -DTCPSOCKET -DMYCURSES -DCK_PCT_BAR \
>-DNOLATIN2 -DNOCYRIL -DNOHEBREW -DNODEBUG \
>-DNODIAL -DNOLISTEN " \
>"LNKFLAGS = -s " "LIBS = -ltermcap"
>make[1]: Entering directory `/home/kermit'
>gcc -O4 -DPOSIX -DDYNAMIC  -DBIGBUFOK -DTCPSOCKET -DMYCURSES -DCK_PCT_BAR  -DNOL
>ATIN2 -DNOCYRIL -DNOHEBREW -DNODEBUG  -DNODIAL -DNOLISTEN    -c -o ckutio.o ckut
>io.c
>ckutio.c: In function `in_chk':
>ckutio.c:6032: `u_long' undeclared (first use in this function)
>ckutio.c:6032: (Each undeclared identifier is reported only once
>ckutio.c:6032: for each function it appears in.)
>make[1]: *** [ckutio.o] Error 1
>make[1]: Leaving directory `/home/kermit'
>make: *** [cygwin] Error 2
>
>administrator@MYBOX ~/kermit
>$
>
>
>I think something in one or more of the Cygwin header files is
>unexpected.  This comment, at the top of ckutio, might explain things:
>
>
>#ifdef XENIX /* Was M_UNIX but XENIX implies M_UNIX and applies to XENIX too */
>/*
>  <sys/socket.h> included above via "ckcnet.h" defines FIONREAD as
>  something.  Due to this, in_chk() uses the FIONREAD instead of RDCHK
>  and the hot keys during file transfer (X to cancel file etc) do not
>  work because FIONREAD doesn't work even though it is defined.
>
>  NOTE: This might also be true elsewhere.
>*/
>#ifdef FIONREAD
>#undef FIONREAD
>#endif /* FIONREAD */
>#endif /* XENIX */

Why does this explain anything?  I don't see any hint of a "u_long" in this.
Cygwin defines u_long in /usr/include/sys/types.h just like most other
UNIX systems.

>On a completely different topic, which utility is it that translates the
>DOS path seperator ("\") to POSIX ("/") on the command line, so that a
>DOS app can pass a pathname to a Cygwin app?  Thanks for your help,

http://sources.redhat.com/cygwin/cygwin-ug-net/using.html#USING-PATHNAMES

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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