"S. Achterop IWI-120 3932" wrote:
The question of course is, does this ring a bell?
Maybe... There is a known problem:
: IRIX and AIX work stations (and wherever else): initializers are not : executed (GCC bug!)
This affects unit/module initializers, but it seems that the call to _p_initfdr (which is called automatically for each file type variable) is done in the same way, even in the main program.
As stated, this is actually a GCC problem. However, it is solved in gcc-2.95 by using a utility called collect2 (at least according to the docs -- I can't check it myself since I don't have access to a system affected). The next version of GPC will work with gcc-2.95, so perhaps this will already solve the problem.
To make sure it's really this bug, you can try the following code. If it fails to write `foo', it's the bug...
unit foo;
interface
implementation
to begin do Writeln ('foo');
end.
program bar;
uses foo;
begin end.
Frank