Comments (5)
I don't think that error is related to the listed commit but merely that you seem to be missing the linux headers. Atleast my linux headers of 4.4 seems to include a linux/nvme.h when doing make headers_install
However that linux/nvme.h that i have doesn't define all the needed things anymore since that mentioned commit. I think the error that you meant to paste was:
linux.c: In function 'eb_nvme_ns_id':
linux.c:48:27: error: 'NVME_IOCTL_ID' undeclared (first use in this function)
uint64_t ret = ioctl(fd, NVME_IOCTL_ID, NULL);
^
linux.c:48:27: note: each undeclared identifier is reported only once for each function it appears in
Instead that one is in the new uapi/linux/nvme_ioctl.h which is not installed through make headers_install
.
from efivar.
Gentoo's linux-headers-4.4 packaging includes several patches. One of them changes headers_install to include nvme_ioctl.h instead of nvme.h. This patch is pending review on LKML.
https://lkml.org/lkml/2016/1/10/332
I guess we will have to see how this turns out in linux-4.5.
from efivar.
The patch got merged on the kernel master branch.
from efivar.
I'm applying this patch downstream; if you find the solution acceptable, feel free to merge it.
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-libs/efivar/files/0.21-nvme_ioctl.h.patch
from efivar.
Thanks, I've pulled this in to master.
from efivar.
Related Issues (20)
- sys/cdefs.h missing on musl HOT 2
- Running make repeatedly results in a rebuild of many targets
- please avoid use of non-portable on_exit() HOT 1
- efivar-38: ld.lld: error: unknown argument '--add-needed' HOT 4
- Add properly gated `extern "C"` to public headers HOT 1
- efivar 38: i686: off_t vs. ssize_t HOT 2
- Build failure for efivar v38 on ppc64le HOT 2
- Clarify SPDX License Identifier
- efivar-38: ld.lld: error: unable to insert .data after .data HOT 1
- makeguids Your linker is not supported guids.txt guid-symbols.c include/efivar/efivar-guids.h guids.lds HOT 1
- ld.lld: error: undefined symbol: efi_error_set
- Cant compile with musl HOT 2
- OsIndications variable disappeared after writing to it
- Build fails on musl HOT 2
- <linux/fs.h> conflicts with <sys/mount.h>
- 38: trying use groff use instead mandoc HOT 3
- -march=native results in non-reproducible binaries HOT 1
- cross compile linking issues. HOT 1
- Invalid libefivar.so generated when building with clang-15. HOT 1
- Cross compile build fails with uClibc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efivar.