From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ming-Wei Shih Subject: Re: Xen and reiser4 Date: Wed, 15 Dec 2004 19:56:50 +0100 Message-ID: <41C088F2.4070400@spaceball.cjb.net> References: <41C08801.4060908@spaceball.cjb.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <41C08801.4060908@spaceball.cjb.net> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org >>> Hi all >>> >>> Thanks to Milan I am able to get further with xen and reiser4 >>> >>> - In swap line 6 and 7 status_flags.c >>> >>> #include >>> #include >>> >>> >>> - PACKED is redefined, but the definitions are the same, so the gcc >>> warning can be ignored IMO >>> >>> dformat.h:#define PACKED __attribute__((packed)) >>> xen.h:#define PACKED __attribute__ ((packed)) >> >> >> > > Yup, these 2 are the same, I just didn't recall whether they were > exactly the same. And I renamed reiser4's definition (and its usage > inside reiser4) because the messages caused by it somehow prevented me > from seeing the actual error :) > >>> >>> however during linking I get this, and I could'nt find >>> perthread_pages_count anywher in the kernel >>> src tree >>> >>> LD init/built-in.o >>> LD .tmp_vmlinux1 >>> fs/built-in.o(.text+0x37701): In function `carry': >>> : undefined reference to `perthread_pages_count' >>> fs/built-in.o(.text+0x3771e): In function `carry': >>> : undefined reference to `perthread_pages_reserve' >>> fs/built-in.o(.text+0x37821): In function `carry': >>> : undefined reference to `perthread_pages_count' >>> fs/built-in.o(.text+0x3782f): In function `carry': >>> : undefined reference to `perthread_pages_release' >>> make: *** [.tmp_vmlinux1] Error 1 >> >> >> > > Now this is strange. In my sources with xen+reiser4, I get these three > occurences which are defining this symbol: > > | ./include/linux/gfp.h:int perthread_pages_count(void); > | ./mm/page_alloc.c:int perthread_pages_count(void) > | ./mm/page_alloc.c:EXPORT_SYMBOL(perthread_pages_count); > > (where the first is defining the function for use in other files, the > second will be followed by the actual code of the function, and the > third exports the function as a symbol which is callable by other > modules) > > I don't think xen doesn't use page_alloc.c (in addition, it got built in > my xen tree), so maybe you want to try a "make mrproper"? (put backup > your .config before this, or do a "make clean"...) No matter what I do (mrproper, different reiser4 patches, untar from clean src+patch) I always get this error on 2 machines, clean 2.6.9 without patches builts correctly. Any clues? TIA Ming-Wei ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/