How do I spackle over glass blocks in the wall?

We have a few glass blocks built into the wall. I used joint compound to fill them in but the next day it had all cracked (still up there though). Should I have used a different medium and also is there a certain way to prep glass first so the material sticks?