You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Mario Drobics <ma...@athen.scch.at> on 2000/07/17 15:50:23 UTC

samples crash, package doesnt compile

i'm using xalan-c 0.40 for linux and xerces-c 1.2 for linux on a debian
potato system with 2.2.15 kernel and glibc2.1. xerces works realy fine,
but xalan makes some troubles..

* first problem - executing the samples:

compiling is ok, but executing:

$ gdb SimpleTransform
GNU gdb 19990928
<snip>
(gdb) r
Starting program: /home/mdrobics/work/mla/simple/otest

Program received signal SIGSEGV, Segmentation fault.
0x40242783 in XSLTEngineImpl::reset () from /usr/lib/libxalan-c0_40.so
(gdb)

* second problem - compiling the complete package:

# make all
<snip>
g++ -O   -fpic -instances=static -DLINUX -D_REENTRANT -c  -I . -I
/usr/share/xalan-c/src/ -I /usr/share/xerces-c/include/  -o
/usr/share/xalan-c/obj/XMLParserLiaison.o
XMLSupport/XMLParserLiaison.cpp
g++ -O   -fpic -instances=static -DLINUX -D_REENTRANT -c  -I . -I
/usr/share/xalan-c/src/ -I /usr/share/xerces-c/include/  -o
/usr/share/xalan-c/obj/XMLParserLiaisonDefault.o
XMLSupport/XMLParserLiaisonDefault.cpp
XMLSupport/XMLParserLiaisonDefault.cpp: In method `void
XMLParserLiaisonDefault::toMarkup(const XalanDocument &, PrintWriter &,
const XalanDOMString &, bool)':
XMLSupport/XMLParserLiaisonDefault.cpp:241: initialization of non-const
reference type `class auto_ptr<FormatterListener> &'
XMLSupport/XMLParserLiaisonDefault.cpp:241: from rvalue of type
`auto_ptr<FormatterListener>'
/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/memory:40:
in passing argument 1 of `auto_ptr<FormatterListener>::operator
=(auto_ptr<FormatterListener> &)'
XMLSupport/XMLParserLiaisonDefault.cpp:261: initialization of non-const
reference type `class auto_ptr<FormatterListener> &'
XMLSupport/XMLParserLiaisonDefault.cpp:261: from rvalue of type
`auto_ptr<FormatterListener>'
/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/memory:40:
in passing argument 1 of `auto_ptr<FormatterListener>::operator
=(auto_ptr<FormatterListener> &)'
make: *** [/usr/share/xalan-c/obj/XMLParserLiaisonDefault.o] Error 1
# g++ -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)
# 

tnx,
-mario drobics-

Re: samples crash, package doesnt compile

Posted by Mario Drobics <ma...@athen.scch.at>.
recompiling the package works now. 
using the new package, the samples compile & run fine too.
tnx,
-mario-

	subject: Re: samples crash, package doesnt compile
	David_N_Bertoni@lotus.com
	Date: Mon Jul 17 2000 - 18:00:11 MEST 

	We've never built the samples under Linux, so there could be some
problems. 
	Can you post your makefile? I'll try to build it myself and see what
the 
	problem is. 

	As far as the second problem, you should search the mailing list
archives 
	for this compiler problem. It has been answered several times. Your 
	version of std::auto_ptr is newer than the one supplied with RedHat
6.1. 
	Try commenting out the following line in the file GCCDefinitions.hpp: 

	#define XALAN_OLD_AUTO_PTR 

	Dave