[LU-867] Fails to build with gss (lustre 2.1) Created: 20/Nov/11  Updated: 17/Oct/13  Resolved: 17/Oct/13

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

Type: Bug Priority: Minor
Reporter: Josephine Palencia Assignee: Zhenyu Xu
Resolution: Fixed Votes: 0
Labels: None
Environment:

Lustre 2.1.51
Centos 6.0
Kernel-2.6.32_131.2.1.el6.x86_64


Issue Links:
Duplicate
duplicates LU-2392 Kerberos support (GSS keyring) is bro... Resolved
duplicates LU-2221 Kerberos support for kernel >= 2.6.24... Resolved
Severity: 3
Rank (Obsolete): 4765

 Description   

WARNING: /home/build/kernel/rpmbuild/BUILD/lustre-2.1.51/lustre/ptlrpc/ptlrpc.o(.init.text+0x32a): Section mismatch in reference from the function ptlrpc_init() to the function .exit.text:ldlm_exit()
The function __init ptlrpc_init() references
a function __exit ldlm_exit().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
ldlm_exit() so it may be used outside an exit section.

WARNING: /home/build/kernel/rpmbuild/BUILD/lustre-2.1.51/lustre/ptlrpc/ptlrpc.o(.init.text+0x6c8): Section mismatch in reference from the function ptlrpc_init() to the function .exit.text:sptlrpc_fini()
The function __init ptlrpc_init() references
a function __exit sptlrpc_fini().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
sptlrpc_fini() so it may be used outside an exit section.

/home/build/kernel/rpmbuild/BUILD/lustre-2.1.51/lustre/ptlrpc/gss/gss_svc_upcall.c:475: error: unknown field 'cache_request' specified in initializer
cc1: warnings being treated as errors
/home/build/kernel/rpmbuild/BUILD/lustre-2.1.51/lustre/ptlrpc/gss/gss_svc_upcall.c:475: error: initialization from incompatible pointer type
make[9]: *** [/home/build/kernel/rpmbuild/BUILD/lustre-2.1.51/lustre/ptlrpc/gss/gss_svc_upcall.o] Error 1
make[9]: *** Waiting for unfinished jobs....
make[8]: *** [/home/build/kernel/rpmbuild/BUILD/lustre-2.1.51/lustre/ptlrpc/gss] Error 2
make[7]: *** [/home/build/kernel/rpmbuild/BUILD/lustre-2.1.51/lustre/ptlrpc] Error 2
make[6]: *** [/home/build/kernel/rpmbuild/BUILD/lustre-2.1.51/lustre] Error 2
make[5]: *** [_module_/home/build/kernel/rpmbuild/BUILD/lustre-2.1.51] Error 2
make[5]: Leaving directory `/extra/build/kernel/rpmbuild/BUILD/kernel-2.6.32_131.2.1.el6.x86_64_lustre_2.1.50'
make[4]: *** [modules] Error 2
make[4]: Leaving directory `/extra/build/kernel/rpmbuild/BUILD/lustre-2.1.51'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/extra/build/kernel/rpmbuild/BUILD/lustre-2.1.51'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/extra/build/kernel/rpmbuild/BUILD/lustre-2.1.51'
error: Bad exit status from /var/tmp/rpm-tmp.Po3hCL (%build)



 Comments   
Comment by Zhenyu Xu [ 13/Dec/11 ]

