Bugs item #2809163, was opened at 2009-06-19 12:36 Message generated for change (Tracker Item Submitted) made by roadrunn You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2809163&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Neil Gierman (roadrunn) Assigned to: Nobody/Anonymous (nobody) Summary: Windows compile error with latest snapshot Initial Comment: I sent this to the mail list but figured I post this bug as well. The latest libssh2 snapshot has a few compiler errors with windows Visual Studio 2008: 1>hostkey.c 1>c:\users\giermang\new\libssh2-1.1\src\hostkey.c(445) : error C2491: 'libssh2_hostkey_hash' : definition of dllimport function not allowed 1>c:\users\giermang\new\libssh2-1.1\src\hostkey.c(468) : error C2491: 'libssh2_session_hostkey' : definition of dllimport function not allowed I have tracked this down to an extra include of "libssh2.h" in both hostkey.c and knownhost.c. The below patch fixes the issue in Windows and still compiles in Linux as well: --- src\hostkey.c 2009-05-20 08:08:43.000000000 -0500 +++ src\hostkey.c 2009-06-14 19:50:53.000000000 -0500 @@ -33,13 +33,12 @@ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. */ -#include "libssh2.h" #include "libssh2_priv.h" #include "misc.h" /* Needed for struct iovec on some platforms */ #ifdef HAVE_SYS_UIO_H #include <sys/uio.h> --- src\knownhost.c 2009-06-10 21:02:03.000000000 -0500 +++ src\knownhost.c 2009-06-14 19:51:21.000000000 -0500 @@ -33,13 +33,12 @@ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. */ -#include "libssh2.h" #include "libssh2_priv.h" #include "misc.h" struct known_host { struct list_node node; char *name; /* points to the name or the hash (allocated) */ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2809163&group_id=125852 ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel