On Mon, Mar 31, 2008 at 9:17 PM, Robert P. J. Day <[EMAIL PROTECTED]> wrote:

>  http://www.crashcourse.ca/wiki/index.php/Writing_your_first_kernel_module

Robert, thanks for the link.  However, it doesn't really address my
problem.  Your hi.c and Makefile actually get me less far than my own
(much simpler) hello world (see make output below).  When using your
Makefile with my own modTest.c, modified to suit your style, I get the
same MODPOST error as before.

Thanks,
-David

[EMAIL PROTECTED]:~/uCLinux/uClinux-dist/user/modTest$ make
make -C /home/rr/uCLinux/uClinux-dist/linux-2.6.x/
M=/home/rr/uCLinux/uClinux-dist/user/modTest modules
make[1]: Entering directory `/home/rr/uCLinux/uClinux-dist/linux-2.6.x'
Building with KERNELRELEASE = 2.6.24-uc0
  CC [M]  /home/rr/uCLinux/uClinux-dist/user/modTest/hi.o
In file included from include/linux/cache.h:4,
                 from include/linux/time.h:7,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /home/rr/uCLinux/uClinux-dist/user/modTest/hi.c:1:
include/linux/kernel.h:149: warning: conflicting types for built-in
function 'snprintf'
include/linux/kernel.h:151: warning: conflicting types for built-in
function 'vsnprintf'
In file included from include/linux/string.h:19,
                 from include/linux/bitmap.h:8,
                 from include/linux/nodemask.h:85,
                 from include/linux/mmzone.h:16,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:14,
                 from include/linux/percpu.h:5,
                 from include/asm-generic/local.h:4,
                 from include/asm/local.h:4,
                 from include/linux/module.h:19,
                 from /home/rr/uCLinux/uClinux-dist/user/modTest/hi.c:1:
include/asm/string.h:24: warning: conflicting types for built-in
function 'strncpy'
include/asm/string.h:92: warning: conflicting types for built-in
function 'memset'
include/asm/string.h:95: warning: conflicting types for built-in
function 'memcpy'
In file included from include/linux/bitmap.h:8,
                 from include/linux/nodemask.h:85,
                 from include/linux/mmzone.h:16,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:14,
                 from include/linux/percpu.h:5,
                 from include/asm-generic/local.h:4,
                 from include/asm/local.h:4,
                 from include/linux/module.h:19,
                 from /home/rr/uCLinux/uClinux-dist/user/modTest/hi.c:1:
include/linux/string.h:34: warning: conflicting types for built-in
function 'strncat'
include/linux/string.h:43: warning: conflicting types for built-in
function 'strncmp'
include/linux/string.h:52: warning: conflicting types for built-in
function 'strncasecmp'
include/linux/string.h:68: warning: conflicting types for built-in
function 'strlen'
include/linux/string.h:80: warning: conflicting types for built-in
function 'strspn'
include/linux/string.h:83: warning: conflicting types for built-in
function 'strcspn'
include/linux/string.h:93: warning: conflicting types for built-in
function 'memmove'
include/linux/string.h:99: warning: conflicting types for built-in
function 'memcmp'
{standard input}: Assembler messages:
{standard input}:32: Error: no such instruction: `move.l %sp,%rdx'
{standard input}:33: Error: no such instruction: `and.l $-8192,%rdx'
make[2]: *** [/home/rr/uCLinux/uClinux-dist/user/modTest/hi.o] Error 1
make[1]: *** [_module_/home/rr/uCLinux/uClinux-dist/user/modTest] Error 2
make[1]: Leaving directory `/home/rr/uCLinux/uClinux-dist/linux-2.6.x'
make: *** [module] Error 2
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to