martinillou:
I've downloaded the last version of Marlin.
Are you sure? Which version? Marlin 1.0.2-2 was released yesterday with a fix for that issue: Release 1.0.2-2 · MarlinFirmware/Marlin · GitHub. Give it a try if you haven't already. It was also fixed in RC a while ago.
If you click the "Watch" button on the Marlin repository you will get an email every time they do a release(for example, you would have gotten one yesterday for 1.0.2-2). You will need a GitHub account to do that but they are free and easy to set up and GitHub doesn't spam you at all except that you will also get email notifications about issue reports and pull requests on that repository also. You might be able to turn those off in the notifications section of your profile settings, I'm not sure about that. Still, it's kind of interesting to watch the goings-on in a repository, especially if it's something you are using. You could always unwatch the repository if it ends up being too many emails.
Rename fpos_t variables in SdBaseFile.h and SdBaseFile.cpp to another name like fpos_t1 and recompile. Problem is in C++ you can not use typedef and struct for the same varibale name.
fpos_t is already defined in stdio.h which is a hardware library file for arduino