Include path for module compilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

After reading the The Linux Kernel Module Programming Guide, I have
written a very simple module that reads the value of variable xtime
declared in time.h and displays the output in /proc/xtime_procfs -
http://docs.google.com/Doc?id=dftrdgx_0hsjqkhfs

Here is the Makefile-
http://docs.google.com/Doc?id=dftrdgx_1dtb3fpg5

The problem is that xtime variable is not being resolved by the compiler-
[root@localhost host-tests]# make
make -C /lib/modules/2.6.27.19-78.2.30.fc9.i686/build M=/root/host-tests modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.19-78.2.30.fc9.i686'
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "xtime" [/root/host-tests/xtime-mod.ko] undefined!
make[1]: Leaving directory `/usr/src/kernels/2.6.27.19-78.2.30.fc9.i686'
[root@localhost host-tests]#

I have included the path to the correct sources in the Makefile and
ensured that time.h is present here-
/usr/src/kernels/2.6.27.19-78.2.30.fc9.i686/include
I have also installed the kernel headers.

Can someone please tell me what I'm missing ?

Many thanks,
Harsha

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux