Yún + GSMshield

{I did search the forum but couldn't find a solution - sorry if this is yet another newbie question.}

I'm using Arduino Software Version 1.5.7 on Mac OS X 10.9.4
Arduino Yún with OpenWRT
GSM Shield Rev. 3 with german telecom SIM Card

I followed the following description for using the shield with yún (leonardo)

http://arduino.cc/en/Guide/GSMShieldLeonardoMega

I tried to run the example code

http://arduino.cc/en/pmwiki.php?n=Guide/ArduinoGSMShield#toc8

and received the following errors (../ is to mask the real path):

Arduino: 1.5.7 (Mac OS X), Board: "Arduino Yún"

Verwende die Bibliothek GSM im Ordner: ../Arduino.app/Contents/Java/libraries/GSM 

../Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=157 -DARDUINO_AVR_YUN -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8041 -DUSB_MANUFACTURER= -DUSB_PRODUCT="Arduino Yun" -I../Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I../Arduino.app/Contents/Java/hardware/arduino/avr/variants/yun -I../Arduino.app/Contents/Java/libraries/GSM/src /var/folders/mj/2z6g_qc96fg_h2qftg7zyxp80000gp/T/build4999020873547751252.tmp/sketch_jul19a.cpp -o /var/folders/mj/2z6g_qc96fg_h2qftg7zyxp80000gp/T/build4999020873547751252.tmp/sketch_jul19a.cpp.o 
../Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=157 -DARDUINO_AVR_YUN -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8041 -DUSB_MANUFACTURER= -DUSB_PRODUCT="Arduino Yun" -I../Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I../Arduino.app/Contents/Java/hardware/arduino/avr/variants/yun -I../Arduino.app/Contents/Java/libraries/GSM/src ../Arduino.app/Contents/Java/libraries/GSM/src/GSM3CircularBuffer.cpp -o /var/folders/mj/2z6g_qc96fg_h2qftg7zyxp80000gp/T/build4999020873547751252.tmp/GSM/GSM3CircularBuffer.cpp.o 
../Arduino.app/Contents/Java/libraries/GSM/src/GSM3CircularBuffer.cpp: In member function 'void GSM3CircularBuffer::debugBuffer()':
../Arduino.app/Contents/Java/libraries/GSM/src/GSM3CircularBuffer.cpp:269:2: error: 'Serial' was not declared in this scope
  Serial.println();
  ^
../Arduino.app/Contents/Java/libraries/GSM/src/GSM3CircularBuffer.cpp: In static member function 'static void GSM3CircularBuffer::printCharDebug(uint8_t)':
../Arduino.app/Contents/Java/libraries/GSM/src/GSM3CircularBuffer.cpp:282:3: error: 'Serial' was not declared in this scope
   Serial.print((char)c);
   ^
../Arduino.app/Contents/Java/libraries/GSM/src/GSM3CircularBuffer.cpp:285:3: error: 'Serial' was not declared in this scope
   Serial.print('%');
   ^

What the heck is going wrong?

davidgoth found a solution...

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: http://arduinoshield.tid.es/GSMLibrary/GSM3.zip

http://forum.arduino.cc/index.php?topic=229141.msg1668750#msg1668750

Hello
this happens also on Arduino 1 board.

Thanks for the code, one question, can I replace only a src folder on GSM library?

John Rossati