gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/usr/local/ssl/include -I/usr/local/berkeley-db/include -I/usr/local/ssl/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/berkeley-db/include -I/usr/local/include -I/usr/local/perl_libs/privlib/darwin-thread-multi-2level/CORE -g -O2 -Udarwin8 -Ddarwin8=darwin8 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts -c hardware/memory/memory_darwin.c -fno-common -DPIC -o hardware/memory/.libs/memory_darwin.o
hardware/memory/memory_darwin.c: In function 'pages_swapped':
hardware/memory/memory_darwin.c:22: error: 'boolean_t' undeclared (first use in this function)
hardware/memory/memory_darwin.c:22: error: (Each undeclared identifier is reported only once
hardware/memory/memory_darwin.c:22: error: for each function it appears in.)
hardware/memory/memory_darwin.c:22: error: parse error before 'retval'
hardware/memory/memory_darwin.c:23: error: 'kern_return_t' undeclared (first use in this function)
hardware/memory/memory_darwin.c:24: error: 'processor_set_t' undeclared (first use in this function)
hardware/memory/memory_darwin.c:24: error: 'psets' undeclared (first use in this function)
hardware/memory/memory_darwin.c:24: error: 'pset' undeclared (first use in this function)
hardware/memory/memory_darwin.c:24: warning: left-hand operand of comma expression has no effect
hardware/memory/memory_darwin.c:24: warning: statement with no effect
hardware/memory/memory_darwin.c:25: error: 'task_t' undeclared (first use in this function)
hardware/memory/memory_darwin.c:25: error: 'tasks' undeclared (first use in this function)
hardware/memory/memory_darwin.c:26: warning: ISO C90 forbids mixed declarations and code
hardware/memory/memory_darwin.c:28: error: 'mach_msg_type_number_t' undeclared (first use in this function)
hardware/memory/memory_darwin.c:28: error: parse error before 'count'
hardware/memory/memory_darwin.c:29: error: 'vm_address_t' undeclared (first use in this function)
hardware/memory/memory_darwin.c:30: error: 'mach_port_t' undeclared (first use in this function)
hardware/memory/memory_darwin.c:31: error: 'vm_region_extended_info_data_t' undeclared (first use in this function)
hardware/memory/memory_darwin.c:32: error: 'vm_size_t' undeclared (first use in this function)
hardware/memory/memory_darwin.c:39: error: 'mach_port' undeclared (first use in this function)
hardware/memory/memory_darwin.c:39: warning: implicit declaration of function 'mach_host_self'
hardware/memory/memory_darwin.c:40: error: 'error' undeclared (first use in this function)
hardware/memory/memory_darwin.c:40: warning: implicit declaration of function 'host_processor_sets'
hardware/memory/memory_darwin.c:41: error: 'KERN_SUCCESS' undeclared (first use in this function)
hardware/memory/memory_darwin.c:42: warning: implicit declaration of function 'mach_error_string'
hardware/memory/memory_darwin.c:42: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
hardware/memory/memory_darwin.c:48: warning: implicit declaration of function 'host_processor_set_priv'
hardware/memory/memory_darwin.c:50: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
hardware/memory/memory_darwin.c:55: warning: implicit declaration of function 'processor_set_tasks'
hardware/memory/memory_darwin.c:57: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
hardware/memory/memory_darwin.c:63: warning: implicit declaration of function 'pid_for_task'
hardware/memory/memory_darwin.c:70: error: 'address' undeclared (first use in this function)
hardware/memory/memory_darwin.c:70: error: 'size' undeclared (first use in this function)
hardware/memory/memory_darwin.c:72: error: 'count' undeclared (first use in this function)
hardware/memory/memory_darwin.c:72: error: 'VM_REGION_EXTENDED_INFO_COUNT' undeclared (first use in this function)
hardware/memory/memory_darwin.c:73: warning: implicit declaration of function 'vm_region'
hardware/memory/memory_darwin.c:73: error: 'VM_REGION_EXTENDED_INFO' undeclared (first use in this function)
hardware/memory/memory_darwin.c:73: error: 'vm_region_extended_info_t' undeclared (first use in this function)
hardware/memory/memory_darwin.c:73: error: 'info' undeclared (first use in this function)
hardware/memory/memory_darwin.c:73: error: 'object_name' undeclared (first use in this function)
hardware/memory/memory_darwin.c:87: warning: implicit declaration of function 'mach_task_self'
hardware/memory/memory_darwin.c:88: warning: implicit declaration of function 'mach_port_deallocate'
hardware/memory/memory_darwin.c: In function 'swapsize':
hardware/memory/memory_darwin.c:101: error: 'DIR' undeclared (first use in this function)
hardware/memory/memory_darwin.c:101: error: 'dirp' undeclared (first use in this function)
hardware/memory/memory_darwin.c:102: warning: ISO C90 forbids mixed declarations and code
hardware/memory/memory_darwin.c:103: error: storage size of 'buf' isn't known
hardware/memory/memory_darwin.c:112: warning: implicit declaration of function 'opendir'
hardware/memory/memory_darwin.c:113: warning: implicit declaration of function 'readdir'
hardware/memory/memory_darwin.c:113: warning: assignment makes pointer from integer without a cast
hardware/memory/memory_darwin.c:117: error: dereferencing pointer to incomplete type
hardware/memory/memory_darwin.c:117: warning: cast discards qualifiers from pointer target type
hardware/memory/memory_darwin.c:117: warning: cast discards qualifiers from pointer target type
hardware/memory/memory_darwin.c:118: error: dereferencing pointer to incomplete type
hardware/memory/memory_darwin.c:120: warning: implicit declaration of function 'stat'
hardware/memory/memory_darwin.c:133: warning: implicit declaration of function 'closedir'
hardware/memory/memory_darwin.c:103: warning: unused variable 'buf'
hardware/memory/memory_darwin.c:100: warning: unused variable 'n'
hardware/memory/memory_darwin.c:100: warning: unused variable 'i'
hardware/memory/memory_darwin.c:99: warning: unused variable 'pagesize'
hardware/memory/memory_darwin.c: In function 'netsnmp_mem_arch_load':
hardware/memory/memory_darwin.c:148: error: 'CTL_HW' undeclared (first use in this function)
hardware/memory/memory_darwin.c:148: error: 'HW_PHYSMEM' undeclared (first use in this function)
hardware/memory/memory_darwin.c:152: error: 'CTL_VM' undeclared (first use in this function)
hardware/memory/memory_darwin.c:152: error: 'HW_PAGESIZE' undeclared (first use in this function)
hardware/memory/memory_darwin.c:157: error: 'vm_statistics_data_t' undeclared (first use in this function)
hardware/memory/memory_darwin.c:157: error: parse error before 'vm_stat'
hardware/memory/memory_darwin.c:159: warning: implicit declaration of function 'sysctl'
hardware/memory/memory_darwin.c:161: warning: implicit declaration of function 'host_statistics'
hardware/memory/memory_darwin.c:161: error: 'HOST_VM_INFO' undeclared (first use in this function)
hardware/memory/memory_darwin.c:161: error: 'vm_stat' undeclared (first use in this function)
hardware/memory/memory_darwin.c:161: error: 'count' undeclared (first use in this function)
hardware/memory/memory_darwin.c:162: error: request for member 'active_count' in something not a structure or union
hardware/memory/memory_darwin.c:162: error: request for member 'inactive_count' in something not a structure or union
hardware/memory/memory_darwin.c:163: error: invalid operands to binary +
hardware/memory/memory_darwin.c:163: error: request for member 'wire_count' in something not a structure or union
hardware/memory/memory_darwin.c:163: error: invalid operands to binary +
hardware/memory/memory_darwin.c:163: warning: statement with no effect
make[2]: *** [hardware/memory/memory_darwin.lo] Error 1
make[1]: *** [subdirs] Error 1
make: *** [subdirs] Error 1