[torqueusers] OS X compile troubles

Glen Beane beaneg at umcs.maine.edu
Fri Dec 9 16:55:09 MST 2005


any chance ./configure could add these automatically on darwin 8.x?

I fixed a lot of the issues with 10.4 / darwin 8 but I stayed away from 
the autoconf stuff,  and I don't think this is well documented.

Cliff Kirby wrote:
> Add this at the top of darwin/mom_mach.c:
> #define TUSEMEMSIZE
> 
> Add this in src/include/pbs_config.h AFTER you run ./configure:
> #define __TDARWIN_8
> 
> 
> -----Original Message-----
> From: torqueusers-bounces at supercluster.org
> [mailto:torqueusers-bounces at supercluster.org] On Behalf Of Chemistry System
> Admin
> Sent: Friday, December 09, 2005 9:35 AM
> To: torqueusers at supercluster.org
> Subject: [torqueusers] OS X compile troubles
> 
> Hello,
>     I am trying to compile torque for some Dual G5 Power Mac's running
> OS X:
> 
> root# uname -a
> Darwin allen 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT
> 2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power Macintosh powerpc
> allen:/usr/local/src/Original/torque-2.0.0p2 root#
> 
> When I try to compile torque it manages to go through a good majority of
> it until it gets to this point. Then I get the following errors:
> 
> 
> Making all in resmom
> gcc -g -I../include -I../../src/include -I./darwin -DHAVE_CONFIG_H -
> DPBS_MOM -DDEMUX=\"/usr/local/Dist/torque-2.0.0p2/sbin/pbs_demux\" -
> DRCP_PATH=\"/usr/local/Dist/torque-2.0.0p2/sbin/pbs_rcp\" -
> c ./darwin/mom_mach.c
> /darwin/mom_mach.c: In function 'mem_sum':
> /darwin/mom_mach.c:576: error: 'struct vmspace' has no member named
> 'vm_tsize'
> /darwin/mom_mach.c:576: error: 'struct vmspace' has no member named
> 'vm_dsize'
> /darwin/mom_mach.c:576: error: 'struct vmspace' has no member named
> 'vm_ssize'
> /darwin/mom_mach.c: In function 'resi_sum':
> /darwin/mom_mach.c:627: error: 'struct vmspace' has no member named
> 'vm_rssize'
> /darwin/mom_mach.c:629: error: 'struct vmspace' has no member named
> 'vm_rssize'
> /darwin/mom_mach.c: In function 'overmem_proc':
> /darwin/mom_mach.c:676: error: 'struct vmspace' has no member named
> 'vm_tsize'
> /darwin/mom_mach.c:676: error: 'struct vmspace' has no member named
> 'vm_dsize'
> /darwin/mom_mach.c:676: error: 'struct vmspace' has no member named
> 'vm_ssize'
> /darwin/mom_mach.c: In function 'bs_cmp':
> /darwin/mom_mach.c:964: error: dereferencing pointer to incomplete type
> /darwin/mom_mach.c: In function 'mom_get_sample':
> /darwin/mom_mach.c:1099: error: storage size of 'ss' isn't known
> /darwin/mom_mach.c:1141: warning: passing argument 4 of 'qsort' from
> incompatible pointer type
> /darwin/mom_mach.c:1173: warning: passing argument 5 of 'bsearch' from
> incompatible pointer type
> /darwin/mom_mach.c: In function 'cput_job':
> /darwin/mom_mach.c:1688: warning: comparison between pointer and
> integer
> /darwin/mom_mach.c: In function 'cput_proc':
> /darwin/mom_mach.c:1755: warning: comparison between pointer and
> integer
> /darwin/mom_mach.c: In function 'mem_job':
> /darwin/mom_mach.c:1886: error: 'struct vmspace' has no member named
> 'vm_tsize'
> /darwin/mom_mach.c:1887: error: 'struct vmspace' has no member named
> 'vm_dsize'
> /darwin/mom_mach.c:1888: error: 'struct vmspace' has no member named
> 'vm_ssize'
> /darwin/mom_mach.c: In function 'mem_proc':
> /darwin/mom_mach.c:1950: error: 'struct vmspace' has no member named
> 'vm_tsize'
> /darwin/mom_mach.c:1951: error: 'struct vmspace' has no member named
> 'vm_dsize'
> /darwin/mom_mach.c:1952: error: 'struct vmspace' has no member named
> 'vm_ssize'
> /darwin/mom_mach.c: In function 'resi_job':
> /darwin/mom_mach.c:2048: error: 'struct vmspace' has no member named
> 'vm_rssize'
> /darwin/mom_mach.c: In function 'resi_proc':
> /darwin/mom_mach.c:2103: error: 'struct vmspace' has no member named
> 'vm_rssize'
> /darwin/mom_mach.c: In function 'walltime':
> /darwin/mom_mach.c:2945: warning: comparison between pointer and
> integer
> /darwin/mom_mach.c: In function 'quota':
> /darwin/mom_mach.c:3120: warning: comparison between pointer and
> integer
> make[3]: *** [mom_mach.o] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
> allen:/usr/local/src/Original/torque-2.0.0p2 root#
> 
> 
> Any Ideas how I could fix this so it compiles? Thanks in advance.
> 
> -Steve
> 
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
>  
> 
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
> 
> 


More information about the torqueusers mailing list