[MacPorts] #59563: configure.cxxflags-append -std=c++11 # plus `port bump`

MacPorts noreply at macports.org
Sat Nov 2 14:40:28 UTC 2019


#59563: configure.cxxflags-append -std=c++11 # plus `port bump`
----------------------+--------------------------
 Reporter:  vike2000  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:  mariadb-10.2
----------------------+--------------------------
 **Adding**
 {{{
     configure.cxxflags-append \
                         -std=c++11
 }}}
 (after `configure.args-append` but Portfile is basically declarative,
 right), \\ \\
 **''solving''** build warnings like
  *  `deleted function definitions are a C++11 extension
 [-Wc++11-extensions]`,
  * but most important
  {{{
  /opt/local/include/libxml2/unicode/localpointer.h:224:34: warning: rvalue
 references are a C++11 extension [-Wc++11-extensions]
      LocalPointer(LocalPointer<T> &&src) U_NOEXCEPT :
 LocalPointerBase<T>(src.ptr) {
                                   ^
  }}}
  resulting in **''build errors''** like
  {{{
  /opt/local/include/libxml2/unicode/localpointer.h:224:40: error: expected
 ';' at end of declaration list
      LocalPointer(LocalPointer<T> &&src) U_NOEXCEPT :
 LocalPointerBase<T>(src.ptr) {
                                         ^
  }}}

 **Notes**
  * I have [https://codewithchris.com/xcode-update/ force-updated xcode]
 between this ticket and previous working `port install
 mariadb-10.2-server`.
  * I was actually working with either of `port {} mariadb-10.2{,-server}`.

-- 
Ticket URL: <https://trac.macports.org/ticket/59563>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list