[Poppler-bugs] [Bug 60095] utils/pdfunite.cc fails to build

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Feb 1 05:05:21 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=60095

--- Comment #8 from Adrian Johnson <ajohnson at redneon.com> ---
(In reply to comment #7)
> Another info that could be useful: I am using 32bits setting.

Yes that helps. I tried building in a 32-bit VM and can now reproduce the bug.

The problem is _FILE_OFFSET_BITS (defined in config.h) needs to be defined
before including any system headers that define off_t. This isn't happening so
in some files Goffset is "long long" and in others it is "long".

I'll need to go through each file and make sure config.h is included before any
other headers.

As I had previously tested in a 32-bit VM when working on the large file
patches I couldn't understand way it fails now. But thinking about it I recall
at one point experimenting with setting "export
CXXFLAGS=-D_FILE_OFFSET_BITS=64" before running configure. It appears I may
have forgotten to unset CXXFLAGS while doing further testing and never
experienced this build problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20130201/6525c59f/attachment.html>


More information about the Poppler-bugs mailing list