The current version of Linux is 2.6 (
www.kernel.org). I guess that you're talking about your distribution version, but you haven't said what your distribution is.
With this information, about all I can say is that there is a difference between the awk parser on each operating system. This probably means that there has been a change to the language and so you do have an actual parser error. Without seeing the script or error message, I cannot suggest what that error might be or how to fix it.