[ http://nagoya.apache.org/jira/browse/XERCESC-381?page=history ]
Alberto Massari updated XERCESC-381: ------------------------------------ Priority: Major > Changes required to build with gcc 2.95.2 on hpux and aix > --------------------------------------------------------- > > Key: XERCESC-381 > URL: http://nagoya.apache.org/jira/browse/XERCESC-381 > Project: Xerces-C++ > Type: Bug > Components: Build > Versions: 1.6.0 > Environment: Operating System: HP-UX > Platform: HP > Reporter: Bhushan Khanal > Assignee: Xerces-C Developers Mailing List > > Here are the changes we had to make to build xerces 1.6 with gcc 2.95.2 on hpux > 11. > ./idom/IDDocumentImpl.hpp > ---------------------------- > // avoid the size_t error on hpux > #ifdef HPUX > #include <stdio.h> > #endif > ./parsers/IDOMParser.cpp > --------------------------- > // avoid the size_t error on hpux > #ifdef HPUX > #include <stdio.h> > #endif > ./util/Transcoders/Iconv/IconvTransService.cpp > ----------------------------------------------- > // need to skip this ifdef on HPUX > #if !defined(XML_HPUX) > #if defined (XML_GCC) || defined (XML_PTX) || defined (XML_IBMVAOS2) > #include <wctype.h> > #endif > #endif > makefile.incl diff > --------------------------- > 1c1 > < # -*- makefile -*- > --- > > # > 195,207c195 > < ifeq (${CXX}, g++) > < # flags for compiling with gcc on aix. > < PLATFORM_COMPILE_OPTIONS= -D${PLATFORM} -gxcoff+ -Wno-format -Wno- > comment -Wno-return-type -fhuge-objects -D_THREAD_SAFE -D_REENTRANT -mthreads > < MAKE_SHARED = ${CXX} -D${PLATFORM} -shared -gxcoff+ -mthreads - > Xlinker -bbigtoc ${LDFLAGS} > < MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared -gxcoff+ -mthreads - > Xlinker -bbigtoc ${LDFLAGS} > < else > < PLATFORM_COMPILE_OPTIONS = -qnotempinc -D_THREAD_SAFE > < MAKE_SHARED = makeC++SharedLib_r -p 5000 -brtl ${LDFLAGS} > < MAKE_SHARED_C = makeC++SharedLib_r -p 5000 -brtl ${LDFLAGS} > < EXTRA_LINK_OPTIONS = -bmap:$(XML_OBJ)/${LIBNAME}${VER}.map > < endif > < > < ifeq (${TRANSCODER}, ICU) > --- > > ifeq (${TRANSCODER}, ICU) > 209,213c197,204 > < else > < ALLLIBS = $(LIBS) > < endif > < > < SHLIBSUFFIX=.a > --- > > else > > ALLLIBS = ${LIBS} -L/usr/lpp/xlC/lib > > endif > > PLATFORM_COMPILE_OPTIONS = -qnotempinc -D_THREAD_SAFE > > MAKE_SHARED = makeC++SharedLib_r -p 5000 -brtl ${LDFLAGS} > > MAKE_SHARED_C = makeC++SharedLib_r -p 5000 -brtl ${LDFLAGS} > > EXTRA_LINK_OPTIONS = -bmap:$(XML_OBJ)/${LIBNAME}${VER}.map > > SHLIBSUFFIX=.a > 333,346d323 > < # add stuff for g++ > < endif > < ifeq (${CXX}, g++) > < PLATFORM_COMPILE_OPTIONS= -D${PLATFORM} -fPIC -D__POSIX_C_SOURCE=199506L > < MAKE_SHARED = ${CXX} -D${PLATFORM} -shared -fPIC ${LDFLAGS} > < MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared -fPIC ${LDFLAGS} > < ALLLIBS = ${LIBS} > < ifeq (${TRANSCODER}, ICU) > < ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licuuc - > licudata -lc > < else > < ALLLIBS = ${LIBS} > < endif > < SHLIBSUFFIX=.sl > < # end of added stuff -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]