lkml.org 
[lkml]   [2005]   [Mar]   [23]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 23 Mar 2005 10:30:14 +0100 (CET)
SubjectRe: segmentation fault while loading modules
From"Sam Ravnborg" <>
> my makefile is:
>
> TARGET  := signal4
> WARN    := -W -Wall -Wstrict-prototypes -Wmissing-prototypes
> INCLUDE := -isystem /lib/modules/2.4.20-8feb9.1/build/include
> CFLAGS  := -O2 -DMODULE -D__KERNEL__ ${WARN} ${INCLUDE}
> CC      := gcc
>
> ${TARGET}.o: ${TARGET}.c
>
> .PHONY: clean
>
>
> Any suggestions are welcome.

It may be due to inconsistency in gcc flags.

Plase try with a simpler Makefile:
Makefile:
obj-m := signal4.o

And compile with:
make -C /lib/modules/2.4.20-8feb9.1/build SUBDIRS=`pwd` modules

This will make sure you use correct gcc flags.

    Sam


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-04-06 13:30    [W:12.926 / U:0.390 seconds]
©2003-2008 Jasper Spaans