This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Can't build cygwin from CVS: configure error


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

$ export CVSROOT=:pserver:anoncvs@sources.redhat.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]