Bugs item #1943976, was opened at 2008-04-16 15:36 Message generated for change (Comment added) made by bagder You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1943976&group_id=125852
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: misc Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Carlo Bramini (carlo_bramini) Assigned to: Daniel Stenberg (bagder) Summary: Fix MSYS+MINGW Initial Comment: Hello, I fixed the compilation of libssh2 under MSYS+MINGW, now it works without problems. The compilation under MSVC works too. List of changes: )configure.in detect mingw32 (or mingw64) compiler, add some CFLAGS and detect the presence of W32API. select() was not found at configure time because it is declared with PASCAL calling convention, so its name is decorated with "@". Normally such conditions must be fixed by declaring correct prototype, or including good include file (i.e. winsock2.h). )scp_nonblock.c )scp_write_nonblock.c )sftp_RW_nonblock.c )sftp_mkdir_nonblock.c )sftp_nonblock.c )sftp_write_nonblock.c )sftpdir_nonblock.c fixed nonblocking examples for Win32/Win64. )libssh2_priv.h Declare some useful stuff, mainly moved from libssh2_config.h under /win32 directory )libssh2_config.h Removed some stuff for fixing compilation under MSVC Sincerely, Carlo Bramini. ---------------------------------------------------------------------- >Comment By: Daniel Stenberg (bagder) Date: 2008-09-30 10:58 Message: Thanks, a few remarks though: 1) I committed the fixes for the examples just now 2) It seems you've reverted some win32 changes when you removed newly fixed code from win32/libssh2_config.h and instead insert older-looking code into src/libssh2_priv.h 3) Your configure changes make configure break for me on Linux that's supposedly unreleated to mingw/msys. ---------------------------------------------------------------------- Comment By: Carlo Bramini (carlo_bramini) Date: 2008-09-30 10:38 Message: I updated my patch to the lastest CVS revision. I hope that it will be fine and I hope to see a new version with mingw+msys support very soon! Sincerely, Carlo Bramini File Added: libssh2.txt ---------------------------------------------------------------------- Comment By: Daniel Stenberg (bagder) Date: 2008-09-29 21:22 Message: Thanks for your work, can you please update your patch against the current CVS as some changes now makes your patch not apply cleanly any more? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1943976&group_id=125852 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel