[Gc] Problems again with built libs ;-(

Linuxhippy linuxhippy@web.de
Tue, 10 Dec 2002 23:46:56 +0100


Hi there!

 >>Hmm, tha Cpp-test still crashes with segfault at startup in
 >>the first iteration, dont know why ;-(
 >>
 >>
 >What does "g++ --version" say?  Do you have stack trace?  The C++ 
interface tends to generally have more portability problems, because 
compilers disagree on ::new replacement, etc.  But I'm surprised it 
doesn't work out-of-the-box in your environment.
 >
I hardly expect that it is really my fault, hmm but as I said before Im
a compilier-newbie...

I've compilied test_cpp.cc like that:
g++ -DGC_LINUX_THREADS=1 -D_REENTRANT=1 -DTHREAD_LOCAL_ALLOC=1
-DHAVE_DLFCN_H=1 -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1
-DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1
-DATOMIC_UNCOLLECTABLE=1  -I.  -I./include   -fexceptions -g -O2 -c
./tests/test_cpp.cc

and the linked:
g++ -fexceptions -g -O2 -o gctest_cpp test_cpp.o  .libs/libgc.a
-lpthread -ldl -Wl,--rpath -Wl,/usr/local/lib

But whe I want to start it, it says:
Starting iteration 1
Speicherzugriffsfehler (=segfault).

g++ -v says:

Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.2/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib
--enable-languages=c,c++,f77,objc,java,ada --enable-libgcj
--with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib
--with-system-zlib --enable-shared --enable-__cxa_atexit i486-suse-linux
Thread model: posix
gcc version 3.2