[
https://issues.apache.org/jira/browse/XERCESC-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Boris Kolpackov closed XERCESC-381.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.8.0
Assignee: (was: Xerces-C Developers Mailing List)
> Changes required to build with gcc 2.95.2 on hpux and aix
> ---------------------------------------------------------
>
> Key: XERCESC-381
> URL: https://issues.apache.org/jira/browse/XERCESC-381
> Project: Xerces-C++
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.6.0
> Environment: Operating System: HP-UX
> Platform: HP
> Reporter: Bhushan Khanal
> Fix For: 2.8.0
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]