Fwd: [libxml++] segmentation fault on solaris 10



---------- Forwarded message ----------
From: jane J <janmoon20 yahoo com>
Date: 17 oct. 2005 02:23
Subject: Re: [libxml++] segmentation fault on solaris 10
To: Christophe de VIENNE <cdevienne gmail com>


Hello Christophe,

Thank you very much for your help! However, I cannot
compile and install the version 1.0.5 on Solaris 10.
When  It run "make" command, it has the following
errors as in the attached file. My gcc (g++) (in
/usr/sfw/bin) version is 3.4.3, and the libxml2
version is 2.6.10. Attached file is the log
information when I tried to compile and install
libxml++ 1.0.5.

Looking forward to hearing from you!

Regards

Jane

--- Christophe de VIENNE <cdevienne gmail com> wrote:

> Hi Jane,
>
> You should definitely try and use the last version
> (1.0.5 on the 1.0.x branch).
> If you still have the problem, please precise what
> compiler you use,
> and send a complete backtrace.
>
> Regards,
>
> Christophe
>
> 2005/10/12, jane J <janmoon20 yahoo com>:
> > Hello,
> >  I'm a new user of libxml++ and solaris. I do need
> help for the
> > following problem:
> >
> >  when I use libxml++1.0.1 on solaris 10, it had
> the sementation fault
> > even I only tested the dom_parser example. I've
> already tried to put the
> > "xmlpp::Document::Init init;" in the main program,
> but it alway remind me
> > with a compile error of "the Init is
> > private".  What shall I do to fix this problem? or
> if the later version of
> > libxml++ had already fixed the problem?
> >
> > By using gdb, the fault occured (for the
> dom_parser example) at line:
> > >  Glib::ustring nodename = node->get_name();
> >  in the method:
> > > void print_node(const xmlpp::Node* node,
> unsigned int indentation =
> > 0)
> >
> >  Thank you very much!
> >
> >  Jane
> >
> >
> >  ________________________________
> >  Yahoo! Music Unlimited - Access over 1 million
> songs. Try it free.
> >
> >
>




__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

root db[219] ./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... ./install-sh -c
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking for Win32 Platform... no
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... egrep
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 262144
checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
appending configuration tag "F77" to libtool
checking string usability... yes
checking string presence... yes
checking for string... yes
checking list usability... yes
checking list presence... yes
checking for list... yes
checking map usability... yes
checking map presence... yes
checking for map... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML_CFLAGS... -I/usr/include/libxml2
checking for LIBXML_LIBS... -lxml2 -lpthread -lz -lm -lsocket -lnsl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libxml++/Makefile
config.status: creating libxml++/parsers/Makefile
config.status: creating libxml++/exceptions/Makefile
config.status: creating libxml++/nodes/Makefile
config.status: creating libxml++/io/Makefile
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating docs/reference/Doxyfile
config.status: creating examples/Makefile
config.status: creating examples/dom_build/Makefile
config.status: creating examples/dom_parser/Makefile
config.status: creating examples/dom_parse_entities/Makefile
config.status: creating examples/dom_read_write/Makefile
config.status: creating examples/dom_xpath/Makefile
config.status: creating examples/sax_parser/Makefile
config.status: creating examples/sax_parser_entities/Makefile
config.status: creating examples/sax_parser_build_dom/Makefile
config.status: creating examples/sax_exception/Makefile
config.status: creating examples/import_node/Makefile
config.status: creating win32_msvc6/Makefile
config.status: creating win32_msvc6/examples/Makefile
config.status: creating libxml++-1.0.pc
config.status: creating libxml++.spec
config.status: executing depfiles commands

root db[220] cat INSTALL
root db[221] make
Making all in libxml++
Making all in parsers
if /bin/bash ../../libtool --tag=CXX --mode=compile g++
-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libxml++\"
-DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STRING=1
-DHAVE_LIST=1 -DHAVE_MAP=1  -DLIBXMLPP_COMPILATION  -I. -I. -I../..
-I/usr/include/libxml2     -g -O2 -MT parser.lo -MD -MP -MF
".deps/parser.Tpo" -c -o parser.lo parser.cc; \
then mv -f ".deps/parser.Tpo" ".deps/parser.Plo"; else rm -f
".deps/parser.Tpo"; exit 1; fi
mkdir .libs
 g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libxml++\"
-DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STRING=1
-DHAVE_LIST=1 -DHAVE_MAP=1 -DLIBXMLPP_COMPILATION -I. -I. -I../..
-I/usr/include/libxml2 -g -O2 -MT parser.lo -MD -MP -MF
.deps/parser.Tpo -c parser.cc  -fPIC -DPIC -o .libs/parser.o
 g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libxml++\"
-DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STRING=1
-DHAVE_LIST=1 -DHAVE_MAP=1 -DLIBXMLPP_COMPILATION -I. -I. -I../..
-I/usr/include/libxml2 -g -O2 -MT parser.lo -MD -MP -MF
.deps/parser.Tpo -c parser.cc -o parser.o >/dev/null 2>&1
if /bin/bash ../../libtool --tag=CXX --mode=compile g++
-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libxml++\"
-DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STRING=1
-DHAVE_LIST=1 -DHAVE_MAP=1  -DLIBXMLPP_COMPILATION  -I. -I. -I../..
-I/usr/include/libxml2     -g -O2 -MT saxparser.lo -MD -MP -MF
".deps/saxparser.Tpo" -c -o saxparser.lo saxparser.cc; \
then mv -f ".deps/saxparser.Tpo" ".deps/saxparser.Plo"; else rm -f
".deps/saxparser.Tpo"; exit 1; fi
 g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libxml++\"
-DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STRING=1
-DHAVE_LIST=1 -DHAVE_MAP=1 -DLIBXMLPP_COMPILATION -I. -I. -I../..
-I/usr/include/libxml2 -g -O2 -MT saxparser.lo -MD -MP -MF
.deps/saxparser.Tpo -c saxparser.cc  -fPIC -DPIC -o .libs/saxparser.o
 g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libxml++\"
-DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STRING=1
-DHAVE_LIST=1 -DHAVE_MAP=1 -DLIBXMLPP_COMPILATION -I. -I. -I../..
-I/usr/include/libxml2 -g -O2 -MT saxparser.lo -MD -MP -MF
.deps/saxparser.Tpo -c saxparser.cc -o saxparser.o >/dev/null 2>&1
if /bin/bash ../../libtool --tag=CXX --mode=compile g++
-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libxml++\"
-DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STRING=1
-DHAVE_LIST=1 -DHAVE_MAP=1  -DLIBXMLPP_COMPILATION  -I. -I. -I../..
-I/usr/include/libxml2     -g -O2 -MT domparser.lo -MD -MP -MF
".deps/domparser.Tpo" -c -o domparser.lo domparser.cc; \
then mv -f ".deps/domparser.Tpo" ".deps/domparser.Plo"; else rm -f
".deps/domparser.Tpo"; exit 1; fi
 g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libxml++\"
-DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STRING=1
-DHAVE_LIST=1 -DHAVE_MAP=1 -DLIBXMLPP_COMPILATION -I. -I. -I../..
-I/usr/include/libxml2 -g -O2 -MT domparser.lo -MD -MP -MF
.deps/domparser.Tpo -c domparser.cc  -fPIC -DPIC -o .libs/domparser.o
 g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libxml++\"
-DVERSION=\"1.0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_STRING=1
-DHAVE_LIST=1 -DHAVE_MAP=1 -DLIBXMLPP_COMPILATION -I. -I. -I../..
-I/usr/include/libxml2 -g -O2 -MT domparser.lo -MD -MP -MF
.deps/domparser.Tpo -c domparser.cc -o domparser.o >/dev/null 2>&1
/bin/bash ../../libtool --tag=CXX --mode=link g++   -g -O2   -o
libparsers.la    parser.lo saxparser.lo domparser.lo
libtool: link: `/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../..//libstdc++.la'
is not a valid libtool archive
*** Error code 1
make: Fatal error: Command failed for target `libparsers.la'
Current working directory /OraInstall/libxml++-1.0.5/libxml++/parsers
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='parsers exceptions nodes io'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /OraInstall/libxml++-1.0.5/libxml++
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='libxml++ docs examples'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
root db[222]




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]