[torquedev] [Bug 74] Building FreeBSD fails

bugzilla-daemon at supercluster.org bugzilla-daemon at supercluster.org
Fri Jul 23 16:48:34 MDT 2010


http://www.clusterresources.com/bugzilla/show_bug.cgi?id=74

Garrick Staples <garrick at usc.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |garrick at usc.edu

--- Comment #1 from Garrick Staples <garrick at usc.edu> 2010-07-23 16:48:34 MDT ---
I think this will fix the first problem.

$ svn diff src/server/node_manager.c 
Index: src/server/node_manager.c
===================================================================
--- src/server/node_manager.c   (revision 3917)
+++ src/server/node_manager.c   (working copy)
@@ -91,6 +91,7 @@
 #include <netinet/in.h>
 #include <stdarg.h>
 #include <assert.h>
+#include <sys/socket.h>
 #if defined(NTOHL_NEEDS_ARPA_INET_H) && defined(HAVE_ARPA_INET_H)
 #include <arpa/inet.h>
 #endif
@@ -1930,7 +1931,7 @@
     else if (allow_any_mom)                                           
       {                                                               
         {                                                             
-          hp = gethostbyaddr(&ipaddr, sizeof(ipaddr), AF_INET);       
+          hp = gethostbyaddr((void *)&ipaddr, sizeof(ipaddr), AF_INET);       
           if(hp != NULL)                                              
             {                                                         
             strncpy(nodename, hp->h_name, PBS_MAXHOSTNAME);

-- 
Configure bugmail: http://www.clusterresources.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the torquedev mailing list