[fpc-devel] __stkptr

Den Jean Den.Jean at telenet.be
Fri Feb 24 18:09:24 CET 2006


On Friday 24 February 2006 03:25 am, Peter Vreman wrote:
> Make sure you have updated all files from svn. The __stkptr is defined in
> the loader files named *ptr*.o
I did
svn update fpc
now I did
rm -fr fpc
svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc
cd fpc
make PREFIX=/usr clean
make PREFIX=/usr all
make PREFIX=/usr install
ln -fs /usr/lib/fpc/2.1.1/ppc386 /usr/bin/

svn update gives:
At revision 2674

still same __stkptr problem.

As i have problems with fpc 2.0.2  I compile fpc with 2.0.0

The problems with 2.0.2 are that some calls to libqt4intf
fail (exception div by zero) and not with 2.0.0
I still need to trim down a sample program to be able to
report the bug, but is ok to compile 2.1.1 with 2.0.0 ?

BTW the dll fails for a call to this
void QPainter_drawLine3(QPainterH handle, int x1, int y1, int x2, int y2)
{
	((QPainter *)handle)->drawLine(x1, y1, x2, y2);
}
if i printf the parameters within this dll, they are fine (no 
reference/value/byteswap problem but something else)

another call fails after a while, something extra on the stack ???

with fpc 2.0.0 everything works fine, even when the programs runs for a longer 
time.

kind regards,

Den Jean





More information about the fpc-devel mailing list