[X2Go-Dev] Bug#642: Changes in X2Go Client for Windows to enable it conform to Visual Studio's stricter type checking

Michael DePaulo mikedep333 at gmail.com
Wed Dec 3 06:27:45 CET 2014


Hi George, see below

On Tue, Dec 2, 2014 at 6:48 PM, George Trakatelis <trakatelis at uom.edu.gr> wrote:
>
> Hi Michael,
>
> I built x2goclient 4.0.3.0 with MSVC2010's nmake.
> Unfortunately couldn't do so with Visual Studio 2010 IDE.
>
> > I have made a lot of progress, but I am having trouble finding a build
> > of libssh that includes the .lib file(s), and that is new enough. I
> > think the .lib file(s) are specific to MSVC.
>
> I attach a release build of libssh 0.6.3 (please rename .doc to .zip).
> The sources are from libssh-0.6.3-762055b-pageant-support-mingw482.src.zip
> with a minor patch to enable libssh compile under MSVC2010.
>
Please share that patch. When I try to "generate" the VS2010 project
files under CMake 3.0.2, I get these 2 errors:

You have called ADD_LIBRARY for library ssh_threads_shared without any
source files. This typically indicates a problem with your
CMakeLists.txt file

CMake Error: CMake can not determine linker language for target:
ssh_threads_shared

I've attached the log from CMake.

> > The 0.5.0 win32 build that includes the .lib file appears to be too old
>
> I'm not aware of the build you are referring to.
>
It doesn't matter anymore, but I was referring to this:
http://www.libssh.org/files/win32/0.5/
Which is linked to from here:
http://www.libssh.org/get-it/

> > I get this error during compile:
> > .\sshmasterconnection.cpp(297) : error C3861:
> > 'ssh_channel_accept_forward': identifier not found
>
> That seems to be a missing function declaration from libssh.h.
> Apparently, something like
> ...
> LIBSSH_API ssh_channel ssh_channel_accept_forward(ssh_session session, int
> timeout_ms, int *destination_port);
> ...
> is missing.
>
It sounds like libssh 0.5 is too old. Let's not worry about it since
we have 0.6.3 working.

>
> Please let me know if the attached ssh.lib (for compiling) and ssh.dll (for
> runtime) are ok.
>
They work :) I had to copy over the .h files,  but that took me
minimal time. Please share the aforementioned patch though.

> George

I committed an update to the x2goclient changelog. This bug should be
marked as fixed based on that commit.

Also, I am keeping rough notes on how to compile X2Go Client under VS2010 here:
https://docs.google.com/spreadsheets/d/1F5cVkCesXzTlo4oDJrGTdVFB074kkY-5q5-hgJUiXr4/edit?usp=sharing

Think of that as the delta against the MinGW instructions:
http://wiki.x2go.org/doku.php/wiki:development:build-howto-mswin:x2goclient

-Mike
-------------- next part --------------
Could NOT find NSIS (missing:  NSIS_MAKE) 
Found ZLIB: C:/Users/mike.DEPAULO/Downloads/zlib128-dll/include  
Found OpenSSL: optimized;C:/OpenSSL-Win32/lib/VC/ssleay32MD.lib;debug;C:/OpenSSL-Win32/lib/VC/ssleay32MDd.lib;optimized;C:/OpenSSL-Win32/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win32/lib/VC/libeay32MDd.lib  
Looking for include file pthread.h
Looking for include file pthread.h - not found
Found Threads: TRUE  
Could NOT find GSSAPI (missing:  GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIR) 
Could NOT find NaCl (missing:  NACL_LIBRARIES NACL_INCLUDE_DIRS) 
Looking for argp.h
Looking for argp.h - not found
Looking for pty.h
Looking for pty.h - not found
Looking for termios.h
Looking for termios.h - not found
Looking for unistd.h
Looking for unistd.h - not found
Looking for util.h
Looking for util.h - not found
Looking for 3 include files winsock2.h, ..., wspiapi.h
Looking for 3 include files winsock2.h, ..., wspiapi.h - found
Looking for include files winsock2.h, ws2tcpip.h
Looking for include files winsock2.h, ws2tcpip.h - found
Looking for openssl/aes.h
Looking for openssl/aes.h - found
Looking for openssl/blowfish.h
Looking for openssl/blowfish.h - found
Looking for openssl/des.h
Looking for openssl/des.h - found
Looking for openssl/ecdh.h
Looking for openssl/ecdh.h - found
Looking for openssl/ec.h
Looking for openssl/ec.h - found
Looking for openssl/ecdsa.h
Looking for openssl/ecdsa.h - found
Looking for isblank
Looking for isblank - not found
Looking for strncpy
Looking for strncpy - found
Looking for vsnprintf
Looking for vsnprintf - found
Looking for snprintf
Looking for snprintf - not found
Looking for poll
Looking for poll - not found
Looking for select
Looking for select - not found
Looking for getaddrinfo
Looking for getaddrinfo - not found
Looking for ntohll
Looking for ntohll - not found
Looking for htonll
Looking for htonll - not found
Looking for _strtoui64
Looking for _strtoui64 - found
Looking for _vsnprintf_s
Looking for _vsnprintf_s - found
Looking for _vsnprintf
Looking for _vsnprintf - found
Looking for _snprintf
Looking for _snprintf - found
Looking for _snprintf_s
Looking for _snprintf_s - found
Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE
Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE - Failed
Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE
Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE - Success
Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION
Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION - Failed
Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
You have called ADD_LIBRARY for library ssh_threads_shared without any source files. This typically indicates a problem with your CMakeLists.txt file
The CXX compiler identification is MSVC 16.0.40219.1
Check for working CXX compiler using: Visual Studio 10 2010
Check for working CXX compiler using: Visual Studio 10 2010 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
********************************************
********** libssh build options : **********
zlib support: ON
libgcrypt support: OFF
libnacl support: OFF
SSH-1 support: OFF
SFTP support: ON
Server support : ON
GSSAPI support : 0
Pcap debugging support : ON
With static library: OFF
Unit testing: OFF
Client code Unit testing: OFF
Public API documentation generation
Benchmarks: OFF
********************************************
Configuring done
CMake Error: CMake can not determine linker language for target: ssh_threads_shared
Generating done


More information about the x2go-dev mailing list