[MacPorts] #43895: xercesc3 does not build when using c++11
#43895: xercesc3 does not build when using c++11 -----------------------+-------------------------------- Reporter: william@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Keywords: | Port: xercesc3 -----------------------+-------------------------------- Using the configure line: {{{ sudo port install xercesc3 configure.cxx_stdlib=libc++ configure.cxxflags=-std=c++11 \ configure.macosx_deployment_target=10.7 \ configure.sdkroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk }}} … the build fails with the following error: {{{ :info:build xercesc/util/regx/ParserForXMLSchema.cpp:159:42: error: non- constant-expression cannot be narrowed from type 'XMLInt32' (aka 'int') to 'XMLCh' (aka 'unsigned short') in initializer list [-Wc++11-narrowing] :info:build XMLCh chString[] = {chBackSlash, ch, chNull}; :info:build ^~ :info:build xercesc/util/regx/ParserForXMLSchema.cpp:159:42: note: override this message by inserting an explicit cast :info:build XMLCh chString[] = {chBackSlash, ch, chNull}; :info:build ^~ :info:build static_cast<XMLCh>( ) :info:build 1 error generated. :info:build make[4]: *** [xercesc/util/regx/ParserForXMLSchema.lo] Error 1 }}} I assume the easy patch as suggested by clang will be appropriate. -- Ticket URL: <https://trac.macports.org/ticket/43895> MacPorts <http://www.macports.org/> Ports system for OS X
#43895: xercesc3 does not build when using c++11 ------------------------+-------------------------------- Reporter: william@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: Port: xercesc3 | ------------------------+-------------------------------- Comment (by william@…): Attached patches allow successful build with C++11. -- Ticket URL: <https://trac.macports.org/ticket/43895#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43895: xercesc3 does not build when using c++11 ------------------------+-------------------------------- Reporter: william@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: haspatch Port: xercesc3 | ------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: => haspatch -- Ticket URL: <https://trac.macports.org/ticket/43895#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43895: xercesc3 does not build when using c++11 ------------------------+-------------------------------- Reporter: william@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: haspatch Port: xercesc3 | ------------------------+-------------------------------- Comment (by william@…): Note that this is also fixed upstream, and is scheduled for the Xerces-C++ 3.2.0 release. I couldn't find any information about when that release is expected to occur though, so it would seem prudent for us to patch here in the mean time. https://issues.apache.org/jira/browse/XERCESC-1995 -- Ticket URL: <https://trac.macports.org/ticket/43895#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43895: xercesc3 does not build when using c++11 ------------------------+-------------------------------- Reporter: william@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: haspatch Port: xercesc3 | ------------------------+-------------------------------- Comment (by ryandesign@…): Replying to [ticket:43895 william@…]:
Using the configure line:
{{{ sudo port install xercesc3 configure.cxx_stdlib=libc++ configure.cxxflags=-std=c++11 \ configure.macosx_deployment_target=10.7 \
configure.sdkroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
}}}
… the build fails with the following error:
Why add all these flags? The port builds fine for me when I just run "`sudo port install xercesc3`". -- Ticket URL: <https://trac.macports.org/ticket/43895#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#43895: xercesc3 does not build when using c++11 ------------------------+---------------------- Reporter: william@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.0 Resolution: | Keywords: haspatch Port: xercesc3 | ------------------------+---------------------- Changes (by snc@…): * owner: macports-tickets@… => snc@… * status: new => assigned -- Ticket URL: <https://trac.macports.org/ticket/43895#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts