[MacPorts] #42304: srecord @1.36_0 build failure

MacPorts noreply at macports.org
Tue Jan 28 15:54:20 PST 2014


#42304: srecord @1.36_0 build failure
-----------------------+--------------------------------
 Reporter:  pjkim00@…  |      Owner:  macports-tickets@…
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.2.1
 Keywords:  have fix   |       Port:
-----------------------+--------------------------------
 Am not too fluent in C++ but when I tried to install record on Mavericks,
 received the following error message:

 {{{
 lib/interval.cc:793:19: error: call to 'to_string' is ambiguous
         result += to_string(data[j]);
                   ^~~~~~~~~

 }}}

 I tried to "disambiguate" the call by typing data[] to (int) and it seems
 to fix the problem. The diff of the fix is:

 {{{
 [/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/srecord/work/srecord-1.36/lib]$
 diff interval_orig.cc interval.cc
 793c793
 <         result += to_string(data[j]);
 ---
 >         result += to_string( (int) data[j]);
 797c797
 <             result += to_string(data[j] + 1);
 ---
 >             result += to_string( (int) data[j] + 1);
 802c802
 <             result += to_string(data[j + 1] - 1);
 ---
 >             result += to_string( (int) data[j + 1] - 1);
 }}}

 This appears to fix the compile problem and the resulting binaries work as
 expected.

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


More information about the macports-tickets mailing list