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

Compile error in azure-c-shared when building with gcc 11.2 #1708

Open
DavidRobb opened this issue Nov 17, 2021 · 1 comment
Open

Compile error in azure-c-shared when building with gcc 11.2 #1708

DavidRobb opened this issue Nov 17, 2021 · 1 comment
Assignees
Labels
Bug Something isn't working

Comments

@DavidRobb
Copy link

I'm getting a build error in gcc 11.2 because the SDK is using an earlier verions of the external azure_c_shared library without this patch:
Azure/azure-c-shared-utility#535

| /home/dar/bb6/build/tmp/work/skylake-64-poky-linux/k4a/1.4.1-r0/git/extern/azure_c_shared/src/src/hmac.c:211:43: error: argument 2 of type 'uint8_t *' {aka 'unsigned char *'} declared as a pointer [-Werror=array-parameter=]
| 211 | int hmacResult(HMACContext *ctx, uint8_t *digest)
| | ~~~~~~~~~^~~~~~
| In file included from /home/dar/bb6/build/tmp/work/skylake-64-poky-linux/k4a/1.4.1-r0/git/extern/azure_c_shared/src/src/hmac.c:13:
| /home/dar/bb6/build/tmp/work/skylake-64-poky-linux/k4a/1.4.1-r0/git/extern/azure_c_shared/src/inc/azure_c_shared_utility/sha.h:252:42: note: previously declared as an array 'uint8_t[64]' {aka 'unsigned char[64]'}
| 252 | int hmacResult(HMACContext *ctx, uint8_t digest[USHAMaxHashSize]);
| | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
| cc1: all warnings being treated as errors

@DavidRobb DavidRobb added Bug Something isn't working Triage Needed The Issue still needs to be reviewed by Azure Kinect team members. labels Nov 17, 2021
@qm13 qm13 self-assigned this Nov 22, 2021
@qm13 qm13 removed the Triage Needed The Issue still needs to be reviewed by Azure Kinect team members. label Nov 22, 2021
@qm13 qm13 assigned dasparli and unassigned qm13 Apr 5, 2022
@buresu
Copy link

buresu commented Jul 8, 2022

This problem is solved by Azure/azure-c-shared-utility#537, but not released yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants