lkml.org 
[lkml]   [2005]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: segmentation fault while loading modules
From
> 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:0.887 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site