a small update:
I got around the linking error by editing the /etc/fpc.cfg file from:
Code:
# searchpath for libraries
-Fl/usr/lib/gcc/x86_64-redhat-linux/4.1.1
to:
Code:
# searchpath for libraries
-Fl/usr/lib/gcc/x86_64-redhat-linux/4.1.1/32
but now we have another (linking) error
# fpc -Sd -pg OrchidFW.lpr
Free Pascal Compiler version 2.0.4 [2006/08/20] for i386
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Linux for i386
Compiling OrchidFW.lpr
Linking OrchidFW
/usr/bin/ld: skipping incompatible /usr/lib64/libdag.so when searching for /usr/lib64/libdag.so
/usr/bin/ld: cannot find /usr/lib64/libdag.so
OrchidFW.lpr(74,1) Error: Error while linking
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
/usr/lib64/libdag.so exists but that's the 64 bit version and we need the 32 bit version offcourse.
/usr/lib/libdag.so, however, does not exist.
but there is a file /usr/local/lib/libdag.so so that is a 32 bit version.
there is also a /usr/local/lib64/libdag.so
but I don't see where I need to put that in the fpc.cfg file.
this is in fpc.cfg now:
Code:
# searchpath for libraries
-Fl/usr/lib/gcc/x86_64-redhat-linux/4.1.1/32
-Fl/usr/local/lib
now I found a source file (EndaceNICDecoderUnit.pas) that has the following line:
Code:
{$link /usr/lib64/libdag.so}
so I changed this to:
Code:
{$link /usr/local/lib/libdag.so}
and then I call fpc again:
Code:
# fpc -Sd -pg OrchidFW.lpr
Free Pascal Compiler version 2.0.4 [2006/08/20] for i386
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Linux for i386
Compiling OrchidFW.lpr
Compiling EndaceNICDecoderUnit.pas
EndaceNICDecoderUnit.pas(146,3) Note: Local variable "PacketData" not used
EndaceNICDecoderUnit.pas(148,3) Note: Local variable "data" not used
EndaceNICDecoderUnit.pas(149,3) Note: Local variable "i" not used
EndaceNICDecoderUnit.pas(177,14) Warning: range check error while evaluating constants
EndaceNICDecoderUnit.pas(177,46) Warning: range check error while evaluating constants
Linking OrchidFW
/usr/bin/ld: skipping incompatible /usr/local/lib/libdag.so when searching for /usr/local/lib/libdag.so
/usr/bin/ld: cannot find /usr/local/lib/libdag.so
OrchidFW.lpr(74,1) Error: Error while linking
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)