ArduinoISP [closed]

Can't compile this program (arduino 1.0)

The error is this:

In file included from /usr/lib/arduino/hardware/arduino/cores/arduino/Arduino.h:212,
** from ArduinoISP.cpp:56:**
/usr/lib/arduino/hardware/arduino/variants/mega/pins_arduino.h:36: error: expected unqualified-id before numeric constant
/usr/lib/arduino/hardware/arduino/variants/mega/pins_arduino.h:37: error: expected unqualified-id before numeric constant
/usr/lib/arduino/hardware/arduino/variants/mega/pins_arduino.h:38: error: expected unqualified-id before numeric constant

Edit: resolved the problem: Arduino 1.0 defines the names for SCK, MOSI, MISO, etc. I replaced the constants on the program and it compiled ok but with the same result.

Calling avrisp in command-line, the response is this:

# /usr/lib/arduino/hardware/tools/avrdude -C/usr/lib/arduino/hardware/tools/avrdude.conf -patmega328p -carduino -P/dev/ttyUSB0 -b19200 -Uflash:w:/usr/lib/arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:i -Ulock:w:0x0F:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.04s
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
** Double check connections and try again, or use -F to override**
** this check.**
avrdude done. Thank you.