mingw using wrong errno definition

Ron Parker parkerrd@hotmail.com
Wed Apr 5 20:46:00 GMT 2000

First a little more information.  Yesterday I did _not_ make from the root 
directory. When I try to do a make from the root I get an error when 
cinstall tries to compile zlib.

-I. -I../../../../../src/winsup/cinstall/zlib  
-I../../../../../src/winsup/cinstall/zlib/..    -g -O2 -W -Wall -mno-c
ygwin -I../../../../src/winsup/mingw/include 
-I../../../../src/winsup/w32api/include -c 
Syntax error: word unexpected

Notice the missing '$'? I looked at the Makefile.in files yesterday and did 
not see an obvious reason for this. If I move down a level to winsup, I get 
past this error.  Then I get the __errno error.

>From: Chris Faylor <cgf@cygnus.com>

> >>Can you try doing a "make clean all" in the cinstall directory and see
> >>if that "fixes" things?

No luck. Same __errno error.

>If it doesn't, you're right that this is somehow picking up cygwin 
>Try doing a "gcc -v" on one of the source files to see where it thinks it
>is picking up includes.  You can also do a "gcc -E" to get the definitive

gcc -v -DPACKAGE=\"zlib\" -DVERSION=\"1.1.3\" -DHAVE_UNISTD_H=1 
_H=1  -I. -I../../../../../src/winsup/cinstall/zlib  
-I../../../../../src/winsup/cinstall/zlib/..    -g -O2 -W -Wall -mno-cygwin 
-I../../../../src/winsup/w32api/include -c 
Reading specs from /bin/../lib/gcc-lib/i686-pc-cygwin/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/bin/../lib/gcc-lib/i686-pc-cygwin/2.95.2/cpp.exe -lang-c -v -I. 
-I../../../../../src/winsup/cinstall/zlib -I../../../../../src/win
sup/cinstall/zlib/.. -I../../../../src/winsup/mingw/include 
-I../../../../src/winsup/w32api/include -iprefix 
/bin/../lib/gcc-lib/i686-pc-cygwin/2.95.2/ -D__GNUC__=2 -D__GNUC_MINOR__=95 
-Di386 -D_WIN32 -DWINNT -D_X86_=1 -D__STDC__=1 
-D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) 
-D__i386__ -D_WIN32 -D__WINNT__ -D_X86_=1 -D__STDC_
_=1 -D__stdcall=__attribute__((__stdcall__)) 
-D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) 
-D__i386 -D__WINNT -Asystem(winnt) -Acpu(i386) -Amachine(i386) 
-D__OPTIMIZE__ -g -W -Wall -remap -Acpu(i386) -Amachine(i386) -Di386 
-D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro 
-D__pentiumpro__ -iwithprefixbefore 
../../../../i686-pc-cygwin/include/mingw32 -D__MINGW32__=0.2 
-DHAVE_UNISTD_H=1 ../../../../../src/winsup/cinstall/zlib/gzio.c 
GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
/bin/../lib/gcc-lib/i686-pc-cygwin/2.95.2/cc1.exe G:\Cygwin1\/tmp/ccPxfhHL.i 
-quiet -dumpbase gzio.c -mno-cygwin -g -O2 -W -Wall -v
ersion -o G:\Cygwin1\/tmp/cckkcGXM.s
GNU C version 2.95.2 19991024 (release) (i686-pc-cygwin) compiled by GNU C 
version 2.95.2 19991024 (release).
-o gzio.o G:\Cygwin1\/tmp/cckkcGXM.s

>From the gcc -v output, it seems obvious that it is picking up the cygwin 
headers and not the mingw headers.  This is verified by gcc -E:

# 1 
1 3
# 1 
1 3

I don't know why. I am using the canned specs and everything else from the 
net preview.

And a separate question, when commit'ing a change to configure.in, do I also 
update the configure file itself?  I would assume so, but thought I should 
what ask the approved version of autoconf was before I overwrite a version 
31.415 file with a version 0.1a file. ;^)  I know as-yet-unreleased tools 
are frequently used on this project.

Thank you all for your patience.  I am a little out of my realm of expertice 
with some of these problems, but I learn very quickly.  It will be worth it 
in the long run as I broaden my understanding and am able to make further 
contributions to the cygwin project.
Get Your Private, Free Email at http://www.hotmail.com

More information about the Cygwin-developers mailing list