# Openssl error during cross compilation

**URL:** <https://hub.mender.io/t/openssl-error-during-cross-compilation/2747>\
**Category:** General Discussions\
**Created:** [October 28, 2020, 1:56pm UTC](https://hub.mender.io/t/openssl-error-during-cross-compilation/2747 "2020-10-28T13:56:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![buffo](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/buffo/32/909_2.png) [@buffo](https://hub.mender.io/u/buffo)\
**Post date:** [October 28, 2020, 1:56pm UTC](https://hub.mender.io/t/openssl-error-during-cross-compilation/2747/1 "2020-10-28T13:56:47Z")

</div>

Hi there,

I get a go compile error while trying to cross-compiler the mender client:

 ![go](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/b29cb6b5c02e44056089ac1b9bf37b4dc78734c4.png)

I am doing all processes in a golang dockerfile, that looks sth like this:

 ![docker](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/a6236cf0cb727d2b10b61046c70262304bed0b44.png)

Is this a problem with the a software version I am using?

Thanks!

---

<div class="post-metadata">

**Author:** ![buffo](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/buffo/32/909_2.png) [@buffo](https://hub.mender.io/u/buffo)\
**Post date:** [October 28, 2020, 2:54pm UTC](https://hub.mender.io/t/openssl-error-during-cross-compilation/2747/2 "2020-10-28T14:54:17Z")

</div>

Nevermind, I had to compile the **openssl** (libssl-dev) sources for my architecture:

![openssl](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/c4006432e54cbd3827ac1f4f126dd1b6ec9fb90f.png)

After that, the compilation works like a charm. For consistency reasons this (or a hint to that) could be added to the cross-compiling introduction that can be found in the READNE.md here:

> **[mendersoftware/mender](https://github.com/mendersoftware/mender)**
>
> Mender over-the-air software updater client. Contribute to mendersoftware/mender development by creating an account on GitHub.
