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



Attachments

Description Raph 2018-05-03 12:12:40 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-24 20:22:59 CEST
Bruce,
Can you take a look at this one?
May be reassign appropriately if necessary.

Thanks
Ajit
Comment 2 Anatoly Burakov 2018-08-29 13:59:02 CEST
Patch submitted:

http://patches.dpdk.org/patch/43968/
Comment 3 Thomas Monjalon 2020-04-26 02:46:58 CEST
Resolved in http://git.dpdk.org/dpdk/commit/?id=3717943819

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