Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Unable to build openssl 0.7.8 for ARM #363

Closed
leon-anavi opened this issue Mar 21, 2016 · 1 comment
Closed

Unable to build openssl 0.7.8 for ARM #363

leon-anavi opened this issue Mar 21, 2016 · 1 comment

Comments

@leon-anavi
Copy link
Contributor

Hi,

I am trying to build the latest version of crate openssl (aka 0.7.8) for Raspberry Pi 2 (ARMv7) through a Yocto/OE recipes that depends on meta-rust but it fails due to the following issue:

| /leon/GDP/genivi-demo-platform-rpi/gdp-src-build/tmp/work/cortexa7hf-vfp-vfpv4-neon-poky-linux-gnueabi/rvi-sota-client/git-r0/cargo_home/registry/src/github.com-88ac128001ac3a9a/openssl-0.7.8/src/ssl/mod.rs:830:50: 830:58 error: mismatched types:
|  expected `*const i8`,
|     found `*const u8`
| (expected i8,
|     found u8) [E0308]
| /leon/GDP/genivi-demo-platform-rpi/gdp-src-build/tmp/work/cortexa7hf-vfp-vfpv4-neon-poky-linux-gnueabi/rvi-sota-client/git-r0/cargo_home/registry/src/github.com-88ac128001ac3a9a/openssl-0.7.8/src/ssl/mod.rs:830                 String::from_utf8(CStr::from_ptr(desc_ptr).to_bytes().to_vec()).ok()
| 

I noticed that similar bug has been already reported as #314. The solution seems simple. I will try to send a Git pull request for a review asap.

Best regards, Leon

leon-anavi added a commit to leon-anavi/rust-openssl that referenced this issue Mar 21, 2016
Fix error caused by mismatched types while building crate
openssl for Raspberry Pi 2 and other ARM devices.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
@leon-anavi
Copy link
Contributor Author

Hi,

Please review my GitHub pull request. I hope it will be approved and the issue will be resolved as soon as possible because it is blocking the rest of my work.

Thanks, Leon

sfackler added a commit that referenced this issue Mar 21, 2016
Cast correctly c_char raw pointers (fixes build on ARM #363)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants