delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/10/16:19:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Hannu E K Nevalainen" <garbage_collector AT telia DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Can't build cygwin from CVS: configure error
Date: Fri, 10 Oct 2003 22:19:10 +0200
Message-ID: <NGBBLLIAMFLGJEOAJCCEAECCDFAA.garbage_collector@telia.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <NGBBLLIAMFLGJEOAJCCEOEBPDFAA.garbage_collector@telia.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

 Building the cvs version of the cygwin dll "OOTB" seems to be a no-no
currently.

$ export CVSROOT=:pserver:anoncvs AT sources DOT redhat DOT com:/cvs/src
$ cvs login
passwd: anoncvs
$ cvs -z3 co winsup

To get the cvs /src level stuff (configure among other things) I did
$ cvs -z3 co .

and then hit CTRL-C when it had arrived... (I guess there is a better way,
but I didn't bother tonight)

I'm using this script (extracted/converted from the FAQ) to attempt the
cygwin1.dll build.
---
#!/bin/bash

echo -e "\n*** configure ***\n"
../configure --prefix=/install --enable-debug -v 2>&1 | tee configure.log

echo -e "\n*** make ***\n"
make 2>&1 | tee make.log

# echo -e "\n*** install ***\n"
# make install 2>&1 | tee install.log
---

/src/src contains winsup/, newlib/, libiberty/ among other things e.g.
Makefile and configure.

In using the script above, with a /src/src/build as *current* directory, the
make phase stops as shown below.

...
make[2]: Entering directory `/src/src/build/i686-pc-cygwin/winsup/mingw'
gcc -L/src/src/build/i686-pc-cygwin/winsup -L/src/src/build/i686-pc-cygwin/w
insup/cygwin -L/src/src/build/i686-pc-cygwin/winsup/w32api/lib -isystem
/src/src/winsup/include -isystem /src/src/winsup/cygwin/include -isystem
/src/src/winsup/w32api/include -B/src/src/build/i686-pc-cygwin/newlib/ -isys
tem /src/src/build/i686-pc-cygwin/newlib/targ-include -isystem
/src/src/newlib/libc/include -c -D__CRTDLL__ -U__MSVCRT__ -O2 -g -O2 -I
../../../../winsup/mingw/../w32api/include -I../../../../winsup/mingw/includ
e -I../../../../winsup/mingw/../include -nostdinc -nostdinc++ -iwithprefixbe
fore include -mno-cygwin ../../../../winsup/mingw/crt1.c -o crt1.o
In file included from ../../../../winsup/mingw/include/io.h:40,
                 from ../../../../winsup/mingw/crt1.c:36:
../../../../winsup/mingw/include/sys/types.h:119: error: syntax error before
"_ssize_t"
../../../../winsup/mingw/include/sys/types.h:119: warning: useless keyword
or type name in empty declaration
../../../../winsup/mingw/include/sys/types.h:119: warning: empty declaration
make[2]: *** [crt1.o] Error 1
make[2]: Leaving directory `/src/src/build/i686-pc-cygwin/winsup/mingw'
make[1]: *** [mingw] Error 1
make[1]: Leaving directory `/src/src/build/i686-pc-cygwin/winsup'
make: *** [all-target-winsup] Error 2

--

$ tail +114 /src/src/winsup/mingw/include/sys/types.h
#ifndef _SSIZE_T_
#define _SSIZE_T_
typedef long _ssize_t;

#ifndef _NO_OLDNAMES
typedef ssize_t _ssize_t;
#endif
#endif /* Not _SSIZE_T_ */

#endif  /* Not __STRICT_ANSI__ */

#endif  /* Not RC_INVOKED */

#endif  /* Not _TYPES_H_ */
- EOF -

I think line 119 should be
	typedef _ssize_t ssize_t;
instead. A typo I guess.

At least this has make accept it ;-P

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE--


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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