System POPPLER_VERSION redefined, won't build

ariel cornejo arielCo at gmail.com
Tue Nov 10 09:35:53 PST 2015


Michael Stahl-2 wrote
> it is definitely a bug somewhere if HAVE_POPPLER_VERSION_H isn't set fora
> current version of poppler.e.g. on Fedora 22 i have
> /usr/include/poppler/cpp/poppler-version.h andHAVE_POPPLER_VERSION_H
> set.maybe look at config.log where it checks for poppler-version.h what
> theerror is.

Turns out poppler-version.h was missing; in Ubuntu it comes in the
libpoppler-cpp-dev package. 
Here's what happens without it.
Output from autogen.sh:
checking for POPPLER... yeschecking cpp/poppler-version.h usability...
nochecking cpp/poppler-version.h presence... nochecking for
cpp/poppler-version.h... no
config.log:
configure:36446: checking for POPPLERconfigure:36453: $PKG_CONFIG --exists
--print-errors "poppler >= 0.12.0 "configure:36456: $? = 0configure:36470:
$PKG_CONFIG --exists --print-errors "poppler >= 0.12.0 "configure:36473: $?
= 0configure:36531: result: yesconfigure:36545: checking
cpp/poppler-version.h usabilityconfigure:36545: g++ -c -O3 -march=native
-pipe -I/usr/include/poppler    -I/usr/include/poppler  conftest.cpp
>&5conftest.cpp:138:33: fatal error: cpp/poppler-version.h: No such file or
directorycompilation terminated.configure:36545: $? = 1configure: failed
program was:| /* confdefs.h */| #include
<cpp/poppler-version.h>configure:36545: result: noconfigure:36545: checking
cpp/poppler-version.h presenceconfigure:36545: g++ -E  
-I/usr/include/poppler  conftest.cppconftest.cpp:105:33: fatal error:
cpp/poppler-version.h: No such file or directorycompilation
terminated.configure:36545: $? = 1configure: failed program was:| /*
confdefs.h */| #define PACKAGE_NAME "LibreOffice"| #define PACKAGE_TARNAME
"libreoffice"| #define PACKAGE_VERSION "5.1.0.0.alpha1+"...| #include
<cpp/poppler-version.h>configure:36545: result: noconfigure:36545: checking
cpp/poppler-version.h presenceconfigure:36545: g++ -E  
-I/usr/include/poppler  conftest.cppconftest.cpp:105:33: fatal error:
cpp/poppler-version.h: No such file or directorycompilation
terminated.configure:36545: $? = 1configure: failed program was:| /*
confdefs.h */| #define PACKAGE_NAME "LibreOffice"| #define PACKAGE_TARNAME
"libreoffice"| #define PACKAGE_VERSION "5.1.0.0.alpha1+"...| /* end
confdefs.h.  */| #include <cpp/poppler-version.h>configure:36545: result:
noconfigure:36545: checking for cpp/poppler-version.hconfigure:36545:
result: noconfigure:36630: checking whether to build the Wiki Publisher
extension
http://pastebin.com/CGrUQwuh <http://pastebin.com/CGrUQwuh>  
So configure does check for the file but ignores the failed test. 
There's also GfxState.h, that comes in yet another package
libpoppler-private-dev and is also needed, but configure doesn't test for
it. Maybe they used to be in the same package so only one test was needed?




--
View this message in context: http://nabble.documentfoundation.org/System-POPPLER-VERSION-redefined-won-t-build-tp4165697p4165894.html
Sent from the Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20151110/4e734779/attachment.html>


More information about the LibreOffice mailing list