Package: kernel-patch-2.6-reiser4
Version: 20050715-1
Followup-For: Bug #329907

Hi, 

I tried to compile 2.6.13 kernel with debian's reiser4 patch.

First, make-kpkg argued that 2.6.13 is not supported by the patch. I
"fixed" this my hand-modifying /usr/src/kernel-patches/all/apply/reiser4
to declare support for 2.6.13. make-kpkg was happy, but the compile
failed:

  CC [M]  fs/reiser4/debug.o
  CC [M]  fs/reiser4/jnode.o
  CC [M]  fs/reiser4/znode.o
  CC [M]  fs/reiser4/key.o
  CC [M]  fs/reiser4/pool.o
  CC [M]  fs/reiser4/tree_mod.o
  CC [M]  fs/reiser4/estimate.o
  CC [M]  fs/reiser4/carry.o
  CC [M]  fs/reiser4/carry_ops.o
  CC [M]  fs/reiser4/lock.o
  CC [M]  fs/reiser4/tree.o
  CC [M]  fs/reiser4/context.o
  CC [M]  fs/reiser4/tap.o
  CC [M]  fs/reiser4/coord.o
  CC [M]  fs/reiser4/block_alloc.o
  CC [M]  fs/reiser4/txnmgr.o
  CC [M]  fs/reiser4/kassign.o
  CC [M]  fs/reiser4/flush.o
  CC [M]  fs/reiser4/wander.o
  CC [M]  fs/reiser4/eottl.o
  CC [M]  fs/reiser4/search.o
  CC [M]  fs/reiser4/page_cache.o
  CC [M]  fs/reiser4/kcond.o
  CC [M]  fs/reiser4/seal.o
  CC [M]  fs/reiser4/dscale.o
  CC [M]  fs/reiser4/flush_queue.o
  CC [M]  fs/reiser4/ktxnmgrd.o
fs/reiser4/ktxnmgrd.c: In function ‘ktxnmgrd’:
fs/reiser4/ktxnmgrd.c:112: error: too many arguments to function
‘refrigerator’
make[3]: *** [fs/reiser4/ktxnmgrd.o] Error 1
make[2]: *** [fs/reiser4] Error 2
make[1]: *** [fs] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.13'
make: *** [stamp-build] Error 2

Looking at the source, it seems that refrigerator() function is called
with one argument, when in fact it is declared with no arguments.

Correcting this in fs/reiser4/entd.c and ktxnmgrd.c by giving
refrigerator() no parameters and using freezing(current) instead of
checking me->flags for PF_FREEZE (borrowed from jbd) seems to fix the
compile problem.

There's another one, though:

fs/reiser4/plugin/object.c includes xattr_acl.h, which is non-existent
in 2.6.13. Commenting out the #include line seems to fix this. I guess
xattr.h now includes whaterver xattr_acl.h was included for.


Maybe this rings some bells or could be usefull to someone.


NOTE: I haven't run the compiled kernel, yet. There may be runtime
problems. Use above receipe at your own risk.


thanks for your time maintaining kernel-patch-2.6-reiser4
dam

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12+reiser4+dam.3
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)

Versions of packages kernel-patch-2.6-reiser4 depends on:
ii  bash                          3.0-16     The GNU Bourne Again SHell
ii  grep-dctrl                    2.6.7      Grep Debian package information
ii  patch                         2.5.9-2    Apply a diff file to an original

kernel-patch-2.6-reiser4 recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to