[MacPorts] #49515: glib2: error: array subscript is not an integer

MacPorts noreply at macports.org
Wed Nov 11 03:20:00 PST 2015


#49515: glib2: error: array subscript is not an integer
----------------------------+--------------------------
  Reporter:  j.bugzilla2@…  |      Owner:  ryandesign@…
      Type:  defect         |     Status:  closed
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.3.4
Resolution:  invalid        |   Keywords:
      Port:  glib2          |
----------------------------+--------------------------

Comment (by dony@…):

 Hi
 Seems I have exactly same bug (see log file extract below) and same
 software configuration (same versions of Xcode, clang, etc, all the same).
 So I'll try installing Xcode 6.2 ... and ... do I need to update clang
 CommandLineTool? or does it come with Xcode? ... (I'm not so aware about
 all of this)
 I'll try and tell.
 thanks for the help.
 Christophe


 ---
 extract of log file

 :info:build /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/clang
 -DHAVE_CONFIG_H -I. -I..  -I/opt/local/include -DG_LOG_DOMAIN=\"GLib-GIO\"
 -I.. -I../glib -I../glib -I.. -I../gmodule -DG_DISABLE_CAST_CHECKS
 -DGIO_COMPILATION -DGIO_MODULE_DIR=\"/opt/local/lib/gio/modules\"
 -I/opt/local/include -D_REENTRANT  -fvisibility=hidden -xobjective-c -pipe
 -Os -fstrict-aliasing -arch x86_64 -arch i386 -c -o libgio_2_0_la-
 gcocoanotificationbackend.lo `test -f 'gcocoanotificationbackend.c' ||
 echo './'`gcocoanotificationbackend.c
 :info:build libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I..
 -I/opt/local/include -DG_LOG_DOMAIN=\"GLib-GIO\" -I.. -I../glib -I../glib
 -I.. -I../gmodule -DG_DISABLE_CAST_CHECKS -DGIO_COMPILATION
 -DGIO_MODULE_DIR=\"/opt/local/lib/gio/modules\" -I/opt/local/include
 -D_REENTRANT -fvisibility=hidden -xobjective-c -pipe -Os -fstrict-aliasing
 -arch x86_64 -arch i386 -c gcocoanotificationbackend.c  -fno-common -DPIC
 -o .libs/libgio_2_0_la-gcocoanotificationbackend.o
 :info:build gcocoanotificationbackend.c:115:52: error: array subscript is
 not an integer
 :info:build       const char *action = [[notification
 userInfo][@"default"] UTF8String];
 :info:build ^~~~~~~~~~~
 :info:build gcocoanotificationbackend.c:122:52: error: array subscript is
 not an integer
 :info:build       const char *action = [[notification
 userInfo][@"button0"] UTF8String];
 :info:build ^~~~~~~~~~~
 :info:build gcocoanotificationbackend.c:161:16: error: array subscript is
 not an integer
 :info:build       user_info[@"default"] = action_name;
 :info:build                ^~~~~~~~~~~
 :info:build gcocoanotificationbackend.c:181:20: error: array subscript is
 not an integer
 :info:build           user_info[@"button0"] = action_name;
 :info:build                    ^~~~~~~~~~~

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


More information about the macports-tickets mailing list