in reply to flock error...?
Because flock() depends on operating system services that Win98 doesn't provide. Within the Windows family, you would have to upgrade to WinNT, Win2000, or WinXP to get flock().
You'll be O.K. once you move to Red Hat.