Bug 25103 - Problem compiling poppler 0.12.1
Summary: Problem compiling poppler 0.12.1
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: PowerPC Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-15 12:01 UTC by Michael Carver
Modified: 2009-11-20 13:11 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
output of 'emerge --info =dev-libs/poppler-0.12.1' (8.94 KB, text/plain)
2009-11-15 12:01 UTC, Michael Carver
Details
config.log (77.23 KB, text/plain)
2009-11-15 16:18 UTC, Michael Carver
Details
New configure file (721.05 KB, text/plain)
2009-11-16 12:52 UTC, Albert Astals Cid
Details

Description Michael Carver 2009-11-15 12:01:40 UTC
Created attachment 31213 [details]
output of  'emerge --info =dev-libs/poppler-0.12.1'

I am using gentoo. While emerging poppler I get the following:

>>> Unpacking source...
>>> Unpacking poppler-0.12.1.tar.gz to /var/tmp/portage/dev-libs/poppler-0.12.1/work
>>> Source unpacked in /var/tmp/portage/dev-libs/poppler-0.12.1/work
>>> Preparing source in /var/tmp/portage/dev-libs/poppler-0.12.1/work/poppler-0.12.1 ..
.
 * Running elibtoolize in: poppler-0.12.1
 *   Applying portage-2.2.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/poppler-0.12.1/work/poppler-0.12.1 ...
 * econf: updating poppler-0.12.1/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating poppler-0.12.1/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=powerpc-unknown-linux-gnu --host=powerpc-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-static --enable-poppler-qt4 --enable-poppler-glib --enable-xpdf-headers --enable-libjpeg --enable-libopenjpeg --enable-zlib --enable-splash-output --enable-abiword-output --enable-cms --disable-poppler-qt4 --disable-cairo-output
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes

...

checking for inflate in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for opj_cio_open in -lopenjpeg... yes
checking openjpeg.h usability... no
checking openjpeg.h presence... yes
configure: WARNING: openjpeg.h: present but cannot be compiled
configure: WARNING: openjpeg.h:     check for missing prerequisite headers?
configure: WARNING: openjpeg.h: see the Autoconf documentation
configure: WARNING: openjpeg.h:     section "Present But Cannot Be Compiled"
configure: WARNING: openjpeg.h: proceeding with the compiler's result
configure: WARNING:     ## -----------------------------------------------------
-------------------- ##
configure: WARNING:     ## Report this to https://bugs.freedesktop.org/enter_bug
.cgi?product=poppler ##
configure: WARNING:     ## ------------------------------------------------------------------------- ##
checking for openjpeg.h... no
configure: error: "*** libopenjpeg headers not found ***"

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/poppler-0.12.1/work/poppler-0.12.1/config.log
 * ERROR: dev-libs/poppler-0.12.1 failed:
 *   econf failed
 * 
 * Call stack: *     ebuild.sh, line   55:  Called src_configure
 *   environment, line 2815:  Called poppler_src_configure
 *   environment, line 2660:  Called econf '--disable-static' '--enable-poppler-qt4' '--enable-poppler-glib' '--enable-xpdf-headers' '--enable-libjpeg' '--enable-libopenjpeg' '--enable-zlib' '--enable-splash-output' '--enable-abiword-output' '--enable-cms' '--disable-poppler-qt4' '--disable-cairo-output'
 *     ebuild.sh, line  533:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/poppler-0.12.1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/poppler-0.12.1'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/poppler-0.12.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/poppler-0.12.1/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/poppler-0.12.1/work/poppler-0.12.1'

I have attached the output of 'emerge --info =dev-libs/poppler-0.12.1' because there seems to be potentially useful info there (along with a bunch of other stuff). I'm not familiar with bug repporting so any critisism is welcome.
Comment 1 Albert Astals Cid 2009-11-15 12:57:50 UTC
Do you have openjpeg installed, can you attach the config.log?
Comment 2 Michael Carver 2009-11-15 16:18:53 UTC
Created attachment 31216 [details]
config.log
Comment 3 Michael Carver 2009-11-15 16:19:32 UTC
I do have openjpeg 1.3 installed. Anything else?
Comment 4 Albert Astals Cid 2009-11-16 12:18:19 UTC
Do you know how to compile from source? Would you be able of testing a patch?
Comment 5 Michael Carver 2009-11-16 12:34:19 UTC
I know how to compile from source, and, even though I've never done it I believe I can test a patch
Comment 6 Albert Astals Cid 2009-11-16 12:52:03 UTC
Created attachment 31241 [details]
New configure file

At the end i realized i don't need to send a patch.

I'm just sending the new configure file, uncompress poppler 0.12.1 tarball and overwrite the existing configure with the file of this attachment and let's see if it works for you.
Comment 7 Michael Carver 2009-11-20 13:02:45 UTC
sorry for the delay. The new configure file allows me to compile. so I'd say it works.
Comment 8 Albert Astals Cid 2009-11-20 13:11:39 UTC
Ok, it'll be in poppler 0.12.3


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.