iface.c:36:21: fatal error: libkmod.h: No such file or directory

173 views
Skip to first unread message

Manish Dusane

unread,
Feb 17, 2021, 10:58:35 AM2/17/21
to open-iscsi
All,

Trying to compile latest open-iscsi-master on 3.10.0-957.10.1.el7.x86_64
Getting following ilbkmod.h error.  

What am i missing ? 

TIA,
Manish

$ make
make -C libopeniscsiusr
make[1]: Entering directory `<path>/open-iscsi-master/libopeniscsiusr'
cc -O2 -g -Wall -Werror -Wextra -fvisibility=hidden -fPIC    -c -o iface.o iface.c
iface.c:36:21: fatal error: libkmod.h: No such file or directory
 #include <libkmod.h>
                     ^
compilation terminated.
make[1]: *** [iface.o] Error 1
make[1]: Leaving directory `<path>/open-iscsi-master/libopeniscsiusr'
make: *** [user] Error 2
$

The Lee-Man

unread,
Feb 19, 2021, 12:05:21 PM2/19/21
to open-iscsi
open-iscsi relies on libkmod, which didn't exist in 3.10 kernel. You'll have to use an older open-iscsi, such as 2.0.876.
Reply all
Reply to author
Forward
0 new messages