[Poppler-bugs] [Bug 11243] New: Installed headers #include <config.h> in 0.5.9
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jun 12 04:33:45 PDT 2007
http://bugs.freedesktop.org/show_bug.cgi?id=11243
Summary: Installed headers #include <config.h> in 0.5.9
Product: poppler
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: Axel.Howind at htp-tel.de
When I configure with --enable-xpdf-headers, the file
<prefix>include/poppler/goo/gmem.h is installed which in turn tries to #include
<config.h>. That one is however not installed, and compiling an application
that uses libpoppler fails.
I can successfully compile poppler even when I simply remove the include from
gmem.h, but I don't know if that would cause any side effects. Since this
changed from 0.5.4, there possibly is a reason?
To me it seems that this file is included to obtain the correct value of the
macro USE_EXCEPTIONS. But if that's something that has to be present in the
installed headers, shouldn't it go into poppler-config.h instead?
Configuring with ./configure --disable-poppler-glib --enable-xpdf-headers, the
following installed header files include config.h:
/usr/local/include/poppler/goo/FixedPoint.h:#include <config.h>
/usr/local/include/poppler/goo/gmem.h://#include <config.h>
/usr/local/include/poppler/SecurityHandler.h:#include <config.h>
I'd be happy to help with this, but don't know wether to simply remove the
includes or do something smarter...
Steps to reproduce: #include <poppler/Object.h> in a source file an try to
compile.
Workaround: copy config.h file from the poppler directory to somewhere in your
include path.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Poppler-bugs
mailing list