On the page http://www.libreoffice.org/developers-2/ in the section "Build and Run It" there is an instruction install the package "libgnome-vfsmm-2.6.-dev". But this package doesn't seem to exist (I'm running Lubuntu 12.10). I think the correct name should be "libgnome-vfsmm-2.6-dev" (changed ".-dev" to just "-dev"). Without this change apt fails to find the package; with this change apt finds and installs the package successfully.
It is fixed to: sudo apt-get install libgnome-vfsmm-2.6-dev # Ubuntu - in addition to Debian