Skip to content

Error: linking with cc failed: exit code: 1 #1

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

Closed
omid opened this issue Dec 31, 2018 · 15 comments
Closed

Error: linking with cc failed: exit code: 1 #1

omid opened this issue Dec 31, 2018 · 15 comments

Comments

@omid
Copy link

omid commented Dec 31, 2018

Thanks for the library :D

I used your way and faced an error.
You can see the changed code and also the error in the following link:

https://gist.github.com/omid/b55fe742e8bacff0c34042218de5d363

Any idea about the error?

There are several topics related to this, but I couldn't fix it, like:
rust-lang/rust#25289

@robertohuertasm
Copy link
Owner

What is your OS?

@omid
Copy link
Author

omid commented Dec 31, 2018

Linux (Arch)

I ran it inside and outside of docker. Same problem.

@robertohuertasm
Copy link
Owner

Let me take a look. The other day I remember having the same issue but I don't know what I did to solve it! 🤦‍♂️

@robertohuertasm
Copy link
Owner

I cannot reproduce it... Have you tried doing cargo clean? If you try to build the project, does it work? I assume you're getting the error while doing cargo func run, is it right?

@omid
Copy link
Author

omid commented Jan 2, 2019

yes

I faced this by running cargo func run and also cargo build

@omid
Copy link
Author

omid commented Jan 2, 2019

Which os/distro do you have?

@robertohuertasm
Copy link
Owner

I tried to reproduce it both in a Mac and a pc with Ubuntu 18.04

@omid
Copy link
Author

omid commented Jan 2, 2019

I installed a new fresh Ubuntu 18.04, upgrade it, install the latest Rust nightly and still face exactly the same problem with the code that I've changed in the gist file

Which version of OpenSSL do you have locally?

Can you send me your Cargo.lock also?

@robertohuertasm
Copy link
Owner

I get an openSSL error if I try your exact example. I'm trying to see what can be done. Does it work with the example I provided? Because I understood that this wasn't working for you, which doesn't seem to be the case.

@omid
Copy link
Author

omid commented Jan 3, 2019

Your code works fine.
I followed your instruction, with a simple request in it, it doesn't work.

Actually my code doesn't work with your instruction.

@robertohuertasm
Copy link
Owner

Ok, now I got the same error as you. I got it wrong and thought you were having issues with the original code. I guess it would be helpful to open an issue in the azure-functions-rs repo, too.

@robertohuertasm
Copy link
Owner

This issue from the reqwest repo seems to be related.

@robertohuertasm
Copy link
Owner

In the meantime you can use hyper to make your request.

@omid
Copy link
Author

omid commented Jan 3, 2019

My simple code, without "azure-functions-rs", works fine.
Your code alone also works fine.

The combination has a problem!

@omid
Copy link
Author

omid commented Jan 3, 2019

So I'll close this issue.

Check peterhuene/azure-functions-rs#108

@omid omid closed this as completed Jan 3, 2019
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