Skip to content

Compilation of libssh2 v1.11.0 fails on 32-bit platforms #1053

@giordano

Description

@giordano

Describe the bug

Compilation of libssh2 fails on 32-bit platforms with

[16:53:52] In file included from /workspace/srcdir/libssh2-1.11.0/src/crypto.h:46:0,
[16:53:52]                  from /workspace/srcdir/libssh2-1.11.0/src/libssh2_priv.h:149,
[16:53:52]                  from /workspace/srcdir/libssh2-1.11.0/src/crypt.c:39:
[16:53:52] /workspace/srcdir/libssh2-1.11.0/src/mbedtls.h:261:5: error: conflicting types for ‘_libssh2_mbedtls_rsa_sha1_verify’
[16:53:52]      _libssh2_mbedtls_rsa_sha1_verify(rsactx, sig, sig_len, m, m_len)
[16:53:52]      ^
[16:53:52] /workspace/srcdir/libssh2-1.11.0/src/crypto.h:146:5: note: in expansion of macro ‘_libssh2_rsa_sha1_verify’
[16:53:52]  int _libssh2_rsa_sha1_verify(libssh2_rsa_ctx * rsa,
[16:53:52]      ^
[16:53:52] /workspace/srcdir/libssh2-1.11.0/src/mbedtls.h:527:1: note: previous declaration of ‘_libssh2_mbedtls_rsa_sha1_verify’ was here
[16:53:52]  _libssh2_mbedtls_rsa_sha1_verify(libssh2_rsa_ctx *rsa,
[16:53:52]  ^
[16:53:52] /workspace/srcdir/libssh2-1.11.0/src/mbedtls.h:264:5: error: conflicting types for ‘_libssh2_mbedtls_rsa_sha2_verify’
[16:53:52]      _libssh2_mbedtls_rsa_sha2_verify(rsactx, hash_len, sig, sig_len, m, m_len)
[16:53:52]      ^
[16:53:52] /workspace/srcdir/libssh2-1.11.0/src/crypto.h:164:5: note: in expansion of macro ‘_libssh2_rsa_sha2_verify’
[16:53:52]  int _libssh2_rsa_sha2_verify(libssh2_rsa_ctx * rsa,
[16:53:52]      ^
[16:53:52] /workspace/srcdir/libssh2-1.11.0/src/mbedtls.h:540:1: note: previous declaration of ‘_libssh2_mbedtls_rsa_sha2_verify’ was here
[16:53:52]  _libssh2_mbedtls_rsa_sha2_verify(libssh2_rsa_ctx * rsactx,
[16:53:52]  ^

For full build log see https://buildkite.com/julialang/yggdrasil/builds/3281#01886d93-971c-45a5-99f4-143310219ed3/652-1375

To Reproduce

Compile for a 32-bit platform. Full build script: https://github.com/giordano/Yggdrasil/blob/983d062f05278847e435476b7c0e66b76cde09bc/L/LibSSH2/build_tarballs.jl#L21-L36

Expected behavior

Compilation is successful.

Version (please complete the following information):

  • OS and version: linux on i686, armv6l, armv7l; also i686 and x86_64 mingw
  • libssh2 version: 1.11.0
  • crypto backend and version: mbedTLS 2.28.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions