Bug 14636 - azure-iot-sdk-c: Installed headers do not compile
Summary: azure-iot-sdk-c: Installed headers do not compile
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2021.02.10
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-04 23:28 UTC by James Cowgill
Modified: 2022-03-06 21:04 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Cowgill 2022-03-04 23:28:14 UTC
After building azure-iot-sdk-c...

test.c contains:
#include <iothub_client.h>

Running this:
$ output/host/bin/aarch64-none-linux-gnu-gcc -c test.c

Gives:
In file included from test.c:1:
.../output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/iothub_client.h:22:10: fatal error: umock_c/umock_c_prod.h: No such file or directory
   22 | #include "umock_c/umock_c_prod.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Most of the headers seem to depend on umock_c which isn't installed.

$ find output/staging/usr/include -name umock_c
$

This bug pretty much makes the package unusable.

----

It's only slightly related, but I also wonder why the headers are installed directly into "/usr/include" even though upstream installs them under "/usr/include/azureiot".
Comment 1 Fabrice Fontaine 2022-03-06 09:05:10 UTC
Thanks for your bug report, can you confirm that the following patch fixes your issue: https://patchwork.ozlabs.org/project/buildroot/patch/20220305204446.823802-1-fontaine.fabrice@gmail.com/
Comment 2 Yann E. MORIN 2022-03-06 21:04:39 UTC
James, All,

Thanks for the report.

We believe fis is now fixed with the patch from Fabrice applied to master:
d1debbb4c7eb  package/azure-iot-sdk-c: drop custom install rules

Regards,
Yann E. MORIN.