lkl / linux

Linux kernel source tree

Home Page:https://lkl.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing header

milisarge opened this issue · comments

make: Entering directory '/opt/linux-master/tools/lkl'                                                                                                                   
  CC       /opt/linux-master/tools/lkl/lib/hijack/xlate.o                                                                                                                
lib/hijack/xlate.c: In function 'lkl_ioctl_req_xlate':                                                                                                                   
lib/hijack/xlate.c:558:7: error: 'SIOCGSTAMP' undeclared (first use in this function); did you mean 'SIOCGRARP'?                                                         
  558 |  case SIOCGSTAMP:                                                                                                                                                
      |       ^~~~~~~~~~                                                                                                                                                 
      |       SIOCGRARP                                                                                                                                                  
lib/hijack/xlate.c:558:7: note: each undeclared identifier is reported only once for each function it appears in                                                         
lib/hijack/xlate.c:560:7: error: 'SIOCGSTAMPNS' undeclared (first use in this function); did you mean 'LKL_SIOCGSTAMPNS'?                                                
  560 |  case SIOCGSTAMPNS:                                                                                                                                              
      |       ^~~~~~~~~~~~                                                                                                                                               
      |       LKL_SIOCGSTAMPNS                                                                                                                                           
  LD       /opt/linux-master/tools/lkl/lib/hijack/liblkl-hijack-in.o                                                                                                     
ld: cannot find /opt/linux-master/tools/lkl/lib/hijack/xlate.o: No such file or directory                                                                                
make[1]: *** [/opt/linux-master/tools/build/Makefile.build:145: /opt/linux-master/tools/lkl/lib/hijack/liblkl-hijack-in.o] Error 1                                       
make: *** [Makefile:86: /opt/linux-master/tools/lkl/lib/hijack/liblkl-hijack-in.o] Error 2                                                                               
make: Leaving directory '/opt/linux-master/tools/lkl'     

solution:
adding #include <linux/sockios.h> to hijack/xlate.c