Hi,
I tried to compile the 2.6.9-22.EL kernel with reiserfs enabled. make fails as follows. anyone managed to compile with reiserfs successfully?
CC [M] fs/reiserfs/stree.o fs/reiserfs/stree.c: In function `get_lkey': fs/reiserfs/stree.c:322: warning: return from incompatible pointer type fs/reiserfs/stree.c:325: warning: return from incompatible pointer type fs/reiserfs/stree.c:329: warning: return from incompatible pointer type fs/reiserfs/stree.c:332: warning: return from incompatible pointer type fs/reiserfs/stree.c:337: warning: return from incompatible pointer type fs/reiserfs/stree.c:338: warning: return from incompatible pointer type fs/reiserfs/stree.c: At top level: fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was here fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was here fs/reiserfs/stree.c: In function `get_rkey': fs/reiserfs/stree.c:361: warning: return from incompatible pointer type fs/reiserfs/stree.c:364: warning: return from incompatible pointer type fs/reiserfs/stree.c:368: warning: return from incompatible pointer type fs/reiserfs/stree.c:371: warning: return from incompatible pointer type fs/reiserfs/stree.c:376: warning: return from incompatible pointer type fs/reiserfs/stree.c:377: warning: return from incompatible pointer type fs/reiserfs/stree.c: In function `key_in_buffer': fs/reiserfs/stree.c:399: warning: passing arg 1 of `comp_keys' from incompatible pointer type fs/reiserfs/stree.c:403: warning: passing arg 1 of `comp_keys' from incompatible pointer type make[2]: *** [fs/reiserfs/stree.o] Error 1 make[1]: *** [fs/reiserfs] Error 2 make: *** [fs] Error 2
Same problem here, I've asked this question before but not had an answer - I haven't been able to find an answer on the web either.
I guess this one of the reasons there hasn't been a 2.6.9-22 unsupported yet.
Daveh
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Lim Wee Cheong Sent: 25 October 2005 15:55 To: centos@centos.org Subject: [CentOS] centos 4.2 with reiserfs
Hi,
I tried to compile the 2.6.9-22.EL kernel with reiserfs enabled. make fails as follows. anyone managed to compile with reiserfs successfully?
CC [M] fs/reiserfs/stree.o fs/reiserfs/stree.c: In function `get_lkey': fs/reiserfs/stree.c:322: warning: return from incompatible pointer type fs/reiserfs/stree.c:325: warning: return from incompatible pointer type fs/reiserfs/stree.c:329: warning: return from incompatible pointer type fs/reiserfs/stree.c:332: warning: return from incompatible pointer type fs/reiserfs/stree.c:337: warning: return from incompatible pointer type fs/reiserfs/stree.c:338: warning: return from incompatible pointer type fs/reiserfs/stree.c: At top level: fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was here fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was here fs/reiserfs/stree.c: In function `get_rkey': fs/reiserfs/stree.c:361: warning: return from incompatible pointer type fs/reiserfs/stree.c:364: warning: return from incompatible pointer type fs/reiserfs/stree.c:368: warning: return from incompatible pointer type fs/reiserfs/stree.c:371: warning: return from incompatible pointer type fs/reiserfs/stree.c:376: warning: return from incompatible pointer type fs/reiserfs/stree.c:377: warning: return from incompatible pointer type fs/reiserfs/stree.c: In function `key_in_buffer': fs/reiserfs/stree.c:399: warning: passing arg 1 of `comp_keys' from incompatible pointer type fs/reiserfs/stree.c:403: warning: passing arg 1 of `comp_keys' from incompatible pointer type make[2]: *** [fs/reiserfs/stree.o] Error 1 make[1]: *** [fs/reiserfs] Error 2 make: *** [fs] Error 2
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I am working on this issue right now .... in the meantime, I think you can use the old kernel (2.6.9-11 unsupported)from the centosplus repository.
Johnny Hughes
On Tue, 2005-10-25 at 15:59 +0100, Dave Hatton wrote:
Same problem here, I've asked this question before but not had an answer - I haven't been able to find an answer on the web either.
I guess this one of the reasons there hasn't been a 2.6.9-22 unsupported yet.
Daveh
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Lim Wee Cheong Sent: 25 October 2005 15:55 To: centos@centos.org Subject: [CentOS] centos 4.2 with reiserfs
Hi,
I tried to compile the 2.6.9-22.EL kernel with reiserfs enabled. make fails as follows. anyone managed to compile with reiserfs successfully?
CC [M] fs/reiserfs/stree.o fs/reiserfs/stree.c: In function `get_lkey': fs/reiserfs/stree.c:322: warning: return from incompatible pointer type fs/reiserfs/stree.c:325: warning: return from incompatible pointer type fs/reiserfs/stree.c:329: warning: return from incompatible pointer type fs/reiserfs/stree.c:332: warning: return from incompatible pointer type fs/reiserfs/stree.c:337: warning: return from incompatible pointer type fs/reiserfs/stree.c:338: warning: return from incompatible pointer type fs/reiserfs/stree.c: At top level: fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was here fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was here fs/reiserfs/stree.c: In function `get_rkey': fs/reiserfs/stree.c:361: warning: return from incompatible pointer type fs/reiserfs/stree.c:364: warning: return from incompatible pointer type fs/reiserfs/stree.c:368: warning: return from incompatible pointer type fs/reiserfs/stree.c:371: warning: return from incompatible pointer type fs/reiserfs/stree.c:376: warning: return from incompatible pointer type fs/reiserfs/stree.c:377: warning: return from incompatible pointer type fs/reiserfs/stree.c: In function `key_in_buffer': fs/reiserfs/stree.c:399: warning: passing arg 1 of `comp_keys' from incompatible pointer type fs/reiserfs/stree.c:403: warning: passing arg 1 of `comp_keys' from incompatible pointer type make[2]: *** [fs/reiserfs/stree.o] Error 1 make[1]: *** [fs/reiserfs] Error 2 make: *** [fs] Error 2
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I don't use reiserfs - but having a quick look at the 2.6.9-22 kernel source ...
It looks like RedHat patched the reiserfs source to change 'struct key' to 'struct reiserfs_key' (Patch2503) - I guess to prevent name conflicts with the 'Key management patches' (from the spec file).
However, it looks like they missed a couple ... not surprising as they don't support reiserfs, so they don't hit this problem.
The attached patch seems to allow it to compile - although not tested.
James Pearson
Lim Wee Cheong wrote:
Hi,
I tried to compile the 2.6.9-22.EL kernel with reiserfs enabled. make fails as follows. anyone managed to compile with reiserfs successfully?
CC [M] fs/reiserfs/stree.o fs/reiserfs/stree.c: In function `get_lkey': fs/reiserfs/stree.c:322: warning: return from incompatible pointer type fs/reiserfs/stree.c:325: warning: return from incompatible pointer type fs/reiserfs/stree.c:329: warning: return from incompatible pointer type fs/reiserfs/stree.c:332: warning: return from incompatible pointer type fs/reiserfs/stree.c:337: warning: return from incompatible pointer type fs/reiserfs/stree.c:338: warning: return from incompatible pointer type fs/reiserfs/stree.c: At top level: fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was here fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was here fs/reiserfs/stree.c: In function `get_rkey': fs/reiserfs/stree.c:361: warning: return from incompatible pointer type fs/reiserfs/stree.c:364: warning: return from incompatible pointer type fs/reiserfs/stree.c:368: warning: return from incompatible pointer type fs/reiserfs/stree.c:371: warning: return from incompatible pointer type fs/reiserfs/stree.c:376: warning: return from incompatible pointer type fs/reiserfs/stree.c:377: warning: return from incompatible pointer type fs/reiserfs/stree.c: In function `key_in_buffer': fs/reiserfs/stree.c:399: warning: passing arg 1 of `comp_keys' from incompatible pointer type fs/reiserfs/stree.c:403: warning: passing arg 1 of `comp_keys' from incompatible pointer type make[2]: *** [fs/reiserfs/stree.o] Error 1 make[1]: *** [fs/reiserfs] Error 2 make: *** [fs] Error 2
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, 2005-10-26 at 12:22 +0100, James Pearson wrote:
I don't use reiserfs - but having a quick look at the 2.6.9-22 kernel source ...
It looks like RedHat patched the reiserfs source to change 'struct key' to 'struct reiserfs_key' (Patch2503) - I guess to prevent name conflicts with the 'Key management patches' (from the spec file).
However, it looks like they missed a couple ... not surprising as they don't support reiserfs, so they don't hit this problem.
The attached patch seems to allow it to compile - although not tested.
James Pearson
Thanks, I'll give this a go later today.
Since this is already an upsupported kernel, I have no problem fixing problems in it. We are also looking at rolling in a little more stable XFS code from SGI into centosplus for CentOS-4 soon as well.
Lim Wee Cheong wrote:
Hi,
I tried to compile the 2.6.9-22.EL kernel with reiserfs enabled. make fails as follows. anyone managed to compile with reiserfs successfully?
CC [M] fs/reiserfs/stree.o fs/reiserfs/stree.c: In function `get_lkey': fs/reiserfs/stree.c:322: warning: return from incompatible pointer type fs/reiserfs/stree.c:325: warning: return from incompatible pointer type fs/reiserfs/stree.c:329: warning: return from incompatible pointer type fs/reiserfs/stree.c:332: warning: return from incompatible pointer type fs/reiserfs/stree.c:337: warning: return from incompatible pointer type fs/reiserfs/stree.c:338: warning: return from incompatible pointer type fs/reiserfs/stree.c: At top level: fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was here fs/reiserfs/stree.c:346: error: conflicting types for 'get_rkey' include/linux/reiserfs_fs.h:1886: error: previous declaration of 'get_rkey' was here fs/reiserfs/stree.c: In function `get_rkey': fs/reiserfs/stree.c:361: warning: return from incompatible pointer type fs/reiserfs/stree.c:364: warning: return from incompatible pointer type fs/reiserfs/stree.c:368: warning: return from incompatible pointer type fs/reiserfs/stree.c:371: warning: return from incompatible pointer type fs/reiserfs/stree.c:376: warning: return from incompatible pointer type fs/reiserfs/stree.c:377: warning: return from incompatible pointer type fs/reiserfs/stree.c: In function `key_in_buffer': fs/reiserfs/stree.c:399: warning: passing arg 1 of `comp_keys' from incompatible pointer type fs/reiserfs/stree.c:403: warning: passing arg 1 of `comp_keys' from incompatible pointer type make[2]: *** [fs/reiserfs/stree.o] Error 1 make[1]: *** [fs/reiserfs] Error 2 make: *** [fs] Error 2
On Wednesday 26 October 2005 13.59, Johnny Hughes wrote:
On Wed, 2005-10-26 at 12:22 +0100, James Pearson wrote:
I don't use reiserfs - but having a quick look at the 2.6.9-22 kernel source ...
It looks like RedHat patched the reiserfs source to change 'struct key' to 'struct reiserfs_key' (Patch2503) - I guess to prevent name conflicts with the 'Key management patches' (from the spec file).
However, it looks like they missed a couple ... not surprising as they don't support reiserfs, so they don't hit this problem.
The attached patch seems to allow it to compile - although not tested.
James Pearson
Thanks, I'll give this a go later today.
Since this is already an upsupported kernel, I have no problem fixing problems in it. We are also looking at rolling in a little more stable XFS code from SGI into centosplus for CentOS-4 soon as well.
that would be really nice, xfs in the old (106 kernel) was really broken (not suprisingly since it's the xfs from 2.6.9 which is ancient)
thanks for your efforts, Peter