Arduino GSM Shield + Yun

I am new to GSM shield. I have problem when verify/compile Sketch with GSM library for Arduino Yun. I got the following error while compiling:

/Applications/ In member function 'void GSM3CircularBuffer::debugBuffer()':
/Applications/ error: 'Serial' was not declared in this scope
/Applications/ In static member function 'static void GSM3CircularBuffer::printCharDebug(uint8_t)':
/Applications/ error: 'Serial' was not declared in this scope
/Applications/ error: 'Serial' was not declared in this scope

Can anyone point me to right direction how to fix this? Thank you.

I guess you are using IDE 1.5.6-r2. I do not have a Yun but I tested some GSM examples using IDE 1.5.5-r2 with Yun as board and all they compiled w/o errors. You may should try with 1.5.5-r2 and see. Regards, P

Thank you. I will give a try later. :)

The GSM3 library has an error. It includes HardwareSerial.h instead of Arduino.h in some classes. I fixed it.
You can download it in this URL:

Should this version work on the Arduino Mega 2560 board?