Re: segmentation fault while loading modules

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

 



> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux