I tried building GNUCash 2.4.5 on Slackware64 13.37 and it failed because of an incorrect dependency. gnome-keyring is stated as a dependency but libgnomeui fails to build because it actually depends on libgnome-keyring instead. After building libgnome-keyring I was able to build libgnomeui and finally build gnucash.