Bug 34 - Does not compile with musl libc: lib/librte_eal/common/eal_common_fbarray.c
Summary: Does not compile with musl libc: lib/librte_eal/common/eal_common_fbarray.c
Status: RESOLVED FIXED
Alias: None
Product: DPDK
Classification: Unclassified
Component: core (show other bugs)
Version: 18.05
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Bruce Richardson
URL:
Depends on:
Blocks:
 
Reported: 2018-05-03 12:24 CEST by Raph
Modified: 2020-04-26 02:47 CEST (History)
3 users (show)



Attachments

Description Raph 2018-05-03 12:24:14 CEST
This file does not compile on linux systems using the musl libc.

musl libc is strict in which headers are exposed to user space. This file is relying on a side-effect of glibc.

This can be fixed by adding `#include <fcntl.h>` to the list of included headers.
Comment 1 Ajit Khaparde 2018-08-02 22:46:19 CEST
Bruce,
Can you chime in and help close this?

Thanks
Ajit
Comment 2 Anatoly Burakov 2018-08-29 13:58:19 CEST
Patch submitted:

http://patches.dpdk.org/patch/43969/
Comment 3 Thomas Monjalon 2020-04-26 02:47:05 CEST
Resolved in http://git.dpdk.org/dpdk/commit/?id=997b0ef8f8

Note You need to log in before you can comment on or make changes to this bug.