Hi again,
I've been off for a few days so I couldn't get back to you.
 
This last error you are talking about I believe has to do with threading options, it looks like an exception not being caugth is causing an abort (via a kill). To be sure about this you can issue a "bt" (backtrace command) while in gdb.
 
When compiling with aCC using the -AA option, if you are using threads (remember runConfigure -r pthread for the xercesc lib build) you must be consistent with all builds. I'm almost sure about this is the origin the core dump. To achieve this there are another options:
 
* Rebuild samples ignoring threading options.
* If you want to use threads, rebuild samples including the following defines in your Makefile.incl as you did before with the -AA option. I missed to comment them before  but if you take a look there are two other options added to the original Makefile.incl. file (-D_RWSTD_MULTI_THREAD -D_REENTRANT) I'm assumming you also missed to notice this.
 
#================= HP SPECIFIC OPTIONS ===========================
ifeq (${PLATFORM}, HPUX)
  ifeq (${COMPILER}, aCC)
    CMP = -c +DAportable $(CXXFLAGS) -D_HP_UX -DHPaCC -w +z -D_RWSTD_MULTI_THREAD -D_REENTRANT
    CC = aCC -AA   
    LINK =  ${CC} -Wl,+s -Wl,+b,. ${LDFLAGS}
    PLATFORM_LIB_LINK_OPTIONS=-L/opt/aCC/lib -L/usr/ccs/lib -lpthread
    SHLIBSUFFIX=.sl
  else
    ifneq (${DEBUG}, 1)
      CXXFLAGS = -w +O1
    endif
    APPL_NAME = $(notdir $(shell pwd))
    TEMPLATESDIR = $(XERCESCROOT)/bin/obj/$(APPL_NAME)/ptrepository
    COMMON_CMP = $(CXXFLAGS) -D_HP_UX -DHPCC +DAportable -w +eh +z -z \
        -ptr$(TEMPLATESDIR)
    CMP = -c $(COMMON_CMP)
    CC = CC
    LINK =  ${CC} $(COMMON_CMP) -Wl,+s -Wl,+b,. ${LDFLAGS}
    PLATFORM_LIB_LINK_OPTIONS=-L/opt/CC/lib -L/usr/lib
    SHLIBSUFFIX=.sl
  endif
endif
I hope this finally does it. If you want more information about the aCC options, libraries and also what is this -AA all about and the consequences when linking and the like, you can refer to the online guide of aCC. Probably it is located under /opt/aCC/html
 
 
Ernesto
 
-----Mensaje original-----
De: Kathiravan [mailto:[EMAIL PROTECTED]
Enviado el: s�bado, 06 de diciembre de 2003 12:49
Para: Garcia Del Moral Gonzalez, Ernesto
CC: [EMAIL PROTECTED]
Asunto: "coredump" error while running samples in xerces in HP-unix 11

Hi,
 
           I have successfully build samples in xercse in hp unix 11, thanx to Ernesto, who is helped me lot to do it. But while try to run scripts in bin directory (where all samples are installed), i received a "coredump"  error like :
 
 
                          $ ls
                           CreateDOMDocument  EnumVal            Redirect           SAXCount           StdInParse
                           DOMCount           MemParse           SAX2Count          SAXPrint           core
                            DOMPrint           PParse             SAX2Print          SEnumVal           obj
 
 

                            $ ./SAX2Count
                                Abort(coredump)
                            $
 
                     Could any one of you  provide me a solution to debug with help of GDB or any other solutions to solve this problem . When i tried to debug with GDB i received the following error message,
 
 
                   $ gdb SAX2Count
                    HP gdb 3.1.1 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
                    Copyright 1986 - 2001 Free Software Foundation, Inc.
                    Hewlett-Packard Wildebeest 3.1.1 (based on GDB) is covered by the
                    GNU General Public License. Type "show copying" to see the conditions to
                    change it and/or distribute copies. Type "show warranty" for warranty/support.
                    ..(no debugging symbols found)...
 
                       I can't locate the real problem.
              
            Regards,
            Kathir.V


_____________________________________________________________

Uni2 Telecomunicaciones, S.A.U.

Aviso legal:


Este mensaje electr�nico est� dirigido �nicamente a la(s) direcci�n(es) indicadas anteriormente; el car�cter confidencial, personal e intransferible del mismo est� protegido legalmente. Cualquier revelaci�n, uso o reenv�o no autorizado, completo o en parte, est� prohibido.


Si ha recibido este mensaje por equivocaci�n, notif�quelo inmediatamente a la persona que lo ha enviado y borre el mensaje original junto con sus ficheros anexos sin leerlo ni grabarlo, total o parcialmente.


Gracias


Reply via email to