delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/04/05/23:47:20

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <20000406034603.69735.qmail@hotmail.com>
X-Originating-IP: [24.31.247.41]
From: "Ron Parker" <parkerrd AT hotmail DOT com>
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: mingw using wrong errno definition
Date: Wed, 05 Apr 2000 20:46:03 PDT
Mime-Version: 1.0

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.

(CC_FOR_TARGET) -DPACKAGE=\"zlib\" -DVERSION=\"1.1.3\" -DHAVE_UNISTD_H=1 
-DHAVE_GETPAGESIZE=1 -DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -DHAVE_UNISTD_H=1  
-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 
../../../../../src/winsup/cinstall/zlib/gzio.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 AT cygnus DOT 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 
>includes.
>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
>answer.

gcc -v -DPACKAGE=\"zlib\" -DVERSION=\"1.1.3\" -DHAVE_UNISTD_H=1 
-DHAVE_GETPAGESIZE=1 -DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -DHAVE_UNISTD
_H=1  -I. -I../../../../../src/winsup/cinstall/zlib  
-I../../../../../src/winsup/cinstall/zlib/..    -g -O2 -W -Wall -mno-cygwin 
-I../../../../src/winsup/mingw/include 
-I../../../../src/winsup/w32api/include -c 
../../../../../src/winsup/cinstall/zlib/gzio.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__stdcall=__attribute__((__stdcall__)) 
-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 
-DPACKAGE="zlib" -DVERSION="1.1.3" -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 
-DHAVE_MEMCPY=1 -DHAVE_STRERROR=1
-DHAVE_UNISTD_H=1 ../../../../../src/winsup/cinstall/zlib/gzio.c 
G:\Cygwin1\/tmp/ccPxfhHL.i
GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
.
../../../../../src/winsup/cinstall/zlib
../../../../../src/winsup/cinstall/zlib/..
/bin/../lib/gcc-lib/i686-pc-cygwin/2.95.2/include
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../i686-pc-cygwin/include
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3
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).
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../i686-pc-cygwin/bin/as.exe 
-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 
"/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../i686-pc-cygwin/include/errno.h" 
1 3
# 1 
"/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../i686-pc-cygwin/include/sys/errno.h" 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019