linux - makefile kernel module with regex.h -


i wrote kernel module(checkip.c) on netfilter ubuntu 16.04, using regex.h header file in module( .h in /usr/include). couldn't make it! result make that:

  make -c /lib/modules/4.4.0-67-generic/build m=/home/linhos/progect/c++/untitled/modul modules make[1]: entering directory '/usr/src/linux-headers-4.4.0-67-generic'   cc [m]  /home/linhos/progect/c++/untitled/modul/checkip.o /home/linhos/progect/c++/untitled/modul/checkip.c:16:19: fatal error: regex.h: no such file or directory compilation terminated. scripts/makefile.build:264: recipe target '/home/linhos/progect/c++/untitled/modul/checkip.o' failed make[2]: *** [/home/linhos/progect/c++/untitled/modul/checkip.o] error 1 makefile:1420: recipe target '_module_/home/linhos/progect/c++/untitled/modul' failed make[1]: *** [_module_/home/linhos/progect/c++/untitled/modul] error 2 make[1]: leaving directory '/usr/src/linux-headers-4.4.0-67-generic' makefile:5: recipe target 'modules' failed make: *** [modules] error 2 

the make current use that:

obj-m :=checkip.o kerneldir := /lib/modules/$(shell uname -r)/build pwd :=$(shell pwd) modules:         $(make) -c $(kerneldir) m=$(pwd) modules clean:         rm -rf *.o *~core .*.cmd *.mod.c ./tmp version 

how should modify makefile?


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -