Storage class specifiers (IE extern, static, auto) should be first.
Also, you used both extern AND static, which is not valid.
EDIT: Hm, actually, I'm not sure if storage class specifiers HAVE to be first, but I was told they did a while back, and Comeau in strict mode issues a warning when they are not first.
Still, try to keep the storage class specifiers first.