Before building spkg, install the static versions of judy and glib2 stored in their respective subdirectories. After building, run slapt-get --upgrade to restore the dynamic versions.