Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 124881
Alias:
Product:
Component:
Status: CLOSED
Resolution: FIXED
Assigned To: Gentoo KDE team <kde@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: radfoj <radfoj@seznam.cz>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
patch Patch to fix current kpdf patch Stefan Schweizer 2006-03-04 04:00 0000 4.75 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 124881 depends on: Show dependency tree
Bug 124881 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.




View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-03-03 15:52 0000
Hi, just upgraded poppler and poppler-bindings to version 0.5.1. Afterwards I
had to reemerge kpdf-3.5.1-r2 becouse it stopped working and emerge failed:

mmon -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION  -c -o gp_outputdev.lo `test -f 'gp_outputdev.cpp' || echo
'./'`gp_outputdev.cpp
gp_outputdev.cpp: In member function `KPDFLink*
KPDFOutputDev::generateLink(LinkAction*)':
gp_outputdev.cpp:249: error: no matching function for call to
`KPDFOutputDev::decodeViewport(UGooString*, LinkDest*)'
gp_outputdev.h:74: note: candidates are: DocumentViewport
KPDFOutputDev::decodeViewport(GooString*, LinkDest*)
gp_outputdev.cpp:259: error: no matching function for call to
`KPDFOutputDev::decodeViewport(UGooString*, LinkDest*)'
gp_outputdev.h:74: note: candidates are: DocumentViewport
KPDFOutputDev::decodeViewport(GooString*, LinkDest*)
gp_outputdev.cpp: In member function `DocumentViewport
KPDFOutputDev::decodeViewport(GooString*, LinkDest*)':
gp_outputdev.cpp:330: error: no matching function for call to
`PDFDoc::findDest(GooString*&)'
/usr/include/poppler/PDFDoc.h:127: note: candidates are: LinkDest*
PDFDoc::findDest(UGooString*)
make[4]: *** [gp_outputdev.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
generator_pdf.cpp: In member function `virtual void
PDFGenerator::putFontInfo(KListView*)':
generator_pdf.cpp:395: error: no matching function for call to
`Dict::lookup(const char[10], Object*)'
/usr/include/poppler/Dict.h:52: note: candidates are: Object*
Dict::lookup(const UGooString&, Object*)
generator_pdf.cpp: In member function `virtual QString
PDFGenerator::getMetaData(const QString&, const QString&)':
generator_pdf.cpp:496: error: no matching function for call to
`PDFDoc::findDest(GooString*&)'
/usr/include/poppler/PDFDoc.h:127: note: candidates are: LinkDest*
PDFDoc::findDest(UGooString*)
generator_pdf.cpp: In member function `void PDFGenerator::scanFonts(Dict*,
KListView*, Ref**, int&, int&)':
generator_pdf.cpp:556: error: no matching function for call to
`Dict::lookupNF(const char[5], Object*)'
/usr/include/poppler/Dict.h:53: note: candidates are: Object*
Dict::lookupNF(const UGooString&, Object*)
generator_pdf.cpp:583: error: no matching function for call to
`Dict::lookup(const char[8], Object*)'
/usr/include/poppler/Dict.h:52: note: candidates are: Object*
Dict::lookup(const UGooString&, Object*)
generator_pdf.cpp:591: error: no matching function for call to
`Dict::lookup(const char[10], Object*)'
/usr/include/poppler/Dict.h:52: note: candidates are: Object*
Dict::lookup(const UGooString&, Object*)
generator_pdf.cpp: In member function `QString
PDFGenerator::getDocumentInfo(const QString&) const':
generator_pdf.cpp:691: error: no matching function for call to
`Dict::lookup(char*, Object*)'
/usr/include/poppler/Dict.h:52: note: candidates are: Object*
Dict::lookup(const UGooString&, Object*)
generator_pdf.cpp: In member function `QString
PDFGenerator::getDocumentDate(const QString&) const':
generator_pdf.cpp:749: error: no matching function for call to
`Dict::lookup(char*, Object*)'
/usr/include/poppler/Dict.h:52: note: candidates are: Object*
Dict::lookup(const UGooString&, Object*)
generator_pdf.cpp: In member function `void
PDFGenerator::addSynopsisChildren(QDomNode*, GooList*)':
generator_pdf.cpp:805: error: cannot convert `UGooString*' to `GooString*' in
initialization
make[4]: *** [generator_pdf.lo] Error 1
make[4]: Leaving directory
`/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf/core/generator_pdf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf/core'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1'
make: *** [all] Error 2

!!! ERROR: kde-base/kpdf-3.5.1-r2 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile
  kpdf-3.5.1-r2.ebuild, line 37:   Called kde-meta_src_compile
  kde-meta.eclass, line 400:   Called kde_src_compile
  kde.eclass, line 111:   Called kde_src_compile 'compile'
  kde.eclass, line 228:   Called kde_src_compile 'all' 'myconf' 'configure'

!!! died running emake, kde_src_compile:make

Here is my emerge info:

Portage 2.1_pre5-r2 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r2,
2.6.15-ck1 i686)
=================================================================
System uname: 2.6.15-ck1 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer"
DISTDIR="/mnt/mandrake/opt/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="cs_CZ"
LDFLAGS="-Wl,-O1"
LINGUAS="cs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://necropolis.bilovec/gentoo-portage"
USE="x86 3dnow X aac acpi alsa apache2 asf audiofile avi bash-completion berkdb
bitmap-fonts bzip2 cairo cdparanoia cdr crypt cups curl dbus dts dvd dvdread
emboss encode exif expat ffmpeg firefox flac flash foomaticdb fortran ftp gd
gdbm gif glut gmp gpm gstreamer gtk gtk2 hal iconv icq idn imagemagick imlib
jabber java jpeg kde kdeenablefinal lcms libg++ libwww mad maildir mbox mikmod
mime mmx mng motif moznoirc moznomail mozsvg mp3 mpeg msn musepack mysql nas
ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl oss pam
pcre pdflib perl php pic png python qt quicktime readline recode ruby sdl slang
sndfile speex spell ssl svg tcltk tcpd theora tiff truetype truetype-fonts
type1-fonts usb vorbis win32codecs wma xine xml xml2 xosd xprint xv xvid zlib
elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_cs
userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL

------- Comment #1 From Jakub Moc (RETIRED) 2006-03-04 01:48:18 0000 -------
*** Bug 124910 has been marked as a duplicate of this bug. ***

------- Comment #2 From Stefan Schweizer 2006-03-04 04:00:09 0000 -------
Created an attachment (id=81279) [details]
Patch to fix current kpdf

------- Comment #3 From Stefan Schweizer 2006-03-04 04:01:00 0000 -------
I fixed xpdf in version -r8, kpdf patch for kde folks applied.

------- Comment #4 From Carsten Lohrke 2006-03-04 05:20:45 0000 -------
*** Bug 124892 has been marked as a duplicate of this bug. ***

------- Comment #5 From Chris Smith 2006-03-04 10:32:28 0000 -------
With patch I get this error:
-------------------------------------------------
make[4]: Entering directory
`/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf/core/generator_pdf'
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I./../..
-I../../../kpdf -I/usr/kde/3.5/include -I/usr/qt/3/include -I. 
-I/usr/include/poppler     -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long
-Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2
-march=i686 -mtune=pentium4 -fomit-frame-pointer -pipe -Wformat-security
-Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new
-fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION  -c -o generator_pdf.lo `test -f 'generator_pdf.cpp' ||
echo './'`generator_pdf.cpp
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I./../..
-I../../../kpdf -I/usr/kde/3.5/include -I/usr/qt/3/include -I. 
-I/usr/include/poppler     -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long
-Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2
-march=i686 -mtune=pentium4 -fomit-frame-pointer -pipe -Wformat-security
-Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new
-fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION  -c -o gp_outputdev.lo `test -f 'gp_outputdev.cpp' || echo
'./'`gp_outputdev.cpp
generator_pdf.cpp: In member function `virtual void
PDFGenerator::putFontInfo(KListView*)':
generator_pdf.cpp:396: error: conversion to non-const reference type `class
UGooString&' from rvalue of type `const char*'
generator_pdf.cpp: In member function `void PDFGenerator::scanFonts(Dict*,
KListView*, Ref**, int&, int&)':
generator_pdf.cpp:557: error: conversion to non-const reference type `class
UGooString&' from rvalue of type `const char*'
generator_pdf.cpp:584: error: conversion to non-const reference type `class
UGooString&' from rvalue of type `const char*'
generator_pdf.cpp:592: error: conversion to non-const reference type `class
UGooString&' from rvalue of type `const char*'
make[4]: *** [generator_pdf.lo] Error 1
make[4]: Leaving directory
`/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf/core/generator_pdf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf/core'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1'
make: *** [all] Error 2

!!! ERROR: kde-base/kpdf-3.5.1-r2 failed.
-------------------------------------------------
 $ emerge --info
Portage 2.1_pre5-r3 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3,
2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=i686 -mtune=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com http://mirrors.tds.net/gentoo
http://open-systems.ufl.edu/mirrors/gentoo"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acl acpi alsa apache2 arts audiofile avi
bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr crypt cups curl
dlloader dts dv dvb dvd dvdr dvdread emboss encode exif ffmpeg flac fortran
gdbm ggvorbis gif gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imap imlib
ipv6 jack java jpeg jpeg2k kde kdeenablefinal lcd lcms ldap libg++ libwww mad
mikmod mmx motif mozcalendar mozilla mp3 mpeg musicbrainz ncurses nls nodrm
nptl nvidia ofx ogg openexr opengl oss pam pda pdf pdflib perl png ppds python
qt quicktime readline samba sasl scanner sdl slp sndfile spell sse ssl
subversion svg svga tcltk tcpd theora threads tiff truetype truetype-fonts
type1-fonts udev unicode usb utf8 v4l v4l2 vcd vorbis win32codecs wmf
xcomposite xine xml xmms xscreensaver xv xvid zlib elibc_glibc kernel_linux
userland_GNU video_cards_nvidia video_cards_vmware"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LDFLAGS, LINGUAS

------- Comment #6 From Gustavo Ribeiro Alves 2006-03-04 12:06:15 0000 -------
I can confirm this on my system.

------- Comment #7 From Patrick Lauer 2006-03-05 00:54:35 0000 -------
also affects kdegraphics for monolithic KDE users :-)

------- Comment #8 From Stefan Schweizer 2006-03-05 01:19:51 0000 -------
http://genstef.homelinux.org/kpdf-poppler-0.5.1.patch

better patch, please try it out

------- Comment #9 From Rene Wieben 2006-03-05 02:23:41 0000 -------
the patch in #8 works for me. Thanks!

------- Comment #10 From Jakub Z. 2006-03-05 02:25:46 0000 -------
Patch in #8 also works for me. Thanks.

------- Comment #11 From Tobias Roeser 2006-03-05 05:47:38 0000 -------
(In reply to comment #8)
> http://genstef.homelinux.org/kpdf-poppler-0.5.1.patch

Works for me, too. Thanks.

(I never understood why API changes were made in a x.x.1 release.)

------- Comment #12 From Diego E. 'Flameeyes' Pettenò 2006-03-05 05:58:35 0000 -------
Both those patches ARE NO FIXES.
They unbreak compilation, but are forcing stuff that works only out of sheer
luck and that is likely to break.
If I'm able to have the system stable for more than 20 minutes without GCC
4.1.0 to bite me, I'll see to provide a working one, in the mean time PLEASE
DON'T APPLY THIS PATCH! REALLY!

------- Comment #13 From Diego E. 'Flameeyes' Pettenò 2006-03-05 07:07:24 0000 -------
Okay I have a patch that should work without being evil.
Leave me a bit of time that I rebuild it and I'll apply it.

------- Comment #14 From Diego E. 'Flameeyes' Pettenò 2006-03-05 11:28:17 0000 -------
*** Bug 125096 has been marked as a duplicate of this bug. ***

------- Comment #15 From Diego E. 'Flameeyes' Pettenò 2006-03-05 11:33:39 0000 -------
Okay now that I solved my connectivity problems, the patch is now merged for
both kpdf and kdegraphics 3.5.1-r2, that would solve.

------- Comment #16 From Jakub Moc (RETIRED) 2006-03-05 12:13:31 0000 -------
*** Bug 125109 has been marked as a duplicate of this bug. ***

------- Comment #17 From Diego E. 'Flameeyes' Pettenò 2006-03-05 14:52:16 0000 -------
*** Bug 125139 has been marked as a duplicate of this bug. ***

------- Comment #18 From Rumen Yotov 2006-03-06 00:56:32 0000 -------
Hi,
Coming from Bug-125109, which is Solved for me, even before reading this one.
Found two patched:
kpdf-3.5.1-poppler-0.5.1.patch(.bz2) and
kpdf-3.5.1-poppler-0.5.1-bis.patch(.bz2).
In kpdf-3.5.1-r2.ebuild there's a line to do "epatch ${DISTDIR}/patch-name",
but as of 6-mar-06 there's no such patch in $DISTDIR although a emessage says
it's applied ;) Maybe epatch doesn't check if a file/patch exists, haven't
checked.
So made an overlay, put "kpdf-3.5.1-poppler-0.5.1.patch" in ${FILESDIR} and all
went OK. Could attach the patches if necessary, but don't think it'll be needed
;)
PS:don't know what's the difference between the two patches (-bis part).
Thanks.Rumen

------- Comment #19 From Jakub Moc (RETIRED) 2006-03-06 12:50:15 0000 -------
*** Bug 125287 has been marked as a duplicate of this bug. ***

------- Comment #20 From Jakub Moc (RETIRED) 2006-03-12 00:32:53 0000 -------
*** Bug 125891 has been marked as a duplicate of this bug. ***

------- Comment #21 From Stefan Tittel 2006-04-02 01:09:11 0000 -------
Shouldn't the xpdf-3.01-r7 ebuild be modified accordingly, so it also depends
on poppler < 0.51? From my understanding the dependencies of xpdf-3.01-r7 are
just wrong at the moment, because even if >=app-text/poppler-0.5.0-r4 is
installed xpdf won't compile due to the wrong poppler version.

In my opinion you shouldn't let people have to visit Bugzilla to find out why
their packages don't build, if this can be solved properly by providing the
correct depend statements in the ebuild.

------- Comment #22 From Stefan Schweizer 2006-04-02 01:55:36 0000 -------
done, please open new bugs for such issues in future

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug