Re: [Gtk2forpascal-devel] Examples and menu problems
Brought to you by:
mgaertner
From: Mattias G. <nc-...@ne...> - 2002-08-04 08:43:46
|
On 03 Aug 2002 21:01:14 +0200 Tomas Bzatek <tb...@po...> wrote: > Hi, > > first of all, I cannot still run any example compiled by > compile_with_fpc_under_linux.sh and make_examples.sh scripts. > Compilation and linking works without error, but when I try to run an > executable, i got this error: > Inconsistency detected by ld.so: dl-minimal.c: 114: realloc: Assertion > `ptr == alloc_last_block' failed! > What's wrong? I assume that your libs are not corrupted. The compilation is correct and so is compile_with_fpc_under_linux.sh. So, you still get the wrong linking order. Try to link manually: Compile your program with a small bug to stop the linker: ppc386 -Fu<gtk2_ppu_directory> -k-lboguslib <yourprogram>.pas This should result in a linker error, such as Can't find -lboguslib Now you should have a 'ppas.sh' and a 'link.res' file, created by the compiler. Normally these files are deleted on successful linking. Remove the '-lboguslib' from ppas.sh to get a working script. Calling ./ppas.sh should link the buggy program that you know. Now edit link.res and play around with the order of the libs. Call ppas.sh and start your program to see the result. For example put the ld-linux to the top. Can you send the link.res? Mattias |