English version Russian version Version française Nederlandse versie Versión española Version portuguese Version polonaise Italian version Versiunea româna   KiTTY News

KiTTY : Forum

Last modification : -

KiTTY web site




Forum Home
 

Build fails with 0.70.0.1

Ales - Mon 18/09/2017 13:09:49 CEST +0200

Building Kitty 0.70.0.1 fails with MinGW-w64 on Windows 10, Mingw on Windows 10, Visual Studio 2015 and 2017 on Windows 10 as well as mingw32 and mingw64 on RHEL 7.4.

What is the tried and tested build environment for the source from the svn reposiroty?

Cyd - Mon 18/09/2017 13:13:20 CEST +0200

KiTTY is built under MinGW32 on Windows 10.

Ales - Mon 18/09/2017 14:21:28 CEST +0200

Using the latest MinGW32 with MSYS installed with the MinGW Installation manager, upon following the build instructions(https://www.9bis.net/kitty/?page=How+to+compile) I get the error:

$ make -f MAKEFILE.MINGW putty.exe
gcc -Wall -O2 -D_WINDOWS -DWIN32S_COMPAT -DFDJ1 -DUSE_CAPI -DCOVERITY -DPERSOPORT -DCYGTERMPORT -DIMAGEPORT -DRECONNECTPORT -DHYPERLINKPORT -DZMODEMPORT -DSTARTBUTTON -DLAUNCHERPORT -DSAVEDUMPPORT -DKEYMAPPINGPORT -DWINCRYPTPORT -DTUTTYPORT -DPORTKNOCKINGPORT -DPUTTYXPORT -DWTSPORT -DPRINTCLIPPORT -DRUTTYPORT -DADBPORT -D_NO_OLDNAMES -DNO_MULTIMON -DNO_HTMLHELP -I.././ -I../../ -I../charset/ -I../windows/ -I../unix/ -I../mac/ -I../macosx -I../../base64 -I../../bcrypt -I../../md5 -I../../regex -I../../url -I../../wincrypt -I../../rutty -D_WIN32_IE=0x0500 -DWINVER=0x0501 -D_WIN32_WINDOWS=0x0410 -D_WIN32_WINNT=0x0501 -c ../aqsync.c
In file included from d:\mingw\include\windows.h:48:0,
     from d:\mingw\include\winsock2.h:22,
     from ../windows/winstuff.h:9,
     from ../puttyps.h:10,
     from ../putty.h:26,
     from ../aqsync.c:12:
d:\mingw\include\winuser.h:3920:47: error: unknown type name 'PTITLEBARINFO'
    WINUSERAPI BOOL WINAPI GetTitleBarInfo (HWND, PTITLEBARINFO);
     ~~~~~~~~~~~~
In file included from ../aqsync.c:12:0:
../putty.h:36:29: warning: 'AddDllDirectory' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
    DLL_DIRECTORY_COOKIE WINAPI AddDllDirectory( PCWSTR NewDirectory );
     ~~~~~~~~~~~~~~
make: *** [aqsync.o] Error 1

Is there anything I'm missing?

Ales - Tue 19/09/2017 10:38:19 CEST +0200

It seems to be a bug in MinGW's winuser.h file.

The GetTitleBarInfo (HWND, PTITLEBARINFO) function declaration is above the tagTITLEBARINFO struct declaration.
Moving the function declaration below the struct declaration in the winuser.h file solves this error.




Answer


The forum is actually closed