Summary: | kpdf-3.5.1-r2 builds fail with poppler to 0.5.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | radfoj <radfoj> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | alain.crespo, alonbl, bugs, clbustos, david, desintegr, gralves, howard_b_golden, jlp.bugs, le.petit.fou, matteo-ml, patrick, polar88bear, printing, spock, Tinitus1 |
Priority: | High | ||
Version: | 2005.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch to fix current kpdf |
Description
radfoj
2006-03-03 15:52:31 UTC
*** Bug 124910 has been marked as a duplicate of this bug. *** Created attachment 81279 [details, diff]
Patch to fix current kpdf
I fixed xpdf in version -r8, kpdf patch for kde folks applied. *** Bug 124892 has been marked as a duplicate of this bug. *** 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 I can confirm this on my system. also affects kdegraphics for monolithic KDE users :-) http://genstef.homelinux.org/kpdf-poppler-0.5.1.patch better patch, please try it out the patch in #8 works for me. Thanks! Patch in #8 also works for me. Thanks. (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.) 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! 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. *** Bug 125096 has been marked as a duplicate of this bug. *** 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. *** Bug 125109 has been marked as a duplicate of this bug. *** *** Bug 125139 has been marked as a duplicate of this bug. *** 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 *** Bug 125287 has been marked as a duplicate of this bug. *** *** Bug 125891 has been marked as a duplicate of this bug. *** 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. done, please open new bugs for such issues in future |