"section mimatch" patch tracking at http://review.whamcloud.com/#change,1653
gss compiling error fix patch tracking at http://review.whamcloud.com/1846

Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ldlm/ldlm_lockd.c
  • lustre/ptlrpc/sec.c
  • lustre/ptlrpc/ptlrpc_internal.h
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » x86_64,server,el5,ofa #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ptlrpc/ptlrpc_internal.h
  • lustre/ldlm/ldlm_lockd.c
  • lustre/ptlrpc/sec.c
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » i686,server,el6,inkernel #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ptlrpc/ptlrpc_internal.h
  • lustre/ldlm/ldlm_lockd.c
  • lustre/ptlrpc/sec.c
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ldlm/ldlm_lockd.c
  • lustre/ptlrpc/ptlrpc_internal.h
  • lustre/ptlrpc/sec.c
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » x86_64,client,sles11,inkernel #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ptlrpc/ptlrpc_internal.h
  • lustre/ldlm/ldlm_lockd.c
  • lustre/ptlrpc/sec.c
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » x86_64,client,el5,ofa #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ldlm/ldlm_lockd.c
  • lustre/ptlrpc/sec.c
  • lustre/ptlrpc/ptlrpc_internal.h
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » i686,client,el6,inkernel #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ptlrpc/ptlrpc_internal.h
  • lustre/ldlm/ldlm_lockd.c
  • lustre/ptlrpc/sec.c
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ptlrpc/ptlrpc_internal.h
  • lustre/ldlm/ldlm_lockd.c
  • lustre/ptlrpc/sec.c
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ptlrpc/sec.c
  • lustre/ptlrpc/ptlrpc_internal.h
  • lustre/ldlm/ldlm_lockd.c
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ptlrpc/sec.c
  • lustre/ptlrpc/ptlrpc_internal.h
  • lustre/ldlm/ldlm_lockd.c
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » i686,server,el5,ofa #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ptlrpc/sec.c
  • lustre/ptlrpc/ptlrpc_internal.h
  • lustre/ldlm/ldlm_lockd.c
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » i686,server,el5,inkernel #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ldlm/ldlm_lockd.c
  • lustre/ptlrpc/sec.c
  • lustre/ptlrpc/ptlrpc_internal.h
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » i686,client,el5,inkernel #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ldlm/ldlm_lockd.c
  • lustre/ptlrpc/sec.c
  • lustre/ptlrpc/ptlrpc_internal.h
Comment by Build Master (Inactive) [ 04/Jan/12 ]

Integrated in lustre-master » i686,client,el5,ofa #400
LU-867 ptlrpc: Resolve section mismatch (Revision 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e)

Result = SUCCESS
Oleg Drokin : 30d23e8d36d8b0b4d2571e7801e3643b0e7ab22e
Files :

  • lustre/ptlrpc/ptlrpc_internal.h
  • lustre/ptlrpc/sec.c
  • lustre/ldlm/ldlm_lockd.c
Comment by Peter Jones [ 04/Jan/12 ]

Landed for 2.2

Comment by Josephine Palencia [ 04/Jan/12 ]

Revisit: build with gss fails.

make[5]: Leaving directory `/home/build/kernel/rpmbuild/BUILD/lustre-2.1.53/lustre'
make[5]: Entering directory `/home/build/kernel/rpmbuild/BUILD/kernel-2.6.32_131.21.1.el6.x86_64_lustre_2.2'
/home/build/kernel/rpmbuild/BUILD/lustre-2.1.53/lustre/ptlrpc/gss/gss_svc_upcall.c:475: error: unknown field 'cache_request' specified in initializer
cc1: warnings being treated as errors
/home/build/kernel/rpmbuild/BUILD/lustre-2.1.53/lustre/ptlrpc/gss/gss_svc_upcall.c:475: error: initialization from incompatible pointer type
make[9]: *** [/home/build/kernel/rpmbuild/BUILD/lustre-2.1.53/lustre/ptlrpc/gss/gss_svc_upcall.o] Error 1
make[9]: *** Waiting for unfinished jobs....
make[8]: *** [/home/build/kernel/rpmbuild/BUILD/lustre-2.1.53/lustre/ptlrpc/gss] Error 2
make[7]: *** [/home/build/kernel/rpmbuild/BUILD/lustre-2.1.53/lustre/ptlrpc] Error 2
make[6]: *** [/home/build/kernel/rpmbuild/BUILD/lustre-2.1.53/lustre] Error 2
make[5]: *** [_module_/home/build/kernel/rpmbuild/BUILD/lustre-2.1.53] Error 2
make[5]: Leaving directory `/home/build/kernel/rpmbuild/BUILD/kernel-2.6.32_131.21.1.el6.x86_64_lustre_2.2'
make[4]: *** [modules] Error 2
make[4]: Leaving directory `/home/build/kernel/rpmbuild/BUILD/lustre-2.1.53'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/build/kernel/rpmbuild/BUILD/lustre-2.1.53'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/build/kernel/rpmbuild/BUILD/lustre-2.1.53'
error: Bad exit status from /var/tmp/rpm-tmp.1FN2Ku (%build)

Comment by Zhenyu Xu [ 04/Jan/12 ]

there are other patches belonging to this LU tickets are to be landed yet. (review #1883, #1884 and #1885)

Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » x86_64,server,el5,ofa #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/ptlrpc/gss/gss_svc_upcall.c
  • lustre/utils/gss/context_lucid.c
  • lustre/autoconf/lustre-core.m4
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/utils/gss/context_lucid.c
  • lustre/autoconf/lustre-core.m4
  • lustre/ptlrpc/gss/gss_svc_upcall.c
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/ptlrpc/gss/gss_svc_upcall.c
  • lustre/utils/gss/context_lucid.c
  • lustre/autoconf/lustre-core.m4
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » i686,server,el6,inkernel #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/utils/gss/context_lucid.c
  • lustre/ptlrpc/gss/gss_svc_upcall.c
  • lustre/autoconf/lustre-core.m4
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » x86_64,client,sles11,inkernel #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/utils/gss/context_lucid.c
  • lustre/ptlrpc/gss/gss_svc_upcall.c
  • lustre/autoconf/lustre-core.m4
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/utils/gss/context_lucid.c
  • lustre/ptlrpc/gss/gss_svc_upcall.c
  • lustre/autoconf/lustre-core.m4
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/utils/gss/context_lucid.c
  • lustre/autoconf/lustre-core.m4
  • lustre/ptlrpc/gss/gss_svc_upcall.c
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » x86_64,client,el5,ofa #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/ptlrpc/gss/gss_svc_upcall.c
  • lustre/autoconf/lustre-core.m4
  • lustre/utils/gss/context_lucid.c
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/ptlrpc/gss/gss_svc_upcall.c
  • lustre/utils/gss/context_lucid.c
  • lustre/autoconf/lustre-core.m4
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » i686,client,el6,inkernel #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/utils/gss/context_lucid.c
  • lustre/autoconf/lustre-core.m4
  • lustre/ptlrpc/gss/gss_svc_upcall.c
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » i686,server,el5,ofa #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/utils/gss/context_lucid.c
  • lustre/autoconf/lustre-core.m4
  • lustre/ptlrpc/gss/gss_svc_upcall.c
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » i686,server,el5,inkernel #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/ptlrpc/gss/gss_svc_upcall.c
  • lustre/utils/gss/context_lucid.c
  • lustre/autoconf/lustre-core.m4
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » i686,client,el5,inkernel #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/ptlrpc/gss/gss_svc_upcall.c
  • lustre/utils/gss/context_lucid.c
  • lustre/autoconf/lustre-core.m4
Comment by Build Master (Inactive) [ 19/Jan/12 ]

Integrated in lustre-master » i686,client,el5,ofa #431
LU-867 gss: adapt to 2.6.32 kernel changes cache_detail (Revision 87b7907d39425a47f6bc7a908f0bb48b5b329bf5)

Result = SUCCESS
Oleg Drokin : 87b7907d39425a47f6bc7a908f0bb48b5b329bf5
Files :

  • lustre/ptlrpc/gss/gss_svc_upcall.c
  • lustre/utils/gss/context_lucid.c
  • lustre/autoconf/lustre-core.m4
Comment by Andreas Dilger [ 17/Oct/13 ]

The 1884 and 1883 patches have been abandoned, because equivalent patches were landed to master for the 2.4.0 release:

http://review.whamcloud.com/4394
http://review.whamcloud.com/4708

Please file a new bug for any other Kerberos build issues going forward. As yet we do not test Kerberos ourselves, so feedback is welcome. There is a small but growing number of parties interested in Lustre Kerberos on the iudev@lists.opensfs.org mailing list, if you want to contribute and/or coordinate efforts in this area.

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