Whamcloud - gitweb
LU-7366 build: resolve compile issues on Ubuntu 15.04 08/17008/2
authorJames Simmons <uja.ornl@yahoo.com>
Sun, 1 Nov 2015 16:47:29 +0000 (11:47 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 Nov 2015 15:40:09 +0000 (15:40 +0000)
Ubuntu 15.04 has been released which uses a 4.2 kernel
and gcc 5.2. The gcc version fails to build lustre due
to missing headers in the GSS userland code and a
variable not being uninitialized in the llite layer.

Change-Id: I3615414ac039277a6ef6c6af1a541590b9d79566
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: http://review.whamcloud.com/17008
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Frank Zago <fzago@cray.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/symlink.c
lustre/utils/gss/lgss_utils.h
lustre/utils/gss/svcgssd_proc.c

index 4b1a9da..e635037 100644 (file)
@@ -160,7 +160,7 @@ static const char *ll_follow_link(struct dentry *dentry, void **cookie)
 {
        struct inode *inode = d_inode(dentry);
        struct ptlrpc_request *request;
-       char *symname;
+       char *symname = NULL;
        int rc;
        ENTRY;
 
index 51a8f45..1c0e377 100644 (file)
@@ -39,6 +39,7 @@
 #ifndef LGSS_UTILS_H
 #define LGSS_UTILS_H
 
+#include <inttypes.h>
 #include <stdlib.h>
 #include <stdint.h>
 #include <gssapi/gssapi.h>
index 1ff7859..588b524 100644 (file)
@@ -38,6 +38,7 @@
 #include <sys/param.h>
 #include <sys/stat.h>
 
+#include <inttypes.h>
 #include <pwd.h>
 #include <stdio.h>
 #include <unistd.h>