> I haven't noticed up to now, but using fpc-2.0.4 on FreeBSD does not > work completely in FreeBSD 4.11 any more.
This is by design. The default changed from FreeBSD4 to FreeBSD5 here. The meaning of the compat switch -Xf changed accordingly afaik. > - Compiling fpc 2.0.4 works. > - Compiling programs does not work with the new startup > code (rtl/freebsd/i386/cprto.as) > error: failure in _init_tls() > couldn't find info on what that is ... initialise the 5.x TLS supporting threading libs. > - ... but multitasking isn't possible, the old cprt0.as > does not work with threads at all > errors: Make sure nothing defines FreeBSD5, and use -Xd. > Is there any chance of having support for FreeBSD 4 integrated into > newer compilers? Afaik, all support is still there, except maybe the startup code. Just make sure that FreeBSD > If the difference in initializing threads between 2.0.2 and 2.0.4 would > be put into makefiles or ifdef's I think it could work ... but my > knowledge of compiler internals and startup code is very limited. This difference is twofold: - startup codee, which you "fixed" (some diffing between the two would also help. - -Xf which changes to the "non-default" FreeBSD version on both 2.0.2 (where it switches to 5.x) and 2.0.4(where it tries 4.x behaviour). _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal