Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#375 closed defect (fixed)

setup build problem - filemanip.cc

Reported by: warmerdam Owned by: steve
Priority: major Component: Installer
Version: Keywords:
Cc: jef

Description

I am seeing the following error when I try to build setup.exe on o4w.gdal.org in ~/build/setup. Any thoughts?

  CXX      filemanip.o
In file included from ntdll.h:25:0,
                 from filemanip.cc:32:
/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 win32.h:52,
                 from 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:860: recipe for target `filemanip.o' failed
make[2]: *** [filemanip.o] Error 1
make[2]: Leaving directory `/cygdrive/c/build/setup'
Makefile:905: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/build/setup'
Makefile:658: recipe for target `all' failed
make: *** [all] Error 2

Change History (4)

comment:1 by warmerdam, 11 years ago

Cc: jef added

comment:2 by steve, 11 years ago

Resolution: fixed
Status: newclosed

Frank

This error is strange you could fix this error changing ntapi.h temporaly, but it needs to fix in other way :

  • typedef PVOID PEXECUTION_STATE;

+ typedef PDWORD PEXECUTION_STATE;

in file /usr/i686-pc-mingw32/sys-root/mingw/include/ddk/ntapi.h . Probably mingw runtime has an error.

Steve

comment:3 by warmerdam, 11 years ago

thanks, that seems to have gotten me through the build.

Note: See TracTickets for help on using tickets.