<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>239195</bug_id>
          
          <creation_ts>2008-09-30 21:27 0000</creation_ts>
          <short_desc>app-text/xpdf-3.02-r1 FTBFS with app-text/poppler-0.10.0</short_desc>
          <delta_ts>2009-04-05 06:00:21 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2008.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>loki_val@gentoo.org</reporter>
          <assigned_to>printing@gentoo.org</assigned_to>
          <cc>bor@univ.kiev.ua</cc>
    
    <cc>cbm@m.fsf.org</cc>
    
    <cc>chad.simmons@member.fsf.org</cc>
    
    <cc>hetfield666@gmail.com</cc>
    
    <cc>j.romildo@gmail.com</cc>
    
    <cc>jesse@boldandbusted.com</cc>
    
    <cc>Martin.vGagern@gmx.net</cc>
    
    <cc>pqGungnir@gmx.de</cc>
    
    <cc>proteuss@sdf.lonestar.org</cc>
    
    <cc>rose@rz.uni-potsdam.de</cc>
    
    <cc>transacid@centerim.org</cc>
    
    <cc>yamadharma@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-09-30 21:27:49 0000</bug_when>
            <thetext>XPDFCore.cc:559: warning: deprecated conversion from string constant to &apos;char*&apos;
XPDFCore.cc:570: warning: deprecated conversion from string constant to &apos;char*&apos;
XPDFCore.cc:600: warning: deprecated conversion from string constant to &apos;char*&apos;
XPDFCore.cc:607: warning: deprecated conversion from string constant to &apos;char*&apos;
XPDFCore.cc:620: warning: deprecated conversion from string constant to &apos;char*&apos;
XPDFCore.cc:620: warning: deprecated conversion from string constant to &apos;char*&apos;
XPDFCore.cc:632: warning: deprecated conversion from string constant to &apos;char*&apos;
XPDFCore.cc:633: warning: deprecated conversion from string constant to &apos;char*&apos;
XPDFCore.cc:634: error: &apos;getFileSpecName&apos; is not a member of &apos;LinkAction&apos;
XPDFCore.cc:656: warning: deprecated conversion from string constant to &apos;char*&apos;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>_hamlet@libero.it</who>
            <bug_when>2008-10-01 16:48:00 0000</bug_when>
            <thetext>Same here... I think (what is a FTBFS?).
Some more information:

The problem has happened after a system update: xpdf needs to be rebuilt (together with gimp and inkscape) and when trying, some preprocessor and then compiling fatal errors happen:

# equery list poppler
[I--] [ ~] app-text/poppler-0.9.2 (0)
[I--] [ ~] app-text/poppler-bindings-0.9.2 (0)
# equery list xpdf
[I--] [  ] app-text/xpdf-3.02-r1 (0)

# equery uses xpdf
[ Found these USE variables for app-text/xpdf-3.02-r1 ]
 U I
 - - linguas_ar    : &lt;unknown&gt;
 - - linguas_el    : &lt;unknown&gt;
 - - linguas_he    : &lt;unknown&gt;
 - - linguas_ja    : &lt;unknown&gt;
 - - linguas_ko    : &lt;unknown&gt;
 - - linguas_la    : &lt;unknown&gt;
 - - linguas_ru    : &lt;unknown&gt;
 - - linguas_th    : &lt;unknown&gt;
 - - linguas_tr    : &lt;unknown&gt;
 - - linguas_zh_CN : &lt;unknown&gt;
 - - linguas_zh_TW : &lt;unknown&gt;
 - - nodrm         : Disable the drm feature decoder

# equery uses poppler
[ Found these USE variables for app-text/poppler-0.9.2 ]
 U I
 - - cjk  : Adds support for Multi-byte character languages (Chinese, Japanese, Korean)
 + + doc  : Adds extra documentation (API, Javadoc, etc)
 + + jpeg : Adds JPEG image support
 + + zlib : Adds support for zlib (de)compression

# revdep-rebuild
[...]
 * Checking dynamic linking consistency
[ 11% ]  *   broken /usr/bin/inkscape (requires libpoppler-glib.so.3
libpoppler.so.3)
 *   broken /usr/bin/inkview (requires libpoppler-glib.so.3
libpoppler.so.3)
[ 24% ]  *   broken /usr/bin/xpdf (requires libpoppler.so.3)
[ 55% ]  *   broken /usr/lib64/gimp/2.0/plug-ins/poppler (requires libpoppler-glib.so.3
libpoppler.so.3)
[...]
g++ -march=nocona -O2 -pipe -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H  -c -o ImageOutputDev.o ImageOutputDev.cc
In file included from ImageOutputDev.cc:20:
config.h:31:1: warning: &quot;xpdfCopyright&quot; redefined
In file included from ImageOutputDev.cc:9:
/usr/include/poppler/poppler-config.h:52:1: warning: this is the location of the previous definition
g++ -march=nocona -O2 -pipe -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H  -c -o PDFCore.o PDFCore.cc
In file included from GlobalParams.h:16,
                 from PDFCore.cc:18:
