Have to make a closer test in the next days, because not understand the logic.
First I compiled with :
a lot of MAME drivers was compiled but not finished because
Compile process canceled by hand (but I think megadriv.c relevant sources was right compiled)
Now I compiled with :
MESS compile was successful.