[Mauiusers] had to alter extern lines in src/maui/MPBSI.c

DuChene, StevenX A stevenx.a.duchene at intel.com
Fri Mar 16 16:42:23 MDT 2012


In order to get maui to compile with the include files from a fresh install of Torque-4.0 I had to make the following modifications to src/moab/MPBSI.c

--- maui-3.3.1/src/moab/MPBSI.c 2011-03-04 08:28:25.000000000 -0800
+++ maui-3.3.1_altered/src/moab/MPBSI.c 2012-03-16 14:20:02.732259530 -0700
@@ -174,8 +174,8 @@

extern int pbs_errno;

-extern int get_svrport(const char *,char *,int);
-extern int openrm(char *,int);
+extern unsigned int get_svrport(char *,char *,unsigned int);
+extern int openrm(char *,unsigned int);
extern int addreq(int,char *);
extern int closerm(int);
extern int pbs_stagein(int,char *,char *,char *);

Prior to making this modification the compile would error out with:

--- maui-3.3.1/src/moab/MPBSI.c 2011-03-04 08:28:25.000000000 -0800
+++ maui-3.3.1_altered/src/moab/MPBSI.c 2012-03-16 14:20:02.732259530 -0700
@@ -174,8 +174,8 @@

extern int pbs_errno;

-extern int get_svrport(const char *,char *,int);
-extern int openrm(char *,int);
+extern unsigned int get_svrport(char *,char *,unsigned int);
+extern int openrm(char *,unsigned int);
extern int addreq(int,char *);
extern int closerm(int);
extern int pbs_stagein(int,char *,char *,char *);

After making the above modifications the build was successful and I was able to run maui-3.3.1
--
Steven DuChene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/mauiusers/attachments/20120316/f1856920/attachment.html 


More information about the mauiusers mailing list