Greetings,

I downloaded the source of XML4C, version 3.5.0, that uses Xerces-C parser
v.1.5.0 and I'm trying to build it with gcc 2.95.3 on HP-UX 11.00 platform.
I browsed through the archives of this mailing list, but even though I
noticed that several people have had a similar problem before still I was
not able to find a sufficient answer to the problem. I realized that, in
order to build the source drop with these settings, I need to modify my
Makefile.incl to allow use of gcc on HP-UX. I have inserted the following
changes in the Makefile.incl, under HP specific options (see attachment for
complete file):

  ifeq ($(CXX), g++)
    ifeq ($(MODULE), dom)
        PLATFORM_COMPILE_OPTIONS = -DDOM_PROJ -DAPP_NO_THREADS
-D_POSIX_C_SOURCE=199506L -fPIC -D${PLATFORM} -D${OSVERDEFINE}
    else
        PLATFORM_COMPILE_OPTIONS = -DAPP_NO_THREADS
-D_POSIX_C_SOURCE=199506L -fPIC -D${PLATFORM} -D${OSVERDEFINE}
    endif

    MAKE_SHARED = ${CXX} -D${PLATFORM} -shared -fPIC
    MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared -fPIC

    ifeq (${TRANSCODER}, ICU)
        ALLLIBS = ${LIBS} -licu-uc -licudata
    else
        ALLLIBS = ${LIBS}
-L/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3 -L/usr/local/lib 
    endif
    SHLIBSUFFIX=.sl
  else
   ifeq (${CXX}, aCC)
        *** nothing changed here***
   else
        *** nothing changed here***
   endif
  endif
endif

I manage to build the shared library (libxerces-c1.5.sl) and some of the
samples successfully, but when I try to run e.g. DOMPrint it core dumps
immediately (I see that exactly the same behavior has been observed and
reported to this mailing list by other people, but I was not able to find
the answer on how to go further). I get same results for both
single-threaded and multi-threaded build.

It seems to me that I have not built the shared library properly, which
indicates that my options in Makefile.incl could be wrong.

I noticed also that it has been suggested to modify XercesDefs.hpp file to
include the option of having HP-UX with gcc, in order to be able to include
GCCDefs.hpp file. However, it seems to me that this file is actually being
included without need for modifications.

Please help me on this one. I have spent a lot of time trying to figure this
out, but with no luck. I previously used XML4C v.3.1.0 on Solaris with both
CC and gcc with great success.

Any help will be greatly appreciated.

Thank you.

Best regards,
Mufrid Krilic


 <<Makefile.incl>> 

Makefile.incl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to