Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197001 - inkscape svn uses private header CairoOutputDev.h but does not provide it
Summary: inkscape svn uses private header CairoOutputDev.h but does not provide it
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 197033 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-25 06:08 UTC by faceman
Modified: 2007-12-26 12:19 UTC (History)
1 user (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 faceman 2007-10-25 06:08:41 UTC
poppler-0.6.1 and poppler-bindings-0.6.1 fail to install CairoOutputDev.h.

When compiling Inkscape svn, which uses poppler for pdf output, if poppler-bindings is installed, compile fails with

In file included from extension/internal/pdfinput/pdf-input.cpp:26:
extension/internal/pdfinput/pdf-input.h:40:28: error: CairoOutputDev.h: No such file or directory
In file included from extension/internal/pdfinput/pdf-input.cpp:26:
extension/internal/pdfinput/pdf-input.h:107: error: ISO C++ forbids declaration of 'CairoOutputDev' with no type
extension/internal/pdfinput/pdf-input.h:107: error: expected ';' before '*' token
extension/internal/pdfinput/pdf-input.cpp: In constructor 'Inkscape::Extension::Internal::PdfImportDialog::PdfImportDialog(PDFDoc*)':
extension/internal/pdfinput/pdf-input.cpp:279: error: '_preview_output_dev' was not declared in this scope
extension/internal/pdfinput/pdf-input.cpp:279: error: expected type-specifier before 'CairoOutputDev'
extension/internal/pdfinput/pdf-input.cpp:279: error: expected `;' before 'CairoOutputDev'
extension/internal/pdfinput/pdf-input.cpp: In destructor 'virtual Inkscape::Extension::Internal::PdfImportDialog::~PdfImportDialog()':
extension/internal/pdfinput/pdf-input.cpp:301: error: '_preview_output_dev' was not declared in this scope
extension/internal/pdfinput/pdf-input.cpp:302: error: type '<type error>' argument given to 'delete', expected pointer
extension/internal/pdfinput/pdf-input.cpp: In member function 'void Inkscape::Extension::Internal::PdfImportDialog::_setPreviewPage(int)':
extension/internal/pdfinput/pdf-input.cpp:544: error: '_preview_output_dev' was not declared in this scope
make[2]: *** [extension/internal/pdfinput/pdf-input.o] Error 1
make[2]: *** Waiting for unfinished jobs....
extension/internal/bitmap/imagemagick.cpp: In member function 'virtual void Inkscape::Extension::Internal::Bitmap::ImageMagick::effect(Inkscape::Extension::Effect*, Inkscape::UI::View::View*)':
extension/internal/bitmap/imagemagick.cpp:107: warning: deprecated conversion from string constant to 'char*'
./util/glib-list-iterators.h: In member function 'T* const& Inkscape::Util::GSListConstIterator<T*>::operator*() const [with T = SPItem]':
extension/internal/bitmap/imagemagick.cpp:188:   instantiated from here
./util/glib-list-iterators.h:47: warning: dereferencing type-punned pointer will break strict-aliasing rules

But once you copy the header file into /usr/include/poppler, it compiles without trouble.

Reproducible: Always

Steps to Reproduce:
1.emerge poppler and poppler-bindings
2.update to latest inkscape svn
3.compile inkscape svn

Actual Results:  
inkscape svn failed to compile

Expected Results:  
inkscape compiles
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-25 15:17:06 UTC
*** Bug 197033 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-10-25 18:42:20 UTC
Poppler doesn't install that header file.  There isn't even code in the Makefiles to install it.  I wonder how Inkscape is depending on it?   They're not even installed in upstream poppler's git repo.
Comment 3 Pablo Trabajos 2007-11-09 14:42:20 UTC
I'm having the same problem. Well, I just checked poppler-0.6.1.tar.gz and CairoOutputDev.h IS there. Also, I found it here:
http://webcvs.freedesktop.org/poppler/poppler/poppler/CairoOutputDev.h?view=log&pathrev=MAIN

A quick workaround is to copy that file to /usr/include/poppler. I don't know why the file is not copied. I'm using:
* app-text/poppler-0.6.1 -cjk jpeg zlib
* app-text/poppler-bindings-0.6.1 cairo gtk qt3 qt4 test
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2007-11-11 11:33:33 UTC
This usage of the header file in inkscape is not supported, see: http://thread.gmane.org/gmane.comp.freedesktop.poppler/1130/focus=1143
Comment 5 Pablo Trabajos 2007-11-11 15:01:24 UTC
Fine then. Is an inkscape thing. They're discussing this issue here:
http://sourceforge.net/mailarchive/message.php?msg_id=pan.2007.10.16.15.20.35.941231%40yahoo.com

So until they use a backend the workaround is to copy the file (at least it works for me on amd64).
Comment 6 Luca Barbato gentoo-dev 2007-12-26 12:19:31 UTC
I think this is an upstream issue. Thanks for the head up anyway ^^