LibreOffice 5.2.4.2 does not build because librdf is too old
LibreOffice 5.2.4.2 needs redland >=1.0.16, which provides librdf. Certainly you have installed 1.0.17 as a package. However the build system complains as: "librdf too old Need >=1.0.16" So, what?