[LU-2334] build errors with 2.6.18 kernel Created: 15/Nov/12  Updated: 14/May/13  Resolved: 14/May/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Peng Tao Assignee: Zhenyu Xu
Resolution: Fixed Votes: 0
Labels: patch

Severity: 3
Rank (Obsolete): 5566

 Description   

When cross building against 2.6.18 kernel, I always got following errors. It is because after commit 76bf16d1, HAVE_PROCFS_USERS and HAVE_PROCFS_DELETED can both be true on old kernels with backported code. As the old jira entry (LU-1484) is closed, open a new one to fix this.

make[3]: Entering directory `/home/bergwolf/src/redhat/linux-2.6.18-308.20.1.el5.i686'

WARNING: Symbol version dump /home/bergwolf/src/redhat/linux-2.6.18-308.20.1.el5.i686/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /home/bergwolf/src/lustre-release/libcfs/libcfs/linux/linux-tracefile.o
In file included from /home/bergwolf/src/lustre-release/libcfs/include/libcfs/libcfs.h:322,
from /home/bergwolf/src/lustre-release/libcfs/libcfs/linux/linux-tracefile.c:38:
/home/bergwolf/src/lustre-release/libcfs/include/libcfs/params_tree.h:107:2: error: #error proc_dir_entry->deleted is conflicted with proc_dir_entry->pde_users
make[6]: *** [/home/bergwolf/src/lustre-release/libcfs/libcfs/linux/linux-tracefile.o] Error 1
make[5]: *** [/home/bergwolf/src/lustre-release/libcfs/libcfs] Error 2
make[4]: *** [/home/bergwolf/src/lustre-release/libcfs] Error 2
make[3]: *** [_module_/home/bergwolf/src/lustre-release] Error 2



 Comments   
Comment by Peng Tao [ 15/Nov/12 ]

patch submitted to http://review.whamcloud.com/4589

Comment by Peng Tao [ 20/Jan/13 ]

patch landed on master. We can close this. Thanks.

Comment by Bruno Faccini (Inactive) [ 22/Jan/13 ]

Got the same issue/error when manually building latest Lustre 1.8 sources (1.8.8.60) from latest 2.6.18 Kernel sources (2.6.18-348.el5.src), but with "lustre/include/lprocfs_status.h" include file and same pre-processor statement :
567 #ifdef HAVE_PROCFS_USERS
568 #error proc_dir_entry->deleted is conflicted with proc_dir_entry->pde_users
569 #endif
Same fix (remove statement's 3 lines!) works just fine ...

Comment by Zhenyu Xu [ 22/Jan/13 ]

b1_8 patch is tracked at http://review.whamcloud.com/5129

Comment by Bruno Faccini (Inactive) [ 23/Jan/13 ]

Thank's for the info/link Bobijam, I am sorry but I found this late yesterday evening and missed more time to find if it was already addressed ...

Generated at Sat Feb 10 01:24:20 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.