[Gc] Problems again with built libs ;-(
Mon, 9 Dec 2002 15:30:10 -0800
It looks like either you have an inconsistent build, or you did some of the build manually without some of the -D flags.
Could you try rebuilding from scratch, passing the same -D flags used for building to the test.c compilation? (The test program knows about some GC internals to make some of the tests a bit more precise. If the flags are different, it gets some wrong ideas about some GC internals, in this case the minimum allocated object size. This specific test is not crucial for correct functioning of the collector, but it helps to verify that things are working as expected on the specific platform.)
"Make check" should also do the right thing.
> -----Original Message-----
> From: Linuxhippy [mailto:email@example.com]
> Sent: Monday, December 09, 2002 10:29 AM
> To: firstname.lastname@example.org
> Subject: Re: [Gc] Problems again with built libs ;-(
> Thanks for your response!!!
> >You may need -ldl also, e.g.:
> >gcc test.c -L. -lgc -ldl -o gctest
> Hmm, now it compiles fine, but when I want to start it, this happens:
> clemi@cc02eiss:~/Kompilieren/gc6.1/tests> ./gctest
> Switched to incremental mode
> Emulating dirty bits with mprotect/signals
> GC_malloc(0) failed: GC_size returns 8
> Test failed
> >>clemi@cc02eiss:~/Kompilieren/gc6.1/tests> gcc -o test -I ../include/
> >> ../.libs/libgc.a test.c
> I placed libs last, but it hasnt any affect ;-(
> Thanks for helping me!
> lg Linuxhippy
> Gc mailing list