Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284783 - kde-base/okular-4.3.1 fails to detect dev-libs/poppler-qt4-0.12.0
Summary: kde-base/okular-4.3.1 fails to detect dev-libs/poppler-qt4-0.12.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: InOverlay, InVCS
Depends on:
Blocks:
 
Reported: 2009-09-13 16:41 UTC by Sascha Hlusiak
Modified: 2010-02-24 21:56 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Hlusiak 2009-09-13 16:41:20 UTC
dev-libs/poppler-0.12.0
dev-libs/poppler-qt4-0.12.0

emerging okular-4.3.1 gives:
-- Performing Test HAVE_POPPLER_0_6                                                                  
-- Performing Test HAVE_POPPLER_0_6 - Success                                                        
-- Performing Test HAVE_POPPLER_0_8                                                                  
-- Performing Test HAVE_POPPLER_0_8 - Failed                                                         
-- Found Poppler-Qt4: -lpoppler-qt4, (>= 0.6)                                                        

And in CMakeFiles/CMakeError.log:
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++    -O2 -pipe -msse -msse2 -msse3  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden  -DHAVE_POPPLER_0_8  -fPIC -Wl,--as-needed CMakeFiles/cmTryCompileExec.dir/src.cxx.o  -o cmTryCompileExec -rdynamic -lpoppler-qt4 /usr/lib64/qt4/libQtCore.so -lpthread /usr/lib64/qt4/libQtGui.so /usr/lib64/qt4/libQtXml.so -Wl,-rpath,/usr/lib64/qt4
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../lib64/libpoppler-qt4.so: undefined reference to `GfxColorSpace::getDisplayProfile()'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../lib64/libpoppler-qt4.so: undefined reference to `GfxColorSpace::setDisplayProfileName(GooString*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../lib64/libpoppler-qt4.so: undefined reference to `GfxColorSpace::getRGBProfile()'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../lib64/libpoppler-qt4.so: undefined reference to `GfxColorSpace::setDisplayProfile(void*)'
collect2: ld gab 1 als Ende-Status zurück
gmake[1]: *** [cmTryCompileExec] Fehler 1
gmake[1]: Leaving directory `/var/tmp/portage/kde-base/okular-4.3.1/work/okular-4.3.1_build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Fehler 2

Source file was:

#include <poppler-qt4.h>
#include <poppler-form.h>
int main()
{
  Poppler::FormFieldButton * button = 0;
  button->buttonType();
  return 0;
}

As a result okularGenerator_poppler.so isn't built. Forcing HAVE_POPPLER_0_8:INTERNAL=1 in CMakeCache.txt gives working poppler support though so it only seems to be an issue with the check for >=poppler-0.8.

Cheers,
Sascha


Reproducible: Always

Steps to Reproduce:
1. emerge =poppler-0.12.0 =poppler-qt4-0.12.0
2. emerge =okular-4.3.1
3. see okularGenerator_poppler.so not being built
Comment 1 Daniel V. 2009-09-14 18:42:11 UTC
I can confirm this on ~amd64. But I can only test the workaround tomorrow...
Comment 2 Ostashevskyi Viktor 2009-09-22 06:03:38 UTC
Also confirm, same symptoms.
Comment 3 Daniel V. 2009-10-09 17:58:25 UTC
4.3.2, still present?

Anyone?
Comment 4 Sascha Hlusiak 2009-10-10 11:56:48 UTC
Still present in 4.3.2. Workaround of editing the CMakeCache.txt worked. 
Comment 5 Neil Bothwick 2009-10-14 16:45:40 UTC
I have no CMakeCache.txt file after running ebuild ... unpack. Where do I create this file?
Comment 6 Sascha Hlusiak 2009-10-14 17:02:06 UTC
After unpack, "ebuild ... configure", the file will be like /var/tmp/portage/kde-base/okular-4.3.2/work/okular-4.3.2_build/CMakeCache.txt

Change the line to 
HAVE_POPPLER_0_8:INTERNAL=1
Comment 7 Neil Bothwick 2009-10-14 20:44:37 UTC
I thought I'd checked after running configure too, but apparently not. thanks, I've finally got okular working with poppler-0.12.0, which means I can now upgrade calibre.
Comment 8 Peter Alfredsen (RETIRED) gentoo-dev 2009-10-17 12:00:03 UTC
Is the lcms use-flag set for dev-libs/poppler? If not, try setting it ( per http://forums.gentoo.org/viewtopic-t-792376.html ).
Comment 9 Sascha Hlusiak 2009-10-17 12:17:47 UTC
Right, setting the lcms flag for poppler fixed it for me. But okular runs totally fine without that flag. There seems to be a problem with poppler itself, using uncompiled functions. Failing code in configure:

------
#include <poppler-qt4.h>
#include <poppler-form.h>
int main()
{
  Poppler::FormFieldButton * button = 0;
  button->buttonType();
  return 0;
}
------

# g++ -I/usr/include/poppler/qt4 -I/usr/include/poppler -I/usr/include/qt4 -o source source.c -lpoppler-qt4

/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../lib64/libpoppler-qt4.so: undefined reference to `GfxColorSpace::getDisplayProfile()'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../lib64/libpoppler-qt4.so: undefined reference to `GfxColorSpace::setDisplayProfileName(GooString*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../lib64/libpoppler-qt4.so: undefined reference to `GfxColorSpace::getRGBProfile()'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/../../../../lib64/libpoppler-qt4.so: undefined reference to `GfxColorSpace::setDisplayProfile(void*)'
collect2: ld gab 1 als Ende-Status zurück
Comment 10 Daniel V. 2009-10-20 19:09:50 UTC
(In reply to comment #5)

(Sorry for being a n00b), but how do I edit something in the unpacked files and continue emerging?
Comment 11 Tomáš Chvátal (RETIRED) gentoo-dev 2009-10-21 20:41:39 UTC
Well that patch of yours is more hack, because you force using internal poppler which has lcms already enabled :D so...

I rather fixed the deps so they will be correct  :P
Comment 12 Anton Bolshakov 2009-10-22 02:10:39 UTC
I've got an error message:

- virtual/poppler-0.10.7 (Missing IUSE: lcms)                                                
(dependency required by "kde-base/okular-4.3.2" [installed]) 

Indeed, there is no virtual/poppler[lcms]
How can I fix it?..

ps my portage is: sys-apps/portage-2.2_rc46
Comment 13 Anton Bolshakov 2009-10-22 02:25:40 UTC
Right, I guess my kde4 keywords file need to updated. I've added these packages:
virtual/poppler
dev-libs/poppler
virtual/poppler-utils
app-text/poppler-utils
virtual/poppler-qt4
dev-libs/poppler-qt4

Comment 14 Martin Samek 2009-10-22 08:23:12 UTC
I have this problem. All popplers are unkeyworded. Okular requires poppler 0.10.7 which don't have flag lcms.

dev-libs/poppler:0

  ('ebuild', '/', 'dev-libs/poppler-0.10.7', 'merge') pulled in by
    ~dev-libs/poppler-0.10.7 required by ('ebuild', '/', 'virtual/poppler-0.10.7', 'merge')

  ('installed', '/', 'dev-libs/poppler-0.12.1', 'nomerge') pulled in by
    ~dev-libs/poppler-0.12.1 required by ('installed', '/', 'dev-libs/poppler-glib-0.12.1', 'nomerge')
    ~dev-libs/poppler-0.12.1[abiword] required by ('installed', '/', 'app-text/poppler-utils-0.12.1', 'nomerge')
    ~dev-libs/poppler-0.12.1 required by ('installed', '/', 'dev-libs/poppler-qt4-0.12.1', 'nomerge')
Comment 15 Tomáš Chvátal (RETIRED) gentoo-dev 2009-10-22 08:46:54 UTC
I kinda expected that 4.3.2 users will be using ~ stuff. Ok wired updated the deps for 4.3.2 too to match the 4.3.1.
Comment 16 Manfred Knick 2009-10-22 08:51:13 UTC
(In reply to comment #15)
> I kinda expected that 4.3.2 users will be using ~ stuff. Ok wired updated the
> deps for 4.3.2 too to match the 4.3.1.
> 

Hi, Tomáš !

Unfortunately, now emerge -avuDN yields:



Calculating dependencies... done!

!!! All ebuilds that could satisfy "virtual/poppler[lcms]" have been masked.
!!! One of the following masked packages is required to complete your request:
- virtual/poppler-0.12.1 (masked by: ~amd64 keyword)
- virtual/poppler-0.12.0 (masked by: ~amd64 keyword)
- virtual/poppler-0.10.6 (masked by: ~amd64 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "kde-base/okular-4.3.2" [installed])
(dependency required by "kde-base/kdegraphics-meta-4.3.2" [installed])
(dependency required by "kde-base/kde-meta-4.3.2" [installed])
(dependency required by "world" [argument])



ALTHOUGH


mammut ~ # equery list -p virtual/poppler

 * installed packages
[I--] [  ] virtual/poppler-0.10.7 (0)      <----------
[I--] [  ] virtual/poppler-glib-0.10.7 (0)
[I--] [  ] virtual/poppler-qt3-0.10.7 (0)
[I--] [  ] virtual/poppler-qt4-0.10.7 (0)
[I--] [  ] virtual/poppler-utils-0.10.7 (0)

 * Portage tree (/usr/portage)
[-P-] [  ] virtual/poppler-0.8.7 (0)
[-P-] [  ] virtual/poppler-0.10.4 (0)
[-P-] [  ] virtual/poppler-0.10.5 (0)
[-P-] [M~] virtual/poppler-0.10.6 (0)     <--------
[-P-] [M~] virtual/poppler-0.12.0 (0)
[-P-] [M~] virtual/poppler-0.12.1 (0)
...
Comment 17 Alex Alexander (RETIRED) gentoo-dev 2009-10-22 09:02:56 UTC
I updated the poppler dependency, it should be working for both stable and ~arch users now :)