[fpc-pascal] FPC 2.x for old Solaris
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Sun Jan 16 19:22:22 CET 2011
Mark Morgan Lloyd wrote:
> Thanks for that, noted for next time :-) The solution turned out to be
> fairly easy: the Solaris compiler uses dynamic libraries since some
> (libm) don't exist in static form on 10 and others (libmd5 etc.) don't
> exist in static form at all. Taking ppcsparc from 10 and running it on 8
> failed because it was linked against libm.so which was a symlink to
> libm.so.2, it was resolving that at link time so required libm.so.2
> rather than libm.so. However libm.so.1 is on Solaris 10 and simply
> changing the symlink before linkage created a binary that would run on
> both 10 and 8.
>
> So the remaining question is whether it it possible to tell FPC build to
> always link against libm.so.1 rather than using the symlink, since
> messing around with the symlink would obviously be undesirable on a
> system with multiple users.
>
> As noted elsewhere I've got FPC on Solaris 10 to the state where it will
> compile (but not fully link) Lazarus, fpGUI appears OK so we're probably
> at a state where lazbuild on simple projects would work.
FPC 2.4.2 is OK on both Solaris 8 and 10, including the fp text IDE
(without mouse or debugger support). Minor patches in bug 0018271 might
be a prerequisite.
I'm not trying Lazarus on Solaris 8 on account of missing libraries etc.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list