openssl 3.2.0 does not compile with icc on windows #23412
Closed
UlrichKamke
started this conversation in
General Discussion
Replies: 3 comments
-
Created as issue #23414 |
Beta Was this translation helpful? Give feedback.
0 replies
-
The one fix static __inline int CRYPTO_DOWN_REF(CRYPTO_REF_COUNT *val, int *refcnt) => static __inline int CRYPTO_DOWN_REF(CRYPTO_REF_COUNT *refcnt, int *ret) in line 104 of refcount.h works for us. We replaced only this file in 3.2.0. Thank you |
Beta Was this translation helpful? Give feedback.
0 replies
-
This issue is fixed. I replaced in our build the file refcount.h wiht the change. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
this reason of compile failure is in the file openssl-3.2.0\include\internal\refcount.h line 106.
The following function seems to be wrong in parameter list:
static __inline int CRYPTO_DOWN_REF(CRYPTO_REF_COUNT *val, int *refcnt)
{
*ret = _InterlockedExchangeAdd((void *)&refcnt->val, -1) - 1;
return 1;
}
*ret is undefined.
Is
static __inline int CRYPTO_DOWN_REF(CRYPTO_REF_COUNT *refcnt, int *ret)
{
*ret = _InterlockedExchangeAdd((void *)&refcnt->val, -1) - 1;
return 1;
}
right code ?
Can someone from your team fix this?
Best regards
Ulrich
Beta Was this translation helpful? Give feedback.
All reactions