<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>212160</bug_id>
          
          <creation_ts>2008-03-03 08:56 0000</creation_ts>
          <short_desc>net-fs/nfs-utils won&apos;t build with USE=&quot;kerberos nonfsv4&quot;</short_desc>
          <delta_ts>2008-04-20 00:38:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2007.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>develop@japanda.com</reporter>
          <assigned_to>net-fs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>develop@japanda.com</who>
            <bug_when>2008-03-03 08:56:24 0000</bug_when>
            <thetext>Previously in bug 191746 due to the changeover from app-crypt/libgssapi to net-libs/libgssglue. the package net-fs/nfs-utils had some problems. A new problem has come up. When building net-fs/nfs-utils 1.0.12-r1 to 1.1.0-r1 with the kerberos flag on always comes up with this error (in more detail below):
rpc/auth_gss.h: No such file or directory
Tried on AMD64 and X86 stable
I have also tried 1.1.1 with unstable.
The error area:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../support/include  -I../../support/include -D_GNU_SOURCE -Wall  -pipe -march=pentium4 -mtune=pentium4 -O2 -pipe -fomit-frame-pointer   -march=pentium4 -mtune=pentium4 -O2 -pipe -fomit-frame-pointer -MT gssd-context_lucid.o -MD -MP -MF .deps/gssd-context_lucid.Tpo -c -o gssd-context_lucid.o `test -f &apos;context_lucid.c&apos; || echo &apos;./&apos;`context_lucid.c
context.c:37:26: error: rpc/auth_gss.h: No such file or directory
make[2]: *** [gssd-context.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/gssd-context_heimdal.Tpo .deps/gssd-context_heimdal.Po
In file included from gss_util.h:36,
                 from context_lucid.c:43:
write_bytes.h:54: error: expected declaration specifiers or &apos;...&apos; before &apos;gss_buffer_desc&apos;
write_bytes.h: In function &apos;write_buffer&apos;:
write_bytes.h:56: error: &apos;arg&apos; undeclared (first use in this function)
write_bytes.h:56: error: (Each undeclared identifier is reported only once
write_bytes.h:56: error: for each function it appears in.)
write_bytes.h: At top level:
write_bytes.h:67: error: expected declaration specifiers or &apos;...&apos; before &apos;gss_OID_desc&apos;
write_bytes.h: In function &apos;write_oid&apos;:
write_bytes.h:69: error: &apos;arg&apos; undeclared (first use in this function)
write_bytes.h: At top level:
write_bytes.h:93: error: expected declaration specifiers or &apos;...&apos; before &apos;gss_buffer_desc&apos;
write_bytes.h: In function &apos;get_buffer&apos;:
write_bytes.h:100: error: &apos;res&apos; undeclared (first use in this function)
write_bytes.h: At top level:
write_bytes.h:121: error: expected declaration specifiers or &apos;...&apos; before &apos;gss_buffer_desc&apos;
write_bytes.h: In function &apos;xdr_get_buffer&apos;:
write_bytes.h:128: error: &apos;res&apos; undeclared (first use in this function)
write_bytes.h: At top level:
write_bytes.h:149: error: expected declaration specifiers or &apos;...&apos; before &apos;gss_buffer_desc&apos;
write_bytes.h: In function &apos;xdr_write_buffer&apos;:
write_bytes.h:151: error: &apos;arg&apos; undeclared (first use in this function)
In file included from context_lucid.c:43:
gss_util.h: At top level:
gss_util.h:38: error: expected &apos;=&apos;, &apos;,&apos;, &apos;;&apos;, &apos;asm&apos; or &apos;__attribute__&apos; before &apos;gssd_creds&apos;
gss_util.h:42: warning: type defaults to &apos;int&apos; in declaration of &apos;gss_OID&apos;
gss_util.h:42: error: expected &apos;;&apos;, &apos;,&apos; or &apos;)&apos; before &apos;mech&apos;
In file included from context_lucid.c:44:
gss_oids.h:36: error: expected &apos;=&apos;, &apos;,&apos;, &apos;;&apos;, &apos;asm&apos; or &apos;__attribute__&apos; before &apos;krb5oid&apos;
gss_oids.h:37: error: expected &apos;=&apos;, &apos;,&apos;, &apos;;&apos;, &apos;asm&apos; or &apos;__attribute__&apos; before &apos;spkm3oid&apos;
In file included from context_lucid.c:46:
context.h:40: error: expected &apos;)&apos; before &apos;ctx&apos;
context.h:42: error: expected &apos;)&apos; before &apos;ctx&apos;
context.h:43: error: expected &apos;)&apos; before &apos;ctx&apos;
context_lucid.c: In function &apos;write_lucid_keyblock&apos;:
context_lucid.c:63: error: too many arguments to function &apos;write_buffer&apos;
context_lucid.c: In function &apos;prepare_krb5_rfc1964_buffer&apos;:
context_lucid.c:106: error: &apos;krb5oid&apos; undeclared (first use in this function)
context_lucid.c:106: error: too many arguments to function &apos;write_oid&apos;
context_lucid.c: In function &apos;serialize_krb5_ctx&apos;:
context_lucid.c:174: warning: implicit declaration of function &apos;gss_export_lucid_sec_context&apos;
context_lucid.c:177: warning: implicit declaration of function &apos;pgsserr&apos;
context_lucid.c:178: error: &apos;krb5oid&apos; undeclared (first use in this function)
context_lucid.c:201: warning: implicit declaration of function &apos;gss_free_lucid_sec_context&apos;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>develop@japanda.com</who>
            <bug_when>2008-03-03 12:23:00 0000</bug_when>
            <thetext>it does build with 
-nonfsv4
however I want to use kerberos with nfsv3
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>develop@japanda.com</who>
            <bug_when>2008-03-03 13:23:43 0000</bug_when>
            <thetext>So when the problem is when I build with -nonfsv4 and try to mount a nfsv3 (no nfsv3 in kernel on client or server) I get the error message:
Mar  3 22:12:47 [mountd] refused mount request from spider.host.local for /mnt/silb2/bglobal (/): not exported
So I am sure it thinks kerberos == nfsv4
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>FlorianManschwetus@gmx.de</who>
            <bug_when>2008-03-27 18:49:21 0000</bug_when>
            <thetext>could be a heimdal problem, here it builds with mit-krb5.
But i get strange errors on one box all is fine on several other boxes i get:
rpc.gssd -f
rpc.gssd: undefined symbol: gss_mech_initialize: searching for symbol &apos;gss_mech_initialize&apos; in &apos;&apos;

with the effect that i get this when trying to use those boxes a server (as client with the fine box the do it):
mount -t nfs4 -osec=krb5 filer:/fm1007 /mnt/cdrom/
mount.nfs4: mounting filer:/fm1007 failed, reason given by server:
  No such file or directory
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>FlorianManschwetus@gmx.de</who>
            <bug_when>2008-03-28 13:51:53 0000</bug_when>
            <thetext>ok, i build it with mit-krb5 and all is fine, one problem was a empty line and the end of /etc/gssapi_mech.conf (the error message of rpc.gssd) (btw, why is this file not supplied anymore?)
and the second thing was, that the new file server is an 64 Bit xen guest, so i have to use th e-xen sources which are only available as 2.6.21 so the option style of the /etc/exports file was not supported (the style i used is only support since 2.6.23 (or later))

florian</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-04-20 00:38:18 0000</bug_when>
            <thetext>kerberos only gets used when nfsv4 support is enabled.  so building nfs-utils with USE=&quot;kerberos nonfsv4&quot; doesnt make any sense.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>