Hello,
I am trying to build setup.exe following instructions provided in
README file 
(http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/setup/README?cvsroot=cygwin-apps).

So, I
1. Install latest 32-bit Cygwin from http://cygwin.com/install.html on
Windows XP
2. Install all required packeges as described in README file
3. Configure (/path/to/setup/bootstrap.sh)
4. Run make and got the following error:

  CXX      Exception.o
  CXX      find.o
  CXX      FindVisitor.o
  CXX      filemanip.o
In file included from /home/kirill/setup/ntdll.h:25:0,
                 from /home/kirill/setup/filemanip.cc:31:
/usr/i686-pc-mingw32/sys-root/mingw/include/ddk/ntapi.h:49:15: error:
conflicting declaration 'typedef void* PEXECUTION_STATE'
In file included from
/usr/i686-pc-mingw32/sys-root/mingw/include/windows.h:62:0,
                 from /home/kirill/setup/win32.h:53,
                 from /home/kirill/setup/filemanip.cc:30:
/usr/i686-pc-mingw32/sys-root/mingw/include/winbase.h:1973:33: error:
'PEXECUTION_STATE' has a previous declaration as 'typedef DWORD*
PEXECUTION_STATE'
Makefile:908: recipe for target `filemanip.o' failed
make[2]: *** [filemanip.o] Error 1
make[2]: Leaving directory `/home/kirill/setup-build'
Makefile:953: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kirill/setup-build'
Makefile:711: recipe for target `all' failed
make: *** [all] Error 2

This is not a big deal to fix it - I am just change PEXECUTION_STATE
definition in ntapi.h file to PDWORD. And rerun the build from the
beginning:
1. remove all files from build directory
2. Configure (/path/to/setup/bootstrap.sh)
3. Run make and got the new error:

  CXX      window.o
  CXX      csu_util/MD5Sum.o
  CXX      csu_util/rfc1738.o
  CXX      csu_util/version_compare.o
  CC       regex/regex.o
In file included from /home/Kirill/setup/regex/regex.c:65:0:
/home/Kirill/setup/regex/regexec.c: In function 'set_regs':
/home/Kirill/setup/regex/regexec.c:1421:5: error: implicit declaration
of function 'alloca' [-Werror=implicit-function-declaration]
/home/Kirill/setup/regex/regexec.c:1421:37: error: incompatible
implicit declaration of built-in function 'alloca' [-Werror]
/home/Kirill/setup/regex/regexec.c: In function 'build_trtable':
/home/Kirill/setup/regex/regexec.c:3325:42: error: incompatible
implicit declaration of built-in function 'alloca' [-Werror]
cc1: all warnings being treated as errors
Makefile:884: recipe for target `regex/regex.o' failed
make[2]: *** [regex/regex.o] Error 1
make[2]: Выход из каталога `/home/Kirill/setup_build'
Makefile:953: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Выход из каталога `/home/Kirill/setup_build'
Makefile:711: recipe for target `all' failed
make: *** [all] Error 2


Could you please point me what I am doing wrong, and how this error
can be fixed?

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

Reply via email to