From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Hudec Subject: Re: buffer cache Date: Sat, 13 Sep 2003 19:28:36 +0200 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20030913172836.GE31719@vagabond> References: <20030913102721.GB31719@vagabond> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, vadiraj c s Return-path: Received: from cimice4.lam.cz ([212.71.168.94]:11466 "EHLO vagabond.light.src") by vger.kernel.org with ESMTP id S261903AbTIMR2o (ORCPT ); Sat, 13 Sep 2003 13:28:44 -0400 To: Bryan Henderson Content-Disposition: inline In-Reply-To: List-Id: linux-fsdevel.vger.kernel.org On Sat, Sep 13, 2003 at 11:25:29 -0600, Bryan Henderson wrote: > > > > > >>I get an error saying Undefined reference, the functions are > >>inline functions. > > > >Kernel stuff must be compiled with optimization due to this and ... > > Are you sure? I compile a filesystem driver module with no optimization > all the time. Without optimization, the functions that are supposed to be > inline become out-of-line, but it still compiles. On older versions of > Linux, I did have to use -O because there were some "extern inline" > functions, but not now. This is a 2.4.20ish kernel; maybe there are extern > inlines in newer kernel code? > > But here, we're apparently talking about the link editor (ld) "undefined > reference" error, which means it isn't a question of compiling kernel code > at all - he's trying to create an executable. That still wouldn't cause a > problem with inline functions, but I suspect the problem is really with > other (external) functions with similar names that the inline functions > call. ... you are right. The error looks like he is trying to do something wrong (binary instead of relocable object). ------------------------------------------------------------------------------- Jan 'Bulb' Hudec