[MacPorts] #54789: gtk2 @2.24.31_0+x11: error: stray '\177' in program

MacPorts noreply at macports.org
Sun Sep 10 14:11:54 UTC 2017


#54789: gtk2 @2.24.31_0+x11: error: stray '\177' in program
---------------------------+--------------------
  Reporter:  rickyzhang82  |      Owner:
      Type:  defect        |     Status:  closed
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.4.1
Resolution:  invalid       |   Keywords:
      Port:  gtk2          |
---------------------------+--------------------
Changes (by ryandesign):

 * keywords:  tiger =>
 * cc: ryandesign (added)


Comment:

 Glad you got it working on retry. I was going to report back that gtk2
 also built for me with no problems on Tiger ppc.

 Maybe you experienced a random single-bit corruption; it is uncommon but
 it [https://lists.macports.org/pipermail/macports-
 dev/2012-February/017842.html happens] from time to time.

 The error message was:

 {{{
 ../gtk/gtkfilechooser.h:240: error: stray '\177' in program
 ../gtk/gtkfilechooser.h:240: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'chooser_set_filter'
 }}}

 Lines 240-241 of gtkfilechooser.h are:

 {{{
 void           gtk_file_chooser_set_filter (GtkFileChooser *chooser,
                                            GtkFileFilter  *filter);
 }}}

 So the character before `chooser_set_filter` is supposed to be `_`, which
 is represented as `137` in octal or `01011111` in binary. If one bit got
 inadvertently flipped, making it `01111111`, that would be `177` in octal.

--
Ticket URL: <https://trac.macports.org/ticket/54789#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list