[MacPorts] #58524: gegl-0.4 @0.4.16_0+x11: error: unknown type name 'vm_statistics64_data_t'

MacPorts noreply at macports.org
Sat May 25 18:18:32 UTC 2019


#58524: gegl-0.4 @0.4.16_0+x11: error: unknown type name 'vm_statistics64_data_t'
--------------------+----------------------
 Reporter:  kencu   |      Owner:  dbevans
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  gegl-0.4
--------------------+----------------------
 I noticed this on PPC Leopard, and I assume it applies to all
 32bit/universal builds. I haven't yet tried a 32bit/universal build on a
 system > 10.5 to confirm that, however.

 There has been a new memory-evaluation function added to `gegl-config.c`
 <https://github.com/GNOME/gegl/commit/ac331b5c0e3d940b64bb811b0f54e86c7d312917
 #diff-c462b14ada961cc89bb7257fe62d6365> and it appears that it does not
 consider 32bit builds.

 It delivers this error:
 {{{
 libtool: compile:  /opt/local/bin/gcc-mp-6 -m32 -DHAVE_CONFIG_H -I. -I..
 -I.. -I../gegl -I../gegl -I../gegl/buffer -I../gegl/buffer -I../gegl/graph
 -I../gegl/graph -I../gegl/operation -I../gegl/operation -I../gegl/opencl
 -I../gegl/opencl -I../gegl/process -I../gegl/process -I../gegl/property-
 types -I../gegl/property-types -DLIBDIR=\"/opt/local/lib\"
 -DG_LOG_DOMAIN=\"GEGL\" -DGEGL_LOCALEDIR=\"/opt/local/share/locale\"
 -I/opt/local/include -I/opt/local/include/LegacySupport
 -I/opt/local/include/LegacySupport -D_REENTRANT -I/opt/local/include/json-
 glib-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1 -pipe -Os
 -I/opt/local/include/LegacySupport -fno-altivec
 -I/opt/local/include/LegacySupport -m32 -Wall -Wdeclaration-after-
 statement -Wmissing-prototypes -Wmissing-declarations -Winit-self
 -Wpointer-arith -Wold-style-definition -MT gegl-config.lo -MD -MP -MF
 .deps/gegl-config.Tpo -c gegl-config.c  -fno-common -DPIC -o .libs/gegl-
 config.o

 gegl-config.c: In function 'gegl_config_class_init':
 gegl-config.c:263:5: warning: ISO C90 forbids mixed declarations and code
 [-Wdeclaration-after-statement]
      vm_size_t              page_size = sysconf (_SC_PAGESIZE);
      ^~~~~~~~~
 gegl-config.c:265:5: error: unknown type name 'vm_statistics64_data_t'
      vm_statistics64_data_t vm_stat;
      ^~~~~~~~~~~~~~~~~~~~~~
 gegl-config.c:267:36: error: 'HOST_VM_INFO64_COUNT' undeclared (first use
 in this function)
      unsigned int           count = HOST_VM_INFO64_COUNT;
                                     ^~~~~~~~~~~~~~~~~~~~
 gegl-config.c:267:36: note: each undeclared identifier is reported only
 once for each function it appears in
 gegl-config.c:269:12: warning: implicit declaration of function
 'host_statistics64' [-Wimplicit-function-declaration]
      kret = host_statistics64 (host, HOST_VM_INFO64,
 (host_info64_t)&vm_stat, &count);
             ^~~~~~~~~~~~~~~~~
 gegl-config.c:269:37: error: 'HOST_VM_INFO64' undeclared (first use in
 this function)
      kret = host_statistics64 (host, HOST_VM_INFO64,
 (host_info64_t)&vm_stat, &count);
                                      ^~~~~~~~~~~~~~
 gegl-config.c:269:54: error: 'host_info64_t' undeclared (first use in this
 function)
      kret = host_statistics64 (host, HOST_VM_INFO64,
 (host_info64_t)&vm_stat, &count);
                                                       ^~~~~~~~~~~~~
 gegl-config.c:273:38: error: request for member 'free_count' in something
 not a structure or union
        mem_available = (long) (vm_stat.free_count + vm_stat.active_count
                                       ^
 gegl-config.c:273:59: error: request for member 'active_count' in
 something not a structure or union
        mem_available = (long) (vm_stat.free_count + vm_stat.active_count
                                                            ^
 gegl-config.c:274:40: error: request for member 'inactive_count' in
 something not a structure or union
                                + vm_stat.inactive_count
                                         ^
 make[3]: *** [gegl-config.lo] Error 1
 }}}

 I'll attach a simple patch that fixes the build by enabling a 32bit
 pathway.

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


More information about the macports-tickets mailing list