[MacPorts] #49391: gtk3 3.18 +quartz variant does not build on Mac OS X 10.6.8, Snow Leopard, "error: expected ‘)’ before ‘instancetype’"

MacPorts noreply at macports.org
Fri Oct 23 09:58:36 PDT 2015


#49391: gtk3 3.18 +quartz variant does not build on Mac OS X 10.6.8, Snow Leopard,
"error: expected ‘)’ before ‘instancetype’"
-----------------------------+--------------------------------
 Reporter:  Peter_Dyballa@…  |      Owner:  macports-tickets@…
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.3.4
 Keywords:                   |       Port:  gtk3
-----------------------------+--------------------------------
 {{{
 /bin/sh ../../libtool  --tag=CC   --mode=compile /usr/bin/llvm-gcc-4.2
 -arch x86_64 -DHAVE_CONFIG_H -I. -I../..  -DG_LOG_DOMAIN=\"Gdk\"
 -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk  -DG_ENABLE_DEBUG
 -DG_DISABLE_CAST_CHECKS -DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_44
 -DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_46 -D_REENTRANT
 -DMESA_EGL_NO_X11_HEADERS -I/opt/local/include/pango-1.0
 -I/opt/local/include/harfbuzz -I/opt/local/include
 -I/opt/local/include/pango-1.0 -I/opt/local/include/gdk-pixbuf-2.0
 -I/opt/local/include/libpng16 -I/opt/local/include/cairo
 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include/cairo
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include
 -I/opt/local/include/freetype2 -I/opt/local/include
 -I/opt/local/include/freetype2 -I/opt/local/include
 -I/opt/local/include/libpng16 -I/opt/local/include   "-xobjective-c"
 -I/opt/local/include -DX_LOCALE  -pipe -Os -fstrict-aliasing -arch x86_64
 -Wall -MT gdkevents-quartz.lo -MD -MP -MF .deps/gdkevents-quartz.Tpo -c -o
 gdkevents-quartz.lo gdkevents-quartz.c
 libtool: compile:  /usr/bin/llvm-gcc-4.2 -arch x86_64 -DHAVE_CONFIG_H -I.
 -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk
 -I../../gdk -DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS
 -DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_44
 -DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_46 -D_REENTRANT
 -DMESA_EGL_NO_X11_HEADERS -I/opt/local/include/pango-1.0
 -I/opt/local/include/harfbuzz -I/opt/local/include
 -I/opt/local/include/pango-1.0 -I/opt/local/include/gdk-pixbuf-2.0
 -I/opt/local/include/libpng16 -I/opt/local/include/cairo
 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include/cairo
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include
 -I/opt/local/include/freetype2 -I/opt/local/include
 -I/opt/local/include/freetype2 -I/opt/local/include
 -I/opt/local/include/libpng16 -I/opt/local/include -xobjective-c
 -I/opt/local/include -DX_LOCALE -pipe -Os -fstrict-aliasing -arch x86_64
 -Wall -MT gdkevents-quartz.lo -MD -MP -MF .deps/gdkevents-quartz.Tpo -c
 gdkevents-quartz.c  -fno-common -DPIC -o .libs/gdkevents-quartz.o
 gdkdevice-core-quartz.c: In function ‘gdk_quartz_device_core_get_state’:
 gdkdevice-core-quartz.c:133: warning: ‘gdk_window_get_pointer’ is
 deprecated (declared at ../../gdk/gdkwindow.h:851)
 gdkdisplaymanager-quartz.c: In function
 ‘gdk_quartz_display_manager_class_init’:
 gdkdisplaymanager-quartz.c:58: warning: unused variable ‘manager_class’
 gdkcursor-quartz.c: In function ‘-[gdkCoreCursor _coreCursorType]’:
 gdkcursor-quartz.c:299: warning: ‘NSCursor’ may not respond to
 ‘-_coreCursorType’
 gdkcursor-quartz.c:299: warning: (Messages without a matching method
 signature
 gdkcursor-quartz.c:299: warning: will be assumed to return ‘id’ and accept
 gdkcursor-quartz.c:299: warning: ‘...’ as arguments.)
 gdkcursor-quartz.c:299: warning: return makes integer from pointer without
 a cast
 gdkcursor-quartz.c: At top level:
 gdkcursor-quartz.c:313: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:314: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:320: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:321: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:322: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:325: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:326: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:327: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:328: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:329: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:330: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:331: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:332: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:333: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:334: error: expected ‘)’ before ‘instancetype’
 gdkcursor-quartz.c:335: error: expected ‘)’ before ‘instancetype’
 …
 make[4]: *** [gdkcursor-quartz.lo] Error 1
 }}}

 The build without +quartz succeeds.

-- 
Ticket URL: <https://trac.macports.org/ticket/49391>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list