[MacPorts] #72570: aimage @3.2.5: Build failure

MacPorts noreply at macports.org
Sat Jun 7 08:06:16 UTC 2025


#72570: aimage @3.2.5: Build failure
------------------------+--------------------
  Reporter:  amadeus24  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  aimage     |
------------------------+--------------------

Comment (by ryandesign):

 Replying to [ticket:72570 amadeus24]:
 > {{{
 > :info:build aimage.cpp:347:21: error: invalid suffix on literal; C++11
 requires a space between literal and identifier [-Wreserved-user-defined-
 literal]
 > :info:build   347 |                     "   pagenum=%"I64d"
 bytes_to_write=%d bytes_written=%d lap_time=%f\n",
 > :info:build       |                                   ^
 > :info:build       |
 > :info:build aimage.cpp:624:26: error: invalid suffix on literal; C++11
 requires a space between literal and identifier [-Wreserved-user-defined-
 literal]
 > :info:build   624 |
 switch(sscanf(arg,"%"I64d"%c%c",&ret,&ch,&junk)){
 > :info:build       |                          ^
 > }}}

 For these errors at least, presumably your compiler is so new that it
 defaults to C++11 mode (or later) but this code doesn't work in C++11 mode
 (or later). This project appears to have been abandoned by its developer
 so we don't expect any new releases so we have to fix it ourselves. Either
 we patch the code to work with C++11 and later (trivial in the case of
 these errors) or we add a `-std=c++03` flag to CXXFLAGS to downgrade the
 compiler to pre-C++11 mode.

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


More information about the macports-tickets mailing list