2006-07-11 20:54:17

by Usha Ketineni

[permalink] [raw]
Subject: nfs-utils compilation failing?

Hi,

I am seeing a problem when tried to install the nfs-utils-1.0.9.

gssd-context_mit.o(.text+0x268): In function `serialize_krb5_ctx':
/home/ketineni/nfs-utils-1.0.9/utils/gssd/context_mit.c:346: undefined
reference to `write_oid'
collect2: ld returned 1 exit status
make[2]: *** [gssd] Error 1
make[2]: Leaving directory `/home/ketineni/nfs-utils-1.0.9/utils/gssd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ketineni/nfs-utils-1.0.9/utils'
make: *** [all-recursive] Error 1


As serialize_krb5_ctx() is surrounded by ifdef HAVE_KRB5 & ifdef
HAVE_LUCID_CONTEXT_SUPPORT, in the case where those
two variables are defined serialize_krb5_ctx() need write_oid which is
supposed to be defined somewhere. And in nfs-utils-1.0.8 it's
been defined.

I was able to compile the nfs-utils-1.0.9 package just by adding the
write_oid() function call in utils/gssd/write_bytes.h. I am not sure what
these variables are used for in the configure script.


Thanks
Usha


Attachments:
(No filename) (375.00 B)
(No filename) (140.00 B)
Download all attachments

2006-07-12 03:10:01

by Kevin Coffman

[permalink] [raw]
Subject: Fwd: nfs-utils compilation failing?

Crap. This is my fault. It is the result of re-ordering patches that
I submitted for 1.0.9. I have the following in a patch that I haven't
submitted yet:

diff -puN utils/gssd/write_bytes.h~gssd_handle_cfx_context
utils/gssd/write_bytes.h
--- nfs-utils-1.0.9/utils/gssd/write_bytes.h~gssd_handle_cfx_context 2006-07-10
14:46:13.929980000 -0400
+++ nfs-utils-1.0.9-kwc/utils/gssd/write_bytes.h 2006-07-10
14:46:14.017955000 -0400
@@ -63,6 +63,19 @@ write_buffer(char **p, char *end, gss_bu
return 0;
}

+inline static int
+write_oid(char **p, char *end, gss_OID_desc *arg)
+{
+ int len = (int)arg->length; /* make an int out of size_t */
+ if (WRITE_BYTES(p, end, len))
+ return -1;
+ if (*p + arg->length > end)
+ return -1;
+ memcpy(*p, arg->elements, len);
+ *p += len;
+ return 0;
+}
+
static inline int
get_bytes(char **ptr, const char *end, void *res, int len)
{

_

---------- Forwarded message ----------
From: Usha Ketineni <[email protected]>
Date: Jul 11, 2006 4:54 PM
Subject: [NFS] nfs-utils compilation failing?
To: [email protected]



Hi,

I am seeing a problem when tried to install the nfs-utils-1.0.9.

gssd-context_mit.o(.text+0x268): In function `serialize_krb5_ctx':
/home/ketineni/nfs-utils-1.0.9/utils/gssd/context_mit.c:346:
undefined reference to `write_oid'
collect2: ld returned 1 exit status
make[2]: *** [gssd] Error 1
make[2]: Leaving directory `/home/ketineni/nfs-utils-1.0.9/utils/gssd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ketineni/nfs-utils-1.0.9/utils'
make: *** [all-recursive] Error 1


As serialize_krb5_ctx() is surrounded by ifdef HAVE_KRB5 & ifdef
HAVE_LUCID_CONTEXT_SUPPORT, in the case where those
two variables are defined serialize_krb5_ctx() need write_oid which is
supposed to be defined somewhere. And in nfs-utils-1.0.8 it's
been defined.

I was able to compile the nfs-utils-1.0.9 package just by adding the
write_oid() function call in utils/gssd/write_bytes.h. I am not sure
what
these variables are used for in the configure script.


Thanks
Usha

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs