winsup/cygwin/lib/getopt.c -mno-cygwin (solution?)

Christopher Faylor cgf@redhat.com
Fri Sep 21 17:07:00 GMT 2001


It just occurred to me that people who haven't been able to build
strace.exe may have an older Makefile that does not incorporate the
changes that I made to Makefile.in which add -I...mingw/include to
the mingw_getopt.o compilation.

I'm not sure how that could happen since my Makefile is regenerated
automatically if the Makefile.in is newer but it sure sounds like
this is the problem.

The __argv declarations should be coming from mingw's stdlib.h.  There
should be no way that this needs to declare this explicitly if the
right header file is being included.

Could whomever is having this problem try rebuilding with CVS sources?
Just:

      src=whereever-src/winsup
      bld=whereever-bld/winsup
      cd $src/cygwin/lib
      mv getopt.c getopt.c.saf
      cvs update

      cd $bld/utils
      rm Makefile, mingw_*, strace.exe
      ./config.status
      make strace.exe

cgf



More information about the Cygwin-patches mailing list