[MacPorts] #43895: xercesc3 does not build when using c++11

MacPorts noreply at macports.org
Tue Jun 3 14:31:51 PDT 2014


#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


More information about the macports-tickets mailing list