Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing header #495

Open
milisarge opened this issue Nov 6, 2021 · 0 comments
Open

Missing header #495

milisarge opened this issue Nov 6, 2021 · 0 comments

Comments

@milisarge
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant