Simple module compile problem

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

 



Hi

I'm compiling my first (hello world) module on a debian 2.6.8 system

I use -nostdinc because -I (kernel-source-dir)/include doesn't work for me (using gcc-2.95.4)

this is my compile output

host1:/home/work/test# make -nostdinc -C /usr/src/kernel-source-2.6.8 SUBDIRS=$PWD modules
make: Entering directory `/usr/src/kernel-source-2.6.8'


.... (bunch of compile options)

echo ' Building modules, stage 2.';
make -rR -f /usr/src/kernel-source-2.6.8/scripts/Makefile.modpost
echo ' MODPOST' && scripts/mod/modpost -i /usr/src/kernel-source-2.6.8/Module.symvers
make: Leaving directory `/usr/src/kernel-source-2.6.8'


The module doesn't seem to be linking at all, and I don't know why, at least I dont end up with hello2.ko in my directory

(and Yes I'm using the same source as  the running kernel)

Thanks in advance for your help
r.harper

_________________________________________________________________
Log på MSN Messenger direkte fra nettet  http://webmessenger.msn.com/


-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: 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