Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266197AbVBDUog (ORCPT ); Fri, 4 Feb 2005 15:44:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263291AbVBDUgD (ORCPT ); Fri, 4 Feb 2005 15:36:03 -0500 Received: from mail-relay-2.tiscali.it ([213.205.33.42]:41882 "EHLO mail-relay-2.tiscali.it") by vger.kernel.org with ESMTP id S265857AbVBDU0H (ORCPT ); Fri, 4 Feb 2005 15:26:07 -0500 Date: Fri, 4 Feb 2005 21:26:28 +0100 From: Kronos To: linux-kernel@vger.kernel.org Cc: Rahul Jain Subject: Re: How to add source files in kernel Message-ID: <20050204202628.GA14973@dreamland.darkstar.lan> Reply-To: kronos@kronoz.cjb.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1333 Lines: 38 Rahul Jain ha scritto: > The kernel recompilation went without any problems. I wrote loadable > module programs that can access the functions defined in .c. When I try to > install these modules, they came back with the following error > > /sbin/insmod x.o > x.o: unresolved symbol enqueue_sfi > x.o: unresolved symbol init_skbuff_list > x.o: unresolved symbol get_head_sfi > x.o: unresolved symbol search_sfi > x.o: unresolved symbol enqueue_skbuff_list > x.o: unresolved symbol init_head_sfi > x.o: > Hint: You are trying to load a module without a GPL compatible license > and it has unresolved symbols. Contact the module supplier for > assistance, only they can help you. > > make: *** [install] Error 1 You forgot the EXPORT for those symbols, add: EXPORT_SYMBOL(symbol_name); to .c file. Or you may have exported the symbols as GPL only (EXPORT_SYMBOL_GPL) and the module which is not licensed under GPL cannot see them. Luca -- Home: http://kronoz.cjb.net La somma dell'intelligenza sulla terra e` una costante. La popolazione e` in aumento. - 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/