Combining two sketches

here is your mistake. you have a function.

// example of a function

void setup ()
{
stuff goes here
} < = that is the end of the SETUP function

then in your sketch, you have a combined sketch function

void dmpDataReady()
{
mpuInterrupt = true;
Adafruit_BMP085 bmp;
} < = that is the closing bracket on dmpDataReady() function

what you did, as SpyCatcher told you, is that you put a line in that function that is required for the rest of your sketch, but it is hidden inside of a function.

take it out and move it before the function.

as a note, you might want to label your functions

void dmpDataReady() { // +++++++++++++ dmpDataReady ++++++
mpuInterrupt = true;
Adafruit_BMP085 bmp;
} // =============== end dmpDataReady ========

I use the +++++ to show the start and the ====== to show the end.

as a note, it would be good of you to do this,
then post your combined code again
and, tell us if this solved your problem.

and if it does not, then copy your error message and post that with your code.