qt4/poppler-document.cc requires lcms2, but the compilation does not include $(LCMS_INCLUDE).
LCMS_INCLUDE is not defined anywhere, have you checked that actually does anything? Do you mean $(LCMS_CFLAGS) ?
Sorry, yes, LCMS_CFLAGS. Poppler wouldn't compile, complaining that it could not find lcms2.h when compiling poppler-document. Indeed the include path wasn't added, and simply adding $(LCMS_CFLAGS) made it compile. I guess usually lcms2.h is in some standard include path, so that the problem is hidden.
Fixed, thanks
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.