make: Fatal error: Command failed for target `smbd/dir.o'
I suggest you first take this to the samba ml. Looks like you have some local compile issues rather than a Samba bug.