delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/04/05/03:16:11

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: <20000405071501.75956.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: mingw using wrong errno definition
Date: Wed, 05 Apr 2000 00:15:00 PDT
Mime-Version: 1.0

In an attempt to build the cinstall source without using MSVC, I have
made the following minor changes to my local copy of the winsup source
from CVS. One corrects an obvious typo and the other was so I could
configure and build everything in one pass from the main directory
including the cinstall code.

Index: winsup/configure.in
===================================================================
RCS file: /cvs/src/src/winsup/configure.in,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 configure.in
60c60
< SUBDIRS="cygwin w32api mingw utils doc"
---
>SUBDIRS="cygwin w32api mingw utils doc cinstall"
Index: winsup/cinstall/Makefile.in
===================================================================
RCS file: /cvs/src/src/winsup/cinstall/Makefile.in,v
retrieving revision 1.2
diff -r1.2 Makefile.in
102c102
< zlib/zlibcygw.a: zlib/Makefile
---
>zlib/libzcygw.a: zlib/Makefile

The problem is I am getting the following errors trying to link
cinstall. I have also included the compile line for the offending file.

make[1]: Entering directory
`/home/rdparker/cygwin/obj/i686-pc-cygwin/winsup/cinstall/zlib'
gcc -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
rm -f libzcygw.a
ar cru libzcygw.a adler32.o compress.o crc32.o deflate.o gzio.o
infblock.o infcodes.o inffast.o inflate.o inftrees.o infutil.o trees.o
uncompr.o zutil.o
ranlib libzcygw.a
make[1]: Leaving directory
`/home/rdparker/cygwin/obj/i686-pc-cygwin/winsup/cinstall/zlib'
gcc -o setup.exe error.o memory.o setup.o strarry.o cinstall.o -g -O2
-mno-cygwin zlib/libzcygw.a -lole32 -lwininet -lnetapi32 -ladvapi32
-luuid
zlib/libzcygw.a(gzio.o): In function `gz_open':
/home/rdparker/cygwin/obj/i686-pc-cygwin/winsup/cinstall/zlib/../../../../../src/winsup/cinstall/zlib/gzio.c:155:
undefined reference to `__errno'
zlib/libzcygw.a(gzio.o): In function `get_byte':
/home/rdparker/cygwin/obj/i686-pc-cygwin/winsup/cinstall/zlib/../../../../../src/winsup/cinstall/zlib/gzio.c:241:
undefined reference to `__errno'
zlib/libzcygw.a(gzio.o): In function `destroy':
/home/rdparker/cygwin/obj/i686-pc-cygwin/winsup/cinstall/zlib/../../../../../src/winsup/cinstall/zlib/gzio.c:338:
undefined reference to `__errno'
zlib/libzcygw.a(gzio.o): In function `gzread':
/home/rdparker/cygwin/obj/i686-pc-cygwin/winsup/cinstall/zlib/../../../../../src/winsup/cinstall/zlib/gzio.c:399:
undefined reference to `__errno'
zlib/libzcygw.a(gzio.o): In function `gzerror':
/home/rdparker/cygwin/obj/i686-pc-cygwin/winsup/cinstall/zlib/../../../../../src/winsup/cinstall/zlib/gzio.c:865:
undefined reference to `__errno'
collect2: ld returned 1 exit status
gcc: file path prefix
`/home/rdparker/cygwin/obj/i686-pc-cygwin/winsup/mingw/' never used
make: *** [setup.exe] Error 1

It appears that despite the "-mno-cygwin
-I../../../../src/winsup/mingw/include" switches to gcc, it is still
picking up the standard cygwin definition of errno. I am too tired to
have a quick solution to this and I am not sure I would know the right
one if I were completely awake. Thought I might luck out and fine an
answer in my mailbox in the morning. :^)
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

- Raw text -


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