[MacPorts] #53719: highlight @3.35 does not build on Mac OS X 10.6.8, Snow Leopard, because of missing 'to_string’ declaration "in this scope"

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #53719: highlight @3.35 does not build on Mac OS X 10.6.8, Snow Leopard, because of missing 'to_string’ declaration "in this scope"

MacPorts
#53719: highlight @3.35 does not build on Mac OS X 10.6.8, Snow Leopard, because of
missing 'to_string’ declaration "in this scope"
--------------------------+-----------------------
 Reporter:  ballapete     |      Owner:
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.4.1
 Keywords:  Snow Leopard  |       Port:  highlight
--------------------------+-----------------------
 {{{

 /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/
 -I/opt/local/include ./core/rtfgenerator.cpp
 ./core/rtfgenerator.cpp: In member function ‘virtual std::string
 highlight::RtfGenerator::maskCharacter(unsigned char)’:
 ./core/rtfgenerator.cpp:279: error: ‘to_string’ was not declared in this
 scope
 ./core/rtfgenerator.cpp: In member function ‘virtual std::string
 highlight::RtfGenerator::maskCharacter(unsigned char)’:
 ./core/rtfgenerator.cpp:279: error: ‘to_string’ was not declared in this
 scope
 make[1]: *** [rtfgenerator.o] Error 1
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53719>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build on Mac OS X 10.6.8, Snow Leopard, because of missing 'to_string’ declaration "in this scope"

MacPorts
#53719: highlight @3.35 does not build on Mac OS X 10.6.8, Snow Leopard, because of
missing 'to_string’ declaration "in this scope"
------------------------+--------------------------
  Reporter:  ballapete  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:  Snow Leopard
      Port:  highlight  |
------------------------+--------------------------
Changes (by ballapete):

 * Attachment "main.log" added.

 mail.log from Snow Leopard

--
Ticket URL: <https://trac.macports.org/ticket/53719>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build on Mac OS X 10.6.8, Snow Leopard, because of missing 'to_string’ declaration "in this scope"

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build on Mac OS X 10.6.8, Snow Leopard, because of
missing 'to_string’ declaration "in this scope"
------------------------+--------------------------
  Reporter:  ballapete  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:  Snow Leopard
      Port:  highlight  |
------------------------+--------------------------

Comment (by kencu):

 C++11

 <http://en.cppreference.com/w/cpp/string/basic_string/to_string>

--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build on Mac OS X 10.6.8, Snow Leopard, because of missing 'to_string’ declaration "in this scope"

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build on Mac OS X 10.6.8, Snow Leopard, because of
missing 'to_string’ declaration "in this scope"
------------------------+--------------------------
  Reporter:  ballapete  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:  Snow Leopard
      Port:  highlight  |
------------------------+--------------------------

Comment (by kencu):

 port has nomaintainer, Pete. Do you want to go ahead submit a PR adding
 the cxx11 portgroup, and hopefully someone will pull it for you.

--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build with libstdc++ because of missing 'to_string’ declaration "in this scope" (was: highlight @3.35 does not build on Mac OS X 10.6.8, Snow Leopard, because of missing 'to_string’ declaration "in this scope")

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build with libstdc++ because of missing
'to_string’ declaration "in this scope"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  highlight   |  mountainlion
-------------------------+-------------------------------------------------
Changes (by ryandesign):

 * keywords:  Snow Leopard => tiger leopard snowleopard lion mountainlion


--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build with libstdc++ because of missing 'to_string’ declaration "in this scope"

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build with libstdc++ because of missing
'to_string’ declaration "in this scope"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  highlight   |  mountainlion
-------------------------+-------------------------------------------------

Comment (by ballapete):

 Replying to [comment:2 kencu]:
 > port has nomaintainer, Pete. Do you want to go ahead submit a PR adding
 the cxx11 portgroup, and hopefully someone will pull it for you.

 No. I do not understand C++, {{{PR}}}, {{{cxx11 portgroup}}} and why macOS
 has become so unusable. Leopard and Snow Leopard are so fine systems, I
 hardly can see a reason to deviate from this. But PR, i.e. Public
 Relations, might be shouting: {{{A new version comes first}}}. And now we
 have the salad… (as we Germans say)

--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build with libstdc++ because of missing 'to_string’ declaration "in this scope"

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build with libstdc++ because of missing
'to_string’ declaration "in this scope"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  highlight   |  mountainlion
-------------------------+-------------------------------------------------

Comment (by kencu):

 Ah, OK. I will never see these kinds of errors, because all my snowleopard
 machines are set up properly with LibcxxOnOlderSystems. Rather than
 stumble across these more and more as time goes on, I would suggest you
 consider doing the same. The buildbots may not prebuild the software, but
 the time it takes your computer to build the apps yourself is peanuts
 compared to the time you're wasting chasing down these dinosaurs.

--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build with libstdc++ because of missing 'to_string’ declaration "in this scope"

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build with libstdc++ because of missing
'to_string’ declaration "in this scope"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  highlight   |  mountainlion
-------------------------+-------------------------------------------------

Comment (by kencu):

 {{{

 $ port -v installed highlight
 The following ports are currently installed:
   highlight @3.35_0 (active) platform='darwin 10' archs='x86_64'
 date='2017-03-05T15:17:59-0800'

 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build with libstdc++ because of missing 'to_string’ declaration "in this scope"

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build with libstdc++ because of missing
'to_string’ declaration "in this scope"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  highlight   |  mountainlion
-------------------------+-------------------------------------------------

Comment (by iEFdev):

 Incase it will help anyone esle… I managed to upgrade `highlight` now,
 using a couple of configure options.

 Adding `cxx_stdlib libc++` to to the conf file didn't help. But I found an
 install note on the
 [http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX#Compiling_with_clang_3.3_and_libc.2B.2B_.28c.2B.2B11_enabled.29_.282013.29
 Inkscape-page: CompilingMacOsX#Compiling_with_clang_3.3_and_libc], so I
 used:

 Just using both options to inlcude `libc++` made it through.
 {{{
 sudo port upgrade highlight configure.cxxflags="-stdlib=libc++"
 configure.cxx="clang++ -stdlib=libc++"
 }}}

 {{{
 $ port -v installed highlight
 The following ports are currently installed:
   highlight @3.36_0 (active) platform='darwin 11' archs='x86_64'
 date='2017-04-18T06:14:46+0200'
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build with libstdc++ because of missing 'to_string’ declaration "in this scope"

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build with libstdc++ because of missing
'to_string’ declaration "in this scope"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  highlight   |  mountainlion
-------------------------+-------------------------------------------------

Comment (by ballapete):

 Replying to [comment:7 iEFdev]:

 I can confirm that highlight @0.15.2_0  built with this setup on Snow
 Leopard, Mac OS X 10.6.8.

--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build with libstdc++ because of missing 'to_string’ declaration "in this scope"

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build with libstdc++ because of missing
'to_string’ declaration "in this scope"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  highlight   |  mountainlion
-------------------------+-------------------------------------------------

Comment (by 1-61803):

 I confirm `sudo port install highlight configure.cxxflags="-stdlib=libc++"
 configure.cxx="clang++ -stdlib=libc++"` builds 3.36 on `10.8`.

--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build with libstdc++ because of missing 'to_string’ declaration "in this scope"

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build with libstdc++ because of missing
'to_string’ declaration "in this scope"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  highlight   |  mountainlion
-------------------------+-------------------------------------------------

Comment (by kencu):

 Glad it worked. Couple of things, tho.

 `clang++` does not specify a specific compiler, and will just pull in
 whatever clang++ happens to be first on your path, which may or may not
 work. In your case, it apparently did work, though. For reliability,
 configure.cxx should point towards a more completely specified compiler.

 Also, setting `configure.cxxflags="-stdlib=libc++"` will overwrite any
 other cxxflags there might be, which may or may not be important -- you
 probably would rather do a `configure.cxxflags-append` instead, if you're
 looking for a proper fix for the Portfile.

--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build with libstdc++ because of missing 'to_string’ declaration "in this scope"

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build with libstdc++ because of missing
'to_string’ declaration "in this scope"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  highlight   |  mountainlion
-------------------------+-------------------------------------------------

Comment (by 1-61803):

 See #53994 re v3.36.

--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53719: highlight @3.35 does not build with libstdc++ because of missing 'to_string’ declaration "in this scope"

MacPorts
In reply to this post by MacPorts
#53719: highlight @3.35 does not build with libstdc++ because of missing
'to_string’ declaration "in this scope"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:  kencu
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:  fixed       |   Keywords:  tiger leopard snowleopard lion
      Port:  highlight   |  mountainlion
-------------------------+-------------------------------------------------
Changes (by kencu):

 * owner:   => kencu
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"1aee29e12f6c9ee099f1fd194df8623daa9b5108/macports-ports"
 1aee29e12f6c9ee099f1fd194df8623daa9b5108/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="1aee29e12f6c9ee099f1fd194df8623daa9b5108"
 highlight: update to 3.39

 change to cxx11 1.1 portgroup
 add -stdlib to clang builds
 fixes: https://trac.macports.org/ticket/53994
 fixes: https://trac.macports.org/ticket/53719
 }}}

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