Spoiler 
I think you need to dig at the X and talk to the pirate, and then do what the pirate says... but ake sure you make a dedicated save BEFORE you talk to the pirate. I think saving and loading during the pirates mission breaks the script and makes it impossible to pass.