Re: Simple module compile problem

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

 





From: Arjan van de Ven <arjan@xxxxxxxxxxxxx>
To: R Harper <rharper333@xxxxxxxxxxx>
CC: kernelnewbies@xxxxxxxxxxxx
Subject: Re: Simple module compile problem
Date: Thu, 14 Apr 2005 12:52:14 +0200

On Thu, 2005-04-14 at 11:53 +0200, R Harper wrote:
> Hi
>
> I'm compiling my first (hello world) module on a debian 2.6.8 system


you forgot to attach your makefile


Sorry about that, it simple looks like this

obj-m += hello2.o

and I'm just compile the hello world2 example from http://www.tldp.org/LDP/lkmpg/2.6/html/lkmpg.html

The (full) compile output looks like this
host1:/newbie# make -nostdinc -I/usr/src/kernel-source-2.6.8/include -C /usr/src/kernel-source-2.6.8 SUBDIRS=$PWD modules
make: Entering directory `/usr/src/kernel-source-2.6.8'
mkdir -p /newbie/.tmp_versions
make -f scripts/Makefile.build obj=/newbie
set -e; echo ' CC [M] /newbie/hello2.o'; gcc -Wp,-MD,/newbie/.hello2.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -DMODULE -DKBUILD_BASENAME=hello2 -DKBUILD_MODNAME=hello2 -c -o /newbie/.tmp_hello2.o /newbie/hello2.c; if ! objdump -h /newbie/.tmp_hello2.o | grep -q __ksymtab; then mv /newbie/.tmp_hello2.o /newbie/hello2.o; else gcc -E -D__GENKSYMS__ -Wp,-MD,/newbie/.hello2.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -DMODULE -DKBUILD_BASENAME=hello2 -DKBUILD_MODNAME=hello2 /newbie/hello2.c | scripts/genksyms/genksyms > /newbie/.tmp_hello2.ver; ld -m elf_i386 -r -o /newbie/hello2.o /newbie/.tmp_hello2.o -T /newbie/.tmp_hello2.ver; rm -f /newbie/.tmp_hello2.o /newbie/.tmp_hello2.ver; fi; scripts/basic/fixdep /newbie/.hello2.o.d /newbie/hello2.o 'gcc -Wp,-MD,/newbie/.hello2.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -DMODULE -DKBUILD_BASENAME=hello2 -DKBUILD_MODNAME=hello2 -c -o /newbie/.tmp_hello2.o /newbie/hello2.c' > /newbie/.hello2.o.tmp; rm -f /newbie/.hello2.o.d; mv -f /newbie/.hello2.o.tmp /newbie/.hello2.o.cmd
{ echo /newbie/hello2.ko; echo /newbie/hello2.o; } > /newbie/.tmp_versions/hello2.mod
:
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'


_________________________________________________________________
Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/


-- 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