Hi Ernesto,
 
                 As you said, i have cleaned all files using
 
           $gmake distclean
 
           in both source and samples directory and run the same configure command ($runConfigure -p hp-11 -x aCC -c cc -r pthread -b 32 -z -AA) in both source and samples. In the source i didn't receive any error message, but while building samples i received error in gmake which is as follow,
 
 
          
$ gmake
Building SAXPrint
gmake -C SAXPrint
gmake[1]: Entering directory `/home/kav/xerces-c-src_2_3_0/samples/SAXPrint'
mkdir -p /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint
aCC -I. -I/home/kav/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O  -DXML_USE_PTHREADS   -D_HP_UX -DHPaCC -w +z -o /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrint.o /home/kav/xerces-c-src_2_3_0/samples/SAXPrint/SAXPrint.cpp
Warning:        1 future errors were detected and suppressed. Either remove the '-w' option or add a '+p' option to detect and fix them before they become fatal errors in a future release.
aCC -I. -I/home/kav/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O  -DXML_USE_PTHREADS   -D_HP_UX -DHPaCC -w +z -o /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrintHandlers.o /home/kav/xerces-c-src_2_3_0/samples/SAXPrint/SAXPrintHandlers.cpp
aCC -Wl,+s -Wl,+b,.  -L/opt/aCC/lib -L/usr/ccs/lib -lpthread /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrint.o /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint/SAXPrintHandlers.o -o /home/kav/xerces-c-src_2_3_0/bin/SAXPrint -L/home/kav/xerces-c-src_2_3_0/lib -lxerces-c
/usr/ccs/bin/ld: Unsatisfied symbols:
   std::cout (data)
   xercesc_2_3::SAXParseException::getColumnNumber() const (code)
   std::__rw_exception::_C_assign(const char *,unsigned long) (code)
   __rw::__rw_digit_writer_base::_C_digitize(long double) (code)
   __rw::__rw_digit_writer_base::_C_digitize(double) (code)
   __rw::__rw_numpunct_impl<char>::_C_ivals (data)
   std::__rw_std_streams (data)
   std::ios_base::Init::Init()%1 (code)
   std::cerr (data)
   __rw::__rw_digit_writer_base::_C_calc_groups(int,const char *) (code)
   std::ios_base::_C_unsafe_clear(int,int) (code)
   typeid<xercesc_2_3::SAXParseException> (data)
   xercesc_2_3::SAXParseException::getLineNumber() const (code)
   __rw::__rw_digit_writer_base::_C_digitize(unsigned long,bool,const char *) (code)
   std::ios_base::_C_fire_event(std::ios_base::event,bool) (code)
   std::ctype_byname<char>::ctype_byname(const char *,unsigned long) (code)
   xercesc_2_3::SAXParseException::~SAXParseException() (code)
   Class tables [Vtable] dependent on key function: "std::exception::~exception()" (data)
   typeid<std::exception> (data)
   __rw::__rw_digit_writer_base::_C_digitize(unsigned long long,bool) (code)
   std::ctype<char>::ctype(const std::ctype_base::mask *,bool,unsigned long) (code)
   std::exception::~exception() (code)
   std::ctype<char>::_C_initfacet(const std::locale &) (code)
   static __rw::__rw_numpunct_impl_base::_C_get_named_init_(const char *) (code)
   std::__rw_exception::_C_vformat(int,double *) (code)
   std::ctype<char>::id (data)
   xercesc_2_3::SAXParseException::SAXParseException(const xercesc_2_3::SAXParseException &)%1 (code)
   xercesc_2_3::SAXParseException::getSystemId() const (code)
   std::ios_base::_C_sync_with_stdio (data)
   std::locale::_C_make_facet(const std::locale::id &,bool,int,__rw::__rw_facet_base *(*)(int,const char *,unsigned long)) const (code)
   std::ctype<char>::_C_classic_table (data)
   std::codecvt_byname<wchar_t,char,mbstate_t>::do_out(mbstate_t &,const wchar_t *,const wchar_t *,const wchar_t *&,char *,char *,char *&) const (code)
   _HPMutexWrapper::~_HPMutexWrapper() (code)
   __rw::__rw_digit_writer_base::_C_digitize(const void *) (code)
   std::codecvt_byname<wchar_t,char,mbstate_t>::do_in(mbstate_t &,const char *,const char *,const char *&,wchar_t *,wchar_t *,wchar_t *&) const (code)
   std::basic_string<char,std::char_traits<char>,std::allocator<char>>::__nullref (data)
   std::ios_base::Init::~Init() (code)
gmake[1]: *** [/home/kav/xerces-c-src_2_3_0/bin/SAXPrint] Error 1
gmake[1]: Leaving directory `/home/kav/xerces-c-src_2_3_0/samples/SAXPrint'
gmake: *** [saxprint] Error 2
$ codecvt_bynamecodecvt_bynamecodecvt_byname
$ gmake
Building SAXPrint
gmake -C SAXPrint
gmake[1]: Entering directory `/home/kav/xerces-c-src_2_3_0/samples/SAXPrint'
mkdir -p /home/kav/xerces-c-src_2_3_0/bin/obj/SAXPrint
gmake[1]: Leaving directory `/home/kav/xerces-c-src_2_3_0/samples/SAXPrint'
Building SAX2Print
gmake -C SAX2Print
gmake[1]: Entering directory `/home/kav/xerces-c-src_2_3_0/samples/SAX2Print'
mkdir -p /home/kav/xerces-c-src_2_3_0/bin/obj/SAX2Print
aCC -I. -I/home/kav/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O  -DXML_USE_PTHREADS   -D_HP_UX -DHPaCC -w +z -o /home/kav/xerces-c-src_2_3_0/bin/obj/SAX2Print/SAX2Print.o /home/kav/xerces-c-src_2_3_0/samples/SAX2Print/SAX2Print.cpp
Warning:        1 future errors were detected and suppressed. Either remove the '-w' option or add a '+p' option to detect and fix them before they become fatal errors in a future release.
aCC -I. -I/home/kav/xerces-c-src_2_3_0/include -c +DAportable -AA -w -O  -DXML_USE_PTHREADS   -D_HP_UX -DHPaCC -w +z -o /home/kav/xerces-c-src_2_3_0/bin/obj/SAX2Print/SAX2PrintHandlers.o /home/kav/xerces-c-src_2_3_0/samples/SAX2Print/SAX2PrintHandlers.cpp
aCC -Wl,+s -Wl,+b,.  -L/opt/aCC/lib -L/usr/ccs/lib -lpthread /home/kav/xerces-c-src_2_3_0/bin/obj/SAX2Print/SAX2Print.o /home/kav/xerces-c-src_2_3_0/bin/obj/SAX2Print/SAX2PrintHandlers.o -o /home/kav/xerces-c-src_2_3_0/bin/SAX2Print -L/home/kav/xerces-c-src_2_3_0/lib -lxerces-c
/usr/ccs/bin/ld: Unsatisfied symbols:
   std::cout (data)
   xercesc_2_3::SAXParseException::getColumnNumber() const (code)
   std::__rw_exception::_C_assign(const char *,unsigned long) (code)
   __rw::__rw_digit_writer_base::_C_digitize(long double) (code)
   __rw::__rw_digit_writer_base::_C_digitize(double) (code)
   __rw::__rw_numpunct_impl<char>::_C_ivals (data)
   std::__rw_std_streams (data)
   std::ios_base::Init::Init()%1 (code)
   std::cerr (data)
   __rw::__rw_digit_writer_base::_C_calc_groups(int,const char *) (code)
   std::ios_base::_C_unsafe_clear(int,int) (code)
   typeid<xercesc_2_3::SAXParseException> (data)
   xercesc_2_3::SAXParseException::getLineNumber() const (code)
   __rw::__rw_digit_writer_base::_C_digitize(unsigned long,bool,const char *) (code)
   std::ios_base::_C_fire_event(std::ios_base::event,bool) (code)
   std::ctype_byname<char>::ctype_byname(const char *,unsigned long) (code)
   xercesc_2_3::SAXParseException::~SAXParseException() (code)
   Class tables [Vtable] dependent on key function: "std::exception::~exception()" (data)
   typeid<std::exception> (data)
   __rw::__rw_digit_writer_base::_C_digitize(unsigned long long,bool) (code)
   std::ctype<char>::ctype(const std::ctype_base::mask *,bool,unsigned long) (code)
   std::exception::~exception() (code)
   std::ctype<char>::_C_initfacet(const std::locale &) (code)
   static __rw::__rw_numpunct_impl_base::_C_get_named_init_(const char *) (code)
   std::__rw_exception::_C_vformat(int,double *) (code)
   std::ctype<char>::id (data)
   xercesc_2_3::SAXParseException::SAXParseException(const xercesc_2_3::SAXParseException &)%1 (code)
   xercesc_2_3::SAXParseException::getSystemId() const (code)
   std::ios_base::_C_sync_with_stdio (data)
   std::locale::_C_make_facet(const std::locale::id &,bool,int,__rw::__rw_facet_base *(*)(int,const char *,unsigned long)) const (code)
   std::ctype<char>::_C_classic_table (data)
   std::codecvt_byname<wchar_t,char,mbstate_t>::do_out(mbstate_t &,const wchar_t *,const wchar_t *,const wchar_t *&,char *,char *,char *&) const (code)
   _HPMutexWrapper::~_HPMutexWrapper() (code)
   __rw::__rw_digit_writer_base::_C_digitize(const void *) (code)
   std::codecvt_byname<wchar_t,char,mbstate_t>::do_in(mbstate_t &,const char *,const char *,const char *&,wchar_t *,wchar_t *,wchar_t *&) const (code)
   std::basic_string<char,std::char_traits<char>,std::allocator<char>>::__nullref (data)
   std::ios_base::Init::~Init() (code)
gmake[1]: *** [/home/kav/xerces-c-src_2_3_0/bin/SAX2Print] Error 1
gmake[1]: Leaving directory `/home/kav/xerces-c-src_2_3_0/samples/SAX2Print'
gmake: *** [sax2print] Error 2
 
 
 
                               Could you please analze this one.
 
 
                           -Kathir.V

           
 
----- Original Message -----
Sent: Friday, December 05, 2003 5:08 PM
Subject: Re: Unresolved error while running samples in xerces (HP-UX 11)

The output you should get must look similar to:
 
Shared Library Load List for CreateDOMDocument:
 
Order    Name
 
    0    CreateDOMDocument
    1     ^ /usr/lib/libpthread.1
    2     ^ /home/egarciam/desllo/xerces/xerces-c-src_2_3_0/lib/libxerces-c.sl.23         (don't mind about the path)
    3     ^  ^ /usr/lib/libpthread.1
    4     ^  ^ /usr/lib/libnsl.1
    5     ^  ^  ^ /usr/lib/libxti.2
    6     ^ /usr/lib/libstd_v2.2
    7     ^ /usr/lib/libCsup_v2.2
    8     ^ /usr/lib/libm.2
    9     ^ /usr/lib/libcl.2
   10     ^  ^ /usr/lib/libdld.2
   11     ^  ^ /usr/lib/libisamstub.1
   12     ^ /usr/lib/libc.2
   13     ^  ^ /usr/lib/libdld.2
   14     ^ /usr/lib/libdld.2
You are missing libstd_v2.2 which is where the missing symbols are defined.
I think the easiest way to solve this is to rebuild your samples using the runConfigure script, located in $XERCESCROOT/samples.
 
The following command line will do
runConfigure -p hp-11 -x aCC -c cc -r pthread -b 32 -z -AA (assuming you have installed the support runtime for this option - an HP aCC patch) but I guess you must because you have already built the library itself. Afterwards move into the source directory and build the files after cleaning(with gmake, because HP make complains)
 
The -r option in runConfigure depends in your threading options. Usually the best way to avoid such problems is to build the xerces lib and samples withe the same options.
 
I hope this helps
Regards
Ernesto
-----Mensaje original-----
De: Kathiravan [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 05 de diciembre de 2003 12:10
Para: [EMAIL PROTECTED]
CC: Garcia Del Moral Gonzalez, Ernesto
Asunto: Please Analyse this output Re: Unresolved error while running samples in xerces (HP-UX 11)

hi,
 
      Thank you very much for your suggestion. Here is the output after executing command,   $odump -sllibloadlist CreateDOMDocument
 
 
 
Output:
 
$ odump -sllibloadlist CreateDOMDocument
 
Shared Library Load List for CreateDOMDocument:
 
Order    Name
 
    0    CreateDOMDocument
    1     ^ /usr/lib/libpthread.1
    2     ^ /usr/lib/libxerces-c.sl.23
    3     ^  ^ /usr/lib/libpthread.1
    4     ^  ^ /usr/lib/libnsl.1
    5     ^  ^  ^ /usr/lib/libxti.2
    6     ^ /usr/lib/libstd.2
    7     ^ /usr/lib/libstream.2
    8     ^ /usr/lib/libCsup.2
    9     ^ /usr/lib/libm.2
   10     ^ /usr/lib/libcl.2
   11     ^  ^ /usr/lib/libdld.2
   12     ^  ^ /usr/lib/libisamstub.1
   13     ^ /usr/lib/libc.2
   14     ^  ^ /usr/lib/libdld.2
   15     ^ /usr/lib/libdld.2
 
 
                   I gave the aCC option while building the sample files.  I am new to unix, so could you please analyse the above output and give me the solution.
 
 
                                Thanks a lot.
 
                                               -Kathir.V
----- Original Message -----
Sent: Friday, December 05, 2003 4:21 PM
Subject: RE: Unresolved error while running samples in xerces (HP-UX 11)

Hi,
change dir to $XERCESCROOT/bin     (assumming the samples are created there)
could you post the output from the following program?
$odump -sllibloadlist CreateDOMDocument
 
Probably you are missing the "-AA"  aCC flag when building your sample files. This is just a guess. The odump output will tell the lib dependencies of the exec file

Regards

-----Mensaje original-----
De: Kathiravan [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 04 de diciembre de 2003 6:17
Para: [EMAIL PROTECTED]
Asunto: Unresolved error while running samples in xerces (HP-UX 11)

Hi all,
 
          I have buid the "xerces-c 2.3.0"  in HP-Unix-11 platform for 32 bit and also build the samples in the bin directory.
 
          But when i run any of scripts in bin directory like:
 
CreateDOMDocument  EnumVal            Redirect           SAXCount           StdInParse
DOMCount           MemParse           SAX2Count          SAXPrint           core
DOMPrint           PParse             SAX2Print          SEnumVal           obj
 
            I got following unresolved symbol error:

$ ./SAX2Count
/usr/lib/dld.sl: Unresolved symbol: [Vtable]key:__dt__Q2_3std9exceptionFv (data)  from /usr/lib/libxerces-c.sl.23
/usr/lib/dld.sl: Unresolved symbol: __nullref__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__ (data)  from /usr/lib/libxerces-c.sl.23
/usr/lib/dld.sl: Unresolved symbol: cout__3std (data)  from /usr/lib/libxerces-c.sl.23
/usr/lib/dld.sl: Unresolved symbol: _C_sync_with_stdio__Q2_3std8ios_base (data)  from /usr/lib/libxerces-c.sl.23
/usr/lib/dld.sl: Unresolved symbol: __rw_std_streams__3std (data)  from /usr/lib/libxerces-c.sl.23
/usr/lib/dld.sl: Unresolved symbol: typeid__XTQ2_3std9exception_ (data)  from /usr/lib/libxerces-c.sl.23
/usr/lib/dld.sl: Unresolved symbol: _C_classic_table__Q2_3std5ctypeXTc_ (data)  from /usr/lib/libxerces-c.sl.23
Abort(coredump)
 
                      Can any one provide me a solution?????
 
 
 
                   Thanks & Regards,
 
                      Kathiravan.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




_____________________________________________________________

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