config.h:31:1: warning: &quot;xpdfCopyright&quot; redefined
In file included from PDFCore.cc:9:
/usr/include/poppler/poppler-config.h:52:1: warning: this is the location of the previous definition
g++ -march=nocona -O2 -pipe -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H  -c -o XPDFApp.o XPDFApp.cc
In file included from XPDFApp.cc:20:
config.h:31:1: warning: &quot;xpdfCopyright&quot; redefined
In file included from XPDFApp.cc:9:
/usr/include/poppler/poppler-config.h:52:1: warning: this is the location of the previous definition
g++ -march=nocona -O2 -pipe -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -DHAVE_DIRENT_H  -c -o XPDFCore.o XPDFCore.cc
In file included from GlobalParams.h:16,
                 from XPDFCore.cc:22:
config.h:31:1: warning: &quot;xpdfCopyright&quot; redefined
In file included from XPDFCore.cc:9:
/usr/include/poppler/poppler-config.h:52:1: warning: this is the location of the previous definition
XPDFCore.cc: In member function &apos;void XPDFCore::doAction(LinkAction*)&apos;:
XPDFCore.cc:634: error: &apos;getFileSpecName&apos; is not a member of &apos;LinkAction&apos;
make: *** [XPDFCore.o] Error 1
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>je_fro@gentoo.org</who>
            <bug_when>2008-10-05 23:15:29 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; Same here... I think (what is a FTBFS?).

Fails To Build From Scratch?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>proteuss@sdf.lonestar.org</who>
            <bug_when>2008-10-13 14:37:13 0000</bug_when>
            <thetext>Same problem here.

After updating to: app-text/poppler-0.10.0
and emerge @preserved-rebuild
xpdf fails to compile with the same error as in comment #1
(on 3 different machines).

(~x86) I can supply emerge --info if required.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>galtgendo@o2.pl</who>
            <bug_when>2008-10-13 15:04:43 0000</bug_when>
            <thetext>Poppler upstream has simply broken API again (as they tend to do
on such releases).
xpdf needs simply a patch for new api.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-10-13 20:07:41 0000</bug_when>
            <thetext>*** Bug 241792 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Martin.vGagern@gmx.net</who>
            <bug_when>2008-10-14 17:56:08 0000</bug_when>
            <thetext>http://cgit.freedesktop.org/poppler/poppler/commit/?id=996d2e176057e22acbc374cff7a712ce6fd92d93 turned getFileSpecName from a static class function in Link.h into a global function in the newly added FileSpec.h. It seems that none of the installed headers includes this one, so an application using that function would have to do so itself.

A likely solution would be to have configure check for FileSpec.h, and if it is present, have XPDFCore.cc include it and use the new global function instead of the local one. I&apos;ll try to see whether I can turn this into a patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Martin.vGagern@gmx.net</who>
            <bug_when>2008-10-14 19:24:06 0000</bug_when>
            <thetext>Created an attachment (id=168468)
Patch replacing LinkAction::getFileSpecName with getFileSpecNameForPlatform

Been a bit rash in comment #6 because
1. there is no configure script for xpdf
2. getFileSpecNameForPlatform seems to be the closest replacement for LinkAction::getFileSpecName, getFileSpecName looks quite different
3. even getFileSpecNameForPlatform has a different signature
4. a redefinition of xpdfCopyright in config.h also causes a compiler error

Problem 1. I&apos;ll leave to ebuild writers to resolve in whatever way they see fit, be it checking for theinstalled poppler package or for the FileSpec.h header file.

The attached patch attempts to solve 2. through 4. It copies some code from http://cgit.freedesktop.org/poppler/poppler/diff/?id=49b3e4560f62a9a7db350d94d50e229f5e1208bf but that&apos;s no guarantee for correctness, only an educated guess. So if anybody has a PDF file referencing an external Movie, please test this code.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Martin.vGagern@gmx.net</who>
            <bug_when>2008-10-14 19:30:19 0000</bug_when>
            <thetext>Created an attachment (id=168472)
Patch replacing LinkAction::getFileSpecName with getFileSpecNameForPlatform

Had a line left over from a previous attempt, sorry. That would have introduced a minor memory leak, which this one here should avoid.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-10-14 21:12:28 0000</bug_when>
            <thetext>+  14 Oct 2008; Peter Alfredsen &lt;loki_val@gentoo.org&gt;
+  -files/poppler-0.5.9.patch, +files/poppler-0.10.0.patch,
+  -files/xpdf-3.01-poppler-0.5.1.patch,
+  -files/xpdf-3.01-poppler-nodrm.patch, -xpdf-3.01-r8.ebuild,
+  xpdf-3.02-r1.ebuild:
+  Fix compatibility with poppler-0.10.0, bug #239195. Thanks to Martin von
+  Gagern &lt;Martin.vGagern@gmx.net&gt; for providing the patch. Also clean out
+  old ebuilds and patches.
+
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>proteuss@sdf.lonestar.org</who>
            <bug_when>2008-10-14 22:32:47 0000</bug_when>
            <thetext>Excellent work!

