[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:
-DATOMIC_UNCOLLECTABLE=1  -I.  -I./include   -fexceptions -g -O2 -c

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