[MacPorts] #60319: cdo @1.9.8: error: variable has incomplete type 'struct mach_task_basic_info'

MacPorts noreply at macports.org
Sun Apr 5 08:39:29 UTC 2020


#60319: cdo @1.9.8: error: variable has incomplete type 'struct
mach_task_basic_info'
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  tenomoto
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:              |       Port:  cdo
------------------------+----------------------
 [https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/20963/steps
 /install-port/logs/stdio cdo fails to build] at least on Lion:

 {{{
 getRSS.c:97:30: error: variable has incomplete type 'struct
 mach_task_basic_info'
         struct mach_task_basic_info info;
                                     ^
 getRSS.c:97:9: note: forward declaration of 'struct mach_task_basic_info'
         struct mach_task_basic_info info;
                ^
 getRSS.c:98:37: error: use of undeclared identifier
 'MACH_TASK_BASIC_INFO_COUNT'
         mach_msg_type_number_t infoCount = MACH_TASK_BASIC_INFO_COUNT;
                                            ^
 getRSS.c:99:37: error: use of undeclared identifier 'MACH_TASK_BASIC_INFO'
         if ( task_info( mach_task_self( ), MACH_TASK_BASIC_INFO,
                                            ^
 3 errors generated.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/60319>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list