Thank you very much.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>168468</attachid>
            <date>2008-10-14 19:24 0000</date>
            <desc>Patch replacing LinkAction::getFileSpecName with getFileSpecNameForPlatform</desc>
            <filename>bug239195b.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtcHVyIC0tZXhjbHVkZT0nKn4nIHhwZGYtMy4wMi1wb3BwbGVyLm9yaWcvY29uZmlnLmgg
eHBkZi0zLjAyLXBvcHBsZXIvY29uZmlnLmgKLS0tIHhwZGYtMy4wMi1wb3BwbGVyLm9yaWcvY29u
ZmlnLmgJMjAwOC0xMC0xNCAyMDowMDo0MS4wMDAwMDAwMDAgKzAyMDAKKysrIHhwZGYtMy4wMi1w
b3BwbGVyL2NvbmZpZy5oCTIwMDgtMTAtMTQgMjE6MDg6MTUuMDAwMDAwMDAwICswMjAwCkBAIC0y
OCw2ICsyOCw3IEBACiAjZGVmaW5lIHN1cHBvcnRlZFBERlZlcnNpb25OdW0gMS43CiAKIC8vIGNv
cHlyaWdodCBub3RpY2UKKyN1bmRlZiB4cGRmQ29weXJpZ2h0CiAjZGVmaW5lIHhwZGZDb3B5cmln
aHQgIkNvcHlyaWdodCAxOTk2LTIwMDcgR2x5cGggJiBDb2csIExMQyIKIAogLy8gV2luZG93cyBy
ZXNvdXJjZSBmaWxlIHN0dWZmCmRpZmYgLXB1ciAtLWV4Y2x1ZGU9Jyp+JyB4cGRmLTMuMDItcG9w
cGxlci5vcmlnL1hQREZDb3JlLmNjIHhwZGYtMy4wMi1wb3BwbGVyL1hQREZDb3JlLmNjCi0tLSB4
cGRmLTMuMDItcG9wcGxlci5vcmlnL1hQREZDb3JlLmNjCTIwMDgtMTAtMTQgMjA6MDA6NDEuMDAw
MDAwMDAwICswMjAwCisrKyB4cGRmLTMuMDItcG9wcGxlci9YUERGQ29yZS5jYwkyMDA4LTEwLTE0
IDIxOjEzOjQ4LjAwMDAwMDAwMCArMDIwMApAQCAtMjIsNiArMjIsNyBAQAogI2luY2x1ZG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gKCFpc0Fic29sdXRlUGF0aChmaWxlTmFtZS0+Z2V0Q1N0cmluZygpKSkgewogCSAg
ICAgIGZpbGVOYW1lMiA9IGFwcGVuZFRvUGF0aCgKIAkJCSAgICAgIGdyYWJQYXRoKGRvYy0+Z2V0
RmlsZU5hbWUoKS0+Z2V0Q1N0cmluZygpKSwK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>168472</attachid>
            <date>2008-10-14 19:30 0000</date>
            <desc>Patch replacing LinkAction::getFileSpecName with getFileSpecNameForPlatform</desc>
            <filename>bug239195c.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtcHVyIC0tZXhjbHVkZT0nKn4nIHhwZGYtMy4wMi1wb3BwbGVyLm9yaWcvY29uZmlnLmgg
eHBkZi0zLjAyLXBvcHBsZXIvY29uZmlnLmgKLS0tIHhwZGYtMy4wMi1wb3BwbGVyLm9yaWcvY29u
ZmlnLmgJMjAwOC0xMC0xNCAyMDowMDo0MS4wMDAwMDAwMDAgKzAyMDAKKysrIHhwZGYtMy4wMi1w
b3BwbGVyL2NvbmZpZy5oCTIwMDgtMTAtMTQgMjE6MDg6MTUuMDAwMDAwMDAwICswMjAwCkBAIC0y
OCw2ICsyOCw3IEBACiAjZGVmaW5lIHN1cHBvcnRlZFBERlZlcnNpb25OdW0gMS43CiAKIC8vIGNv
cHlyaWdodCBub3RpY2UKKyN1bmRlZiB4cGRmQ29weXJpZ2h0CiAjZGVmaW5lIHhwZGZDb3B5cmln
aHQgIkNvcHlyaWdodCAxOTk2LTIwMDcgR2x5cGggJiBDb2csIExMQyIKIAogLy8gV2luZG93cyBy
ZXNvdXJjZSBmaWxlIHN0dWZmCmRpZmYgLXB1ciAtLWV4Y2x1ZGU9Jyp+JyB4cGRmLTMuMDItcG9w
cGxlci5vcmlnL1hQREZDb3JlLmNjIHhwZGYtMy4wMi1wb3BwbGVyL1hQREZDb3JlLmNjCi0tLSB4
cGRmLTM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