I am trying to compile efivar-0.23 for my LFS, but when I untar it end run the following command:
make libdir="/usr/lib/" bindir="/usr/bin/" mandir="/usr/share/man/" includedir=/usr/include/" V=1 -j1
I get an error, that NVME_IOCTL_ID is undeclared. I have looked through the whole internet for the answer, but the only thing I have found, is that I need to patch the file. I have found several patches, but nothing helps (maybe I am installing them incorrectly..). This is the last patch that I have tried: http://patchwork.openembedded.org/patch/117073/.
I have entered the untared efivar directory and have executed:
patch -Np1 ../efivar.patch, but it was doing anything. It was like it is doing something, but nothing happened.
I have tried to
patch < ../efivar.patch from the untared directory, but then the system started asking questions...
System: File to patch: Me: Makefile System: patching file Makefile Hunk #1 FAILED at 12. 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej The next patch would delete the file efivar-drop-options-not-supported-by-lower-version-gcc.patch, which does not exist! Assume -R? [n] Me: y System: patching file efivar-drop-options-not-supported-by-lower-version-gcc.patch The next patch would delete the file efivar_0.21.bb, which does not exist! Assume -R? [n] Me: y patching file efivar_0.21.bb patching file efivar_0.23.bb
I have tried different combinations of answers and different patches. I have also typed manualy in the files needed to be patched to be sure it containes what is needed (cause I am unsure if this patching works).
So basically I am at the same point with undeclared variable and a lot of time wasted not knowing what to do.. Any ideas?