[MacPorts] #42304: srecord @1.36_0 build failure
#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
#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 Resolution: | Keywords: haspatch Port: srecord | ------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: have fix => haspatch * port: => srecord Comment: Attaching a Portfile patch and your patch as a unified diff would be helpful. -- Ticket URL: <https://trac.macports.org/ticket/42304#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42304: srecord @1.36_0 build failure ------------------------+-------------------------------- Reporter: pjkim00@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: duplicate | Keywords: haspatch Port: srecord | ------------------------+-------------------------------- Changes (by mf2k@…): * status: new => closed * resolution: => duplicate Comment: Duplicate of #43561. -- Ticket URL: <https://trac.macports.org/ticket/42304#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts