arun11299 / cpp-jwt

JSON Web Token library for C++
MIT License
396 stars 111 forks source link

Openssl make does not work #5

Closed tkaplan closed 6 years ago

tkaplan commented 6 years ago

This seems to be a big problem with a lot of other projects so I'm surprised it hasn't been reported here yet.

I'm getting make errors like so...


/usr/include/openssl/ec.h:1039:16: note: forward declaration of 'ECDSA_SIG {aka struct ECDSA_SIG_st}'
 typedef struct ECDSA_SIG_st ECDSA_SIG;

Is there a fix for this?

arun11299 commented 6 years ago

Hello, Thanks for reporting. Can you tell me which openssl version are you using. The library has been tested only with 1.0.2j version. Also, it would be helpful if you can paste the commands you are using to build.

Thanks.

arun11299 commented 6 years ago

Also, I know few people who are actually using this library, but have not faced this issue.

DEGoodmanWilson commented 6 years ago

I encountered this issues too in #3 . Looks like you're using openssl 1.1.0, which isn't compatible. You'll need to use openssl 1.0.2.

arun11299 commented 6 years ago

@tkaplan @DEGoodmanWilson I could reproduce the issue using latest openssl version. From google search it seems that it has broken builds of quite a lot of libraries. I will provide a fix for it soon.

Thanks.

arun11299 commented 6 years ago

@tkaplan @DEGoodmanWilson I have pushed the changes for the referenced errors. Let me know if you still see the issues with the openssl version that you are using.

Thanks.