WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Xen and reiser4

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: Xen and reiser4
From: Ming-Wei Shih <xming@xxxxxxxxxxxxxxxxx>
Date: Wed, 15 Dec 2004 19:56:50 +0100
Delivery-date: Wed, 15 Dec 2004 18:59:05 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <41C08801.4060908@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <41C08801.4060908@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

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 <linux/bio.h>
  #include <linux/page-flags.h>


- 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/
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>