Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1483

Xerces C++ 2.5.0 Samples Build Failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.5.0
    • None
    • Samples/Tests
    • None
    • CPU Type is sparc
      App Architecture is sparc
      Kernel Architecture is sun4u
      OS Name is SunOS
      OS Version is 5.8
      Kernel Version is SunOS Release 5.8 Version Generic_108528-16 [UNIX(R) System V Release 4.0]

    Description

      The configuration runs successfully as shown below, however, there was an issue in the build when I executed gmake. It seems there were some undefined symbols, can anyone help me, this is urgent:

      aibrahim@mmxx:542% runConfigure -psolaris -cgcc -xg++
      Generating makefiles with the following options ...
      Platform: solaris
      C Compiler: gcc
      C++ Compiler: g++
      Thread option: none
      bitsToBuild option: 32
      Extra compile options:
      Extra link options:
      Debug is OFF

      creating cache ./config.cache
      checking for gcc... gcc
      checking whether the C compiler (gcc -w -O -DAPP_NO_THREADS -DXML_USE_NO_THREADS ) works... yes
      checking whether the C compiler (gcc -w -O -DAPP_NO_THREADS -DXML_USE_NO_THREADS ) is a cross-compiler... no
      checking whether we are using GNU C... yes
      checking whether gcc accepts -g... yes
      checking for c+... g+
      checking whether the C++ compiler (g++ -w -O -DAPP_NO_THREADS -DXML_USE_NO_THREADS ) works... yes
      checking whether the C++ compiler (g++ -w -O -DAPP_NO_THREADS -DXML_USE_NO_THREADS ) is a cross-compiler... yes
      checking whether we are using GNU C++... yes
      checking whether g++ accepts -g... yes
      checking for a BSD compatible install... /lsi/soft/CFR/bin/install -c
      checking for autoconf... autoconf
      checking for floor in -lm... yes
      checking for pthread_create in -lpthread... yes
      checking how to run the C preprocessor... gcc -E
      checking for inttypes.h... yes
      checking host system type... sparc-sun-solaris2.8
      updating cache ./config.cache
      creating ./config.status
      creating Makefile
      creating SAXCount/Makefile
      creating SAX2Count/Makefile
      creating DOMCount/Makefile
      creating SAXPrint/Makefile
      creating SAX2Print/Makefile
      creating DOMPrint/Makefile
      creating MemParse/Makefile
      creating Redirect/Makefile
      creating PParse/Makefile
      creating StdInParse/Makefile
      creating EnumVal/Makefile
      creating SEnumVal/Makefile
      creating CreateDOMDocument/Makefile
      creating SCMPrint/Makefile
      creating PSVIWriter/Makefile

      Having build problems? Read instructions at http://xml.apache.org/xerces-c/build.html

      In future, you may also directly type the following commands to create the Makefiles.

      export THREADS="none"
      export BITSTOBUILD="32"
      export CC="gcc"
      export CXX="g++"
      export CXXFLAGS=" -w -O -DAPP_NO_THREADS -DXML_USE_NO_THREADS "
      export CFLAGS=" -w -O -DAPP_NO_THREADS -DXML_USE_NO_THREADS "
      export LDFLAGS=" "
      export EXTRA_LIBS=" "
      configure

      If the result of the above commands look OK to you, go to the directory
      /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/samples and type "gmake" to make the samples.

      aibrahim@mmxx:571% gmake
      Building SAXPrint
      gmake -C SAXPrint
      gmake[1]: Entering directory `/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/samples/SAXPrint'
      mkdir -p /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint
      g++ -DSOLARIS -fpic -L/usr/lib -L/usr/local/lib /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C+-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o -o /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C-Parser/xerces-c-src_2_5_0/bin/SAXPrint -L/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C+-Parser/xerces-c-src_2_5_0/lib -lxerces-c -lc
      Undefined first referenced
      symbol in file
      std::ios_base::Init::~Init [in-charge]()/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      __cxa_pure_virtual /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
      std::ios_base::Init::Init[in-charge]()/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      __cxa_end_catch /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      vtable for _cxxabiv1::_si_class_type_info/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (std::basic_ostream<char, std::char_traits<char> >&))/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      vtable for _cxxabiv1::_vmi_class_type_info/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
      vtable for _cxxabiv1::_enum_type_info/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/lib/libxerces-c.so
      std::cout /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      operator new[](unsigned) /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/lib/libxerces-c.so
      typeinfo for int /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/lib/libxerces-c.so
      std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      vtable for _cxxabiv1::_class_type_info/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      operator delete(void*) /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
      __cxa_rethrow /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/lib/libxerces-c.so
      operator new(unsigned) /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/lib/libxerces-c.so
      __gxx_personality_v0 /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      __cxa_throw /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
      std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      operator delete[](void*) /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/lib/libxerces-c.so
      std::cerr /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      std::basic_ostream<char, std::char_traits<char> >::operator<<(long)/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
      std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned long)/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
      __cxa_allocate_exception /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
      std::basic_ostream<char, std::char_traits<char> >::write(char const*, int)/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
      std::basic_ostream<char, std::char_traits<char> >::flush()/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
      __cxa_begin_catch /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
      ld: fatal: Symbol referencing errors. No output written to /lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/SAXPrint
      collect2: ld returned 1 exit status
      gmake[1]: *** [/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/bin/SAXPrint] Error 1
      gmake[1]: Leaving directory `/lsi/minn/61a/cwqa/aibrahim/XML/Apache-C++-Parser/xerces-c-src_2_5_0/samples/SAXPrint'
      gmake: *** [saxprint] Error

      Attachments

        Activity

          People

            Unassigned Unassigned
            aibrahim Ali M Ibrahim
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: