I'm building with no flags using dmd.
Do dmd -v for verbose output and see what linker flags it is doing. Perhaps you have a configuration difference that is causing it not to export the symbol (`fun` isn't marked `export`... I don't think that matters on linux but it might on some versions or with some configurations).
