Skip to content

OpenSSL when cross-compiling for musl #58

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
arlyon opened this issue Mar 19, 2020 · 1 comment
Closed

OpenSSL when cross-compiling for musl #58

arlyon opened this issue Mar 19, 2020 · 1 comment

Comments

@arlyon
Copy link

arlyon commented Mar 19, 2020

This is a continuation of #11

Rust is no longer able to find the OpenSSL headers as early as July 2019 on the latest tag (1.42.0-buster) despite them being there:

➜ docker run --rm rust:latest head /usr/include/openssl/opensslv.h
/*
 * Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.
 *
 * Licensed under the OpenSSL license (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

#ifndef HEADER_OPENSSLV_H

According to this issue trying to get rust to know where all the headers are is a pain point.

@sfackler
Copy link
Member

If you are cross compiling, you need a copy of OpenSSL built for the target. The image's OpenSSL is linked to glibc, not musl libc.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants