Upgrade to Arduino 0018: 3rd party hardware folder

Hi!
Upgrading to 0018, I'm experiencing problems with the new SKETCHBOOK/hardware folder. (Which was very welcome!)
Anyone already used it?
I understood it takes the same data structure, so I tried copying the Sanguino files to it, but always get this error:

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino/pins_arduino.c -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/pins_arduino.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino/WInterrupts.c -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/WInterrupts.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino/wiring.c -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino/wiring_analog.c -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring_analog.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino/wiring_digital.c -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring_digital.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino/wiring_pulse.c -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring_pulse.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino/wiring_serial.c -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring_serial.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino/wiring_shift.c -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring_shift.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino/HardwareSerial.cpp -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/HardwareSerial.cpp.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino/Print.cpp -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/Print.cpp.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino/WMath.cpp -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/WMath.cpp.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/pins_arduino.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/WInterrupts.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring_analog.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring_digital.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring_pulse.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring_serial.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/wiring_shift.c.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/HardwareSerial.cpp.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/Print.cpp.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/WMath.cpp.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega644 -DF_CPU=16000000L -DARDUINO=18 -I/Users/cyrille/Documents/Dev/Arduino/hardware/sanguino/cores/sanguino /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/Blink.cpp -o/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/Blink.cpp.o 
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -Os -Wl,--gc-sections -mmcu=atmega644 -o /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/Blink.cpp.elf /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/Blink.cpp.o /var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp/core.a -L/var/folders/lg/lgnWXX9pFmmaRtxe+xMid++++TI/-Tmp-/build8991431070872991443.tmp -lm 

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr5/crtm644.o:(.init9+0x0): undefined reference to `main'

(Only the last line is in red)
Even with the Blink sketch.

Anyone having experience with this?

Never actually did this, but I read the instructions here:
http://code.google.com/p/arduino/wiki/Platforms
and the Core section on this page mentions :

Cores
....
A core should include at least the following files:

  • WProgram.h: ....
  • main.cpp: a conventional location in which to specify the main() function of the sketch. It should call setup() once and loop() over and over again.

It is probably enough to copy the main.cpp file from the arduino core into your projects core folder
Eberhard

Thank you, that was the issue.
There was a main.cxx file, I renamed it, but then the include to WProgram.h was missing.
I simply copied the arduino core one as you suggested.

Thank you again!

To the people wanting to install sanguino to Arduino 0018 :
- create a "hardware" subdirectory in your sketchbook directory
- unzip the sanguino zip into it
- rename main.cxx and add #include <WProgram.h> at the beginning of the file.

(The Sanguino team should update their website, it's so much sumpler now...)