Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262897AbVCWJaY (ORCPT ); Wed, 23 Mar 2005 04:30:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262904AbVCWJaY (ORCPT ); Wed, 23 Mar 2005 04:30:24 -0500 Received: from dslsmtp.struer.net ([62.242.36.21]:23557 "EHLO dslsmtp.struer.net") by vger.kernel.org with ESMTP id S262897AbVCWJaP (ORCPT ); Wed, 23 Mar 2005 04:30:15 -0500 Message-ID: <4636.194.237.142.10.1111570214.squirrel@194.237.142.10> In-Reply-To: References: Date: Wed, 23 Mar 2005 10:30:14 +0100 (CET) Subject: Re: segmentation fault while loading modules From: "Sam Ravnborg" To: "Payasam Manohar" Cc: linux-kernel@vger.kernel.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Priority: 3 (Normal) Importance: Normal Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 822 Lines: 34 > 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/