winsup/cygwin/lib/getopt.c -mno-cygwin

Trevor Forbes trevorforbes@ozemail.com.au
Fri Sep 21 15:57:00 GMT 2001


Oh no ... a me too :-) However, I also get the same error which stops Cygwin
from building on W2K.

Earnie's patch at least allows Cygwin to build now and it pass all the
tests.....

               === winsup Summary ===
# of expected passes            179
# of expected failures          21

Trevor


----- Original Message -----
From: "Earnie Boyd" <earnie_boyd@yahoo.com>
To: <cygwin-patches@Cygwin.Com>
Sent: Saturday, September 22, 2001 7:14 AM
Subject: Re: winsup/cygwin/lib/getopt.c -mno-cygwin


> Christopher Faylor wrote:
> >
> > On Fri, Sep 21, 2001 at 04:22:32PM -0400, Earnie Boyd wrote:
> > >Christopher Faylor wrote:
> > >>
> > >> On Fri, Sep 21, 2001 at 02:56:00PM -0400, Earnie Boyd wrote:
> > >> >Did you try `strace -j'?  The valid options work the invalid option
> > >> >brings up Dr. Watson.
> > >>
> > >> Yes.  I tried using options that didn't exist since that is the
reason
> > >> for the _argv patch.
> > >>
> > >
> > >Strange!?  Differences between NT4 and W2K?  Should I apply the patch?
> >
> > I tried this on W2K and Windows 95.  It's odd that it would work on
> > both of those.
> >
> > I just tried a fresh rebuild from CVS.  It still works fine.  Odd.
> >
>
> You're saying you don't need the patch????!!  You're saying that you
> don't get:
>
> BoydE@DU211344 /prj/cygwin/rt/bld/i686-pc-cygwin/winsup/utils
> $ make
> gcc -L/prj/cygwin/rt/bld/i686-pc-cygwin/winsup
> -L/prj/cygwin/rt/bld/i686-pc-cygwin/winsup/cygwin
> -L/prj/cygwin/rt/bld/i686-pc-cygwin/winsup/w32api/lib -isystem
> /prj/cygwin/rt/src/winsup/include -isystem
> /prj/cygwin/rt/src/winsup/cygwin/include -isystem
> /prj/cygwin/rt/src/winsup/w32api/include -isystem
> /prj/cygwin/rt/src/newlib/libc/sys/cygwin -isystem
> /prj/cygwin/rt/src/newlib/libc/sys/cygwin32
> -B/prj/cygwin/rt/bld/i686-pc-cygwin/newlib/ -isystem
> /prj/cygwin/rt/bld/i686-pc-cygwin/newlib/targ-include -isystem
> /prj/cygwin/rt/src/newlib/libc/include -c -nostdinc   -O0 -g -Wall
> -Wwrite-strings   -I. -I/prj/cygwin/rt/src/winsup/cygwin/include
> -I/prj/cygwin/rt/src/winsup/cygwin
> -I/prj/cygwin/rt/src/newlib/libc/sys/cygwin
> -I/prj/cygwin/rt/src/newlib/libc/include
> -I/prj/cygwin/rt/src/winsup/w32api/include
> -I/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5//include -c -g -o
> ./mingw_getopt.o -mno-cygwin -I/prj/cygwin/rt/src/winsup/mingw/include
> -I/prj/cygwin/rt/src/winsup/cygwin/include
> -I/prj/cygwin/rt/src/winsup/w32api/include
> /prj/cygwin/rt/src/winsup/cygwin/lib/getopt.c
> /prj/cygwin/rt/src/winsup/cygwin/lib/getopt.c: In function `_vwarnx':
> /prj/cygwin/rt/src/winsup/cygwin/lib/getopt.c:114: `__argv' undeclared
> (first use in this function)
> /prj/cygwin/rt/src/winsup/cygwin/lib/getopt.c:114: (Each undeclared
> identifier is reported only once
> /prj/cygwin/rt/src/winsup/cygwin/lib/getopt.c:114: for each function it
> appears in.)
> make: *** [mingw_getopt.o] Error 1
>
> Earnie.
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>



More information about the Cygwin-patches mailing list