Hi,

Seems like there is a duplicate definition of TRANSACTION_ALL_ACCESS and
THREAD_INFORMATION_CLASS, found by one of the msys2 developers.

See attached log.
c++wrap -ggdb -pipe 
-fdebug-prefix-map=/work/build32/runtime-stable=/usr/src/debug/msys 
-fdebug-prefix-map=/work/Cygwin=/usr/src/debug/msys -O2 -g -fno-rtti 
-fno-exceptions -Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe 
-fbuiltin -fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -c -o 
arc4random.o /work/Cygwin/winsup/cygwin/libc/arc4random.cc
In file included from /work/Cygwin/winsup/cygwin/cygtls.h:279:0,
                 from ./globals.h:5,
                 from /work/Cygwin/winsup/cygwin/winsup.h:302,
                 from /work/Cygwin/winsup/cygwin/advapi32.cc:11:
/work/Cygwin/winsup/cygwin/ntdll.h:72:0: error: "TRANSACTION_ALL_ACCESS" 
redefined [-Werror]
In file included from /usr/include/w32api/minwindef.h:146:0,
                 from /usr/include/w32api/windef.h:8,
                 from /usr/include/w32api/windows.h:69,
                 from /work/Cygwin/winsup/cygwin/winlean.h:52,
                 from /work/Cygwin/winsup/cygwin/winsup.h:76,
                 from /work/Cygwin/winsup/cygwin/advapi32.cc:11:
/usr/include/w32api/winnt.h:8129:0: note: this is the location of the previous 
definition
In file included from /work/Cygwin/winsup/cygwin/cygtls.h:279:0,
                 from ./globals.h:5,
                 from /work/Cygwin/winsup/cygwin/winsup.h:302,
                 from /work/Cygwin/winsup/cygwin/lib/_cygwin_crt0_common.cc:12:
/work/Cygwin/winsup/cygwin/ntdll.h:72:0: error: "TRANSACTION_ALL_ACCESS" 
redefined [-Werror]
In file included from /usr/include/w32api/minwindef.h:146:0,
                 from /usr/include/w32api/windef.h:8,
                 from /usr/include/w32api/windows.h:69,
                 from /work/Cygwin/winsup/cygwin/winlean.h:52,
                 from /work/Cygwin/winsup/cygwin/winsup.h:76,
                 from /work/Cygwin/winsup/cygwin/lib/_cygwin_crt0_common.cc:12:
/usr/include/w32api/winnt.h:8129:0: note: this is the location of the previous 
definition
In file included from /work/Cygwin/winsup/cygwin/cygtls.h:279:0,
                 from ./globals.h:5,
                 from /work/Cygwin/winsup/cygwin/winsup.h:302,
                 from /work/Cygwin/winsup/cygwin/libc/arc4random.cc:36:
/work/Cygwin/winsup/cygwin/ntdll.h:72:0: error: "TRANSACTION_ALL_ACCESS" 
redefined [-Werror]
In file included from /usr/include/w32api/minwindef.h:146:0,
                 from /usr/include/w32api/windef.h:8,
                 from /usr/include/w32api/windows.h:69,
                 from /work/Cygwin/winsup/cygwin/winlean.h:52,
                 from /work/Cygwin/winsup/cygwin/winsup.h:76,
                 from /work/Cygwin/winsup/cygwin/libc/arc4random.cc:36:
/usr/include/w32api/winnt.h:8129:0: note: this is the location of the previous 
definition
In file included from /work/Cygwin/winsup/cygwin/cygtls.h:279:0,
                 from ./globals.h:5,
                 from /work/Cygwin/winsup/cygwin/winsup.h:302,
                 from /work/Cygwin/winsup/cygwin/advapi32.cc:11:
/work/Cygwin/winsup/cygwin/ntdll.h:1117:14: error: multiple definition of 
‘enum _THREAD_INFORMATION_CLASS’
In file included from /work/Cygwin/winsup/cygwin/winbase.h:9:0,
                 from /usr/include/w32api/windows.h:70,
                 from /work/Cygwin/winsup/cygwin/winlean.h:52,
                 from /work/Cygwin/winsup/cygwin/winsup.h:76,
                 from /work/Cygwin/winsup/cygwin/advapi32.cc:11:
/usr/include/w32api/winbase.h:1160:16: error: previous definition here
In file included from /work/Cygwin/winsup/cygwin/cygtls.h:279:0,
                 from ./globals.h:5,
                 from /work/Cygwin/winsup/cygwin/winsup.h:302,
                 from /work/Cygwin/winsup/cygwin/advapi32.cc:11:
/work/Cygwin/winsup/cygwin/ntdll.h:1122:27: error: invalid type in declaration 
before ‘,’ token
/work/Cygwin/winsup/cygwin/ntdll.h:1122:27: error: conflicting declaration 
‘typedef int THREAD_INFORMATION_CLASS’
In file included from /work/Cygwin/winsup/cygwin/winbase.h:9:0,
                 from /usr/include/w32api/windows.h:70,
                 from /work/Cygwin/winsup/cygwin/winlean.h:52,
                 from /work/Cygwin/winsup/cygwin/winsup.h:76,
                 from /work/Cygwin/winsup/cygwin/advapi32.cc:11:
/usr/include/w32api/winbase.h:1164:5: error: ‘THREAD_INFORMATION_CLASS’ has 
a previous declaration as ‘typedef enum _THREAD_INFORMATION_CLASS 
THREAD_INFORMATION_CLASS’
/work/Cygwin/winsup/cygwin/advapi32.cc: In function ‘WINBOOL 
RevertToSelf()’:
/work/Cygwin/winsup/cygwin/advapi32.cc:31:10: error: 
‘ThreadImpersonationToken’ was not declared in this scope
/work/Cygwin/winsup/cygwin/advapi32.cc: In function ‘WINBOOL 
ImpersonateLoggedOnUser(HANDLE)’:
/work/Cygwin/winsup/cygwin/advapi32.cc:84:56: error: 
‘ThreadImpersonationToken’ was not declared in this scope
cc1plus: all warnings being treated as errors
/work/Cygwin/winsup/cygwin/../Makefile.common:43: recipe for target 
'advapi32.o' failed
make[3]: *** [advapi32.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /work/Cygwin/winsup/cygwin/cygtls.h:279:0,
                 from ./globals.h:5,
                 from /work/Cygwin/winsup/cygwin/winsup.h:302,
                 from /work/Cygwin/winsup/cygwin/libc/arc4random.cc:36:
/work/Cygwin/winsup/cygwin/ntdll.h:1117:14: error: multiple definition of 
‘enum _THREAD_INFORMATION_CLASS’
In file included from /work/Cygwin/winsup/cygwin/winbase.h:9:0,
                 from /usr/include/w32api/windows.h:70,
                 from /work/Cygwin/winsup/cygwin/winlean.h:52,
                 from /work/Cygwin/winsup/cygwin/winsup.h:76,
                 from /work/Cygwin/winsup/cygwin/libc/arc4random.cc:36:
/usr/include/w32api/winbase.h:1160:16: error: previous definition here
In file included from /work/Cygwin/winsup/cygwin/cygtls.h:279:0,
                 from ./globals.h:5,
                 from /work/Cygwin/winsup/cygwin/winsup.h:302,
                 from /work/Cygwin/winsup/cygwin/libc/arc4random.cc:36:
/work/Cygwin/winsup/cygwin/ntdll.h:1122:27: error: invalid type in declaration 
before ‘,’ token
/work/Cygwin/winsup/cygwin/ntdll.h:1122:27: error: conflicting declaration 
‘typedef int THREAD_INFORMATION_CLASS’
In file included from /work/Cygwin/winsup/cygwin/winbase.h:9:0,
                 from /usr/include/w32api/windows.h:70,
                 from /work/Cygwin/winsup/cygwin/winlean.h:52,
                 from /work/Cygwin/winsup/cygwin/winsup.h:76,
                 from /work/Cygwin/winsup/cygwin/libc/arc4random.cc:36:
/usr/include/w32api/winbase.h:1164:5: error: ‘THREAD_INFORMATION_CLASS’ has 
a previous declaration as ‘typedef enum _THREAD_INFORMATION_CLASS 
THREAD_INFORMATION_CLASS’
In file included from /work/Cygwin/winsup/cygwin/cygtls.h:279:0,
                 from ./globals.h:5,
                 from /work/Cygwin/winsup/cygwin/winsup.h:302,
                 from /work/Cygwin/winsup/cygwin/lib/_cygwin_crt0_common.cc:12:
/work/Cygwin/winsup/cygwin/ntdll.h:1117:14: error: multiple definition of 
‘enum _THREAD_INFORMATION_CLASS’
In file included from /work/Cygwin/winsup/cygwin/winbase.h:9:0,
                 from /usr/include/w32api/windows.h:70,
                 from /work/Cygwin/winsup/cygwin/winlean.h:52,
                 from /work/Cygwin/winsup/cygwin/winsup.h:76,
                 from /work/Cygwin/winsup/cygwin/lib/_cygwin_crt0_common.cc:12:
/usr/include/w32api/winbase.h:1160:16: error: previous definition here
In file included from /work/Cygwin/winsup/cygwin/cygtls.h:279:0,
                 from ./globals.h:5,
                 from /work/Cygwin/winsup/cygwin/winsup.h:302,
                 from /work/Cygwin/winsup/cygwin/lib/_cygwin_crt0_common.cc:12:
/work/Cygwin/winsup/cygwin/ntdll.h:1122:27: error: invalid type in declaration 
before ‘,’ token
/work/Cygwin/winsup/cygwin/ntdll.h:1122:27: error: conflicting declaration 
‘typedef int THREAD_INFORMATION_CLASS’
In file included from /work/Cygwin/winsup/cygwin/winbase.h:9:0,
                 from /usr/include/w32api/windows.h:70,
                 from /work/Cygwin/winsup/cygwin/winlean.h:52,
                 from /work/Cygwin/winsup/cygwin/winsup.h:76,
                 from /work/Cygwin/winsup/cygwin/lib/_cygwin_crt0_common.cc:12:
/usr/include/w32api/winbase.h:1164:5: error: ‘THREAD_INFORMATION_CLASS’ has 
a previous declaration as ‘typedef enum _THREAD_INFORMATION_CLASS 
THREAD_INFORMATION_CLASS’
cc1plus: all warnings being treated as errors
cc1plus: all warnings being treated as errors
/work/Cygwin/winsup/cygwin/../Makefile.common:43: recipe for target 
'_cygwin_crt0_common.o' failed
make[3]: *** [_cygwin_crt0_common.o] Error 1
/work/Cygwin/winsup/cygwin/../Makefile.common:43: recipe for target 
'arc4random.o' failed
make[3]: *** [arc4random.o] Error 1
make[3]: Leaving directory 
'/work/build32/runtime-stable/i686-pc-msys/winsup/cygwin'
Makefile:82: recipe for target 'cygwin' failed
make[2]: *** [cygwin] Error 1

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to