Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519312 - kde-base/kdepimlibs-4.13.3 requires media-libs/phonon[qt4]
Summary: kde-base/kdepimlibs-4.13.3 requires media-libs/phonon[qt4]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-07 13:29 UTC by gerion
Modified: 2014-08-21 10:52 UTC (History)
0 users

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


Attachments
build.log.gz (build.log.gz,103.82 KB, application/gzip)
2014-08-07 13:31 UTC, gerion
Details
build.log.gz of kdepimlibs version 4.14.0 without ccache (build.log.gz,85.92 KB, application/gzip)
2014-08-20 15:14 UTC, gerion
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gerion 2014-08-07 13:29:55 UTC
Merging of kdepimlibs fails. Related to this bug:
https://bugs.gentoo.org/show_bug.cgi?id=519066
(Because the specific title I decide to file a new bug.)


Reproducible: Always




Now I have akonadi-server with qt4-useflag.
Maybe the problem is phonon. ATM my phonon is build with qt4 and qt5:
[I] media-libs/phonon
     Available versions:  4.6.0-r1 (~)4.7.1-r1 ~4.7.2 **9999 {aqua debug designer +gstreamer pulseaudio +qt4 qt5 vlc zeitgeist}
     Installed versions:  4.7.1-r1(17:36:49 02.06.2014)(qt4 qt5 vlc -aqua -debug -designer -gstreamer -pulseaudio -zeitgeist)
     Homepage:            https://projects.kde.org/projects/kdesupport/phonon
     Description:         KDE multimedia API

Recompiling phonon without qt5 is not ideal, because several kde-frameworks libs need it:
# emerge -av1 phonon phonon-vlc             
Unavailable repository 'ladi' referenced by masters entry in '/usr/local/portage-crossdev/metadata/layout.conf'
Unavailable repository 'armagetron' referenced by masters entry in '/usr/local/portage-crossdev/metadata/layout.conf'

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ~] media-libs/phonon-4.7.2 [4.7.1-r1] USE="qt4 vlc (-aqua) -debug -designer -gstreamer -pulseaudio -qt5* (-zeitgeist)" 323 kB
[ebuild     U ~] media-libs/phonon-vlc-0.7.2 [0.7.1] USE="qt4 -debug -qt5*" 58 kB

Total: 2 packages (2 upgrades), Size of downloads: 381 kB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

media-libs/phonon:0

  (media-libs/phonon-4.7.2::gentoo, ebuild scheduled for merge) pulled in by
    >=media-libs/phonon-4.7.0[qt4=,qt5=] required by (media-libs/phonon-vlc-0.7.2::gentoo, ebuild scheduled for merge)

  (media-libs/phonon-4.7.1-r1::gentoo, installed) pulled in by
    media-libs/phonon[qt5] required by (kde-base/kio-extras-9999::kde, installed)
    media-libs/phonon[qt5] required by (kde-frameworks/khtml-9999::kde, installed)
    media-libs/phonon[qt5] required by (kde-frameworks/knotifications-9999::kde, installed)
    >=media-libs/phonon-4.7.0[qt4=,qt5=] required by (media-libs/phonon-vlc-0.7.1::gentoo, installed)

media-libs/phonon-vlc:0

  (media-libs/phonon-vlc-0.7.1::gentoo, installed) pulled in by
    >=media-libs/phonon-vlc-0.7.0[qt4?,qt5?] required by (media-libs/phonon-4.7.1-r1::gentoo, installed)

  (media-libs/phonon-vlc-0.7.2::gentoo, ebuild scheduled for merge) pulled in by
    (no parents that aren't satisfied by other packages in this slot)


!!! Enabling --newuse and --update might solve this conflict.
!!! If not, it might help emerge to give a more specific suggestion.
Comment 1 gerion 2014-08-07 13:31:35 UTC
Created attachment 382466 [details]
build.log.gz
Comment 2 gerion 2014-08-07 13:35:42 UTC
Hmm, looked at the build.log a little bit more and see, that it happens again when linking libakonadi-kde.

[I] app-office/akonadi-server
     Available versions:  1.11.0 (~)1.12.1-r1 ~1.12.91^t[1] **9999^t[1] {+mysql postgres +qt4 qt5 soprano sqlite test}
     Installed versions:  1.12.1-r1(15:06:12 07.08.2014)(mysql qt4 soprano -postgres -qt5 -sqlite -test)
     Homepage:            http://pim.kde.org/akonadi
     Description:         The server part of Akonadi
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2014-08-07 15:08:44 UTC
> Recompiling phonon without qt5 is not ideal, because several kde-frameworks
> libs need it:

Can be compiled for both qt versions, this package supports multibuild.
Comment 4 Michael Palimaka (kensington) gentoo-dev 2014-08-17 09:39:20 UTC
Thanks, build failure is now avoided in CVS and git by enforcing the correct USE dependency.

As per comment #3, phonon can be built with both qt4 and qt5 USE flags at the same time.

+  17 Aug 2014; Michael Palimaka <kensington@gentoo.org>
+  kdepimlibs-4.13.3.ebuild:
+  Require media-libs/phonon to be built against Qt4 wrt bug #519312.

http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=5d066b0fd4b70e81a5d6e278a2d9de68ee5c1f68
Comment 5 gerion 2014-08-20 13:52:49 UTC
This does not solve the issue. I tried it with 4.13.3 and 4.14.0.

As you see in my second comment, it seems to happen again in libakonadi-kde.
Comment 6 Johannes Huber (RETIRED) gentoo-dev 2014-08-20 14:07:05 UTC
The build log shows that you are using ccache. Please disable it as it produces a lot of false positive build failures.
Comment 7 gerion 2014-08-20 15:13:35 UTC
Without ccache I get the same error. See attached log. Do you need the (updated ) log for 4.13 as well or other information?
Comment 8 gerion 2014-08-20 15:14:53 UTC
Created attachment 383204 [details]
build.log.gz of kdepimlibs version 4.14.0 without ccache
Comment 9 gerion 2014-08-20 15:19:43 UTC
The last ld call has the parameter: -lQt5::Core

Does kdepimlibs needs this parameter, because no qt5-lib should be involved?
And if so, why is this not found on my system? I've installed qt5.

Another question: I thought, ccache would only replace some compilation work with previously generated results (in every gcc/g++ call). In this case, the whole application compiles correctly only the linking fails. Does ccache have any effect to the linking?
Comment 10 gerion 2014-08-20 15:37:13 UTC
Build the package directly from the KDE/4.14 git branch. The error is the same:
[ 13%] Automoc for target akonadi-kde
[ 13%] Built target akonadi-kde_automoc
Linking CXX shared library ../lib/libakonadi-kde.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQt5::Core
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [lib/libakonadi-kde.so.4.14.0] Fehler 1
make[1]: *** [akonadi/CMakeFiles/akonadi-kde.dir/all] Fehler 2
make: *** [all] Fehler 2

Here is my emerge-info:
$ emerge --info akonadi-server
Unavailable repository 'ladi' referenced by masters entry in '/usr/local/portage-crossdev/metadata/layout.conf'
Unavailable repository 'armagetron' referenced by masters entry in '/usr/local/portage-crossdev/metadata/layout.conf'
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.19-r1, 3.14.5-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.14.5-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5_CPU_660_@_3.33GHz-with-gentoo-2.2
KiB Mem:    12166648 total,   7645084 free
KiB Swap:    6142972 total,   6142972 free
Timestamp of tree: Wed, 20 Aug 2014 10:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: local-crossdev kde gamerlay calculate seden qt bleeding-edge sunrise proaudio java multimedia freeswitch jitsi hasufell mva betagarden gentoo
Installed sets: @kde-frameworks
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.netcologne.de/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.tiscali.nl/"
LANG="de_DE.UTF8"
LC_ALL="de_DE.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-crossdev /var/lib/layman/kde /var/lib/layman/gamerlay /var/lib/layman/calculate /var/lib/layman/seden /var/lib/layman/qt /var/lib/layman/bleeding-edge /var/lib/layman/sunrise /var/lib/layman/pro-audio /var/lib/layman/java /var/lib/layman/multimedia /var/lib/layman/freeswitch /var/lib/layman/jitsi /var/lib/layman/hasufell /var/lib/layman/mva /var/lib/layman/betagarden /usr/portage /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 bash-completion berkdb bluray branding bzip2 cairo cdda cdr celt cli consolekit cracklib crypt cups cxx dbus declarative dri dts dv dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gpm gtk handbook hddtemp iconv icq ipod ipv6 jabber jack java java6 jingle jpeg kde kipi kontact ladspa lame lash latex lcms ldap libnotify lirc lm-sensors mad matroska matrox midi mime mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer multilib musepack musicbrainz ncurses nls nptl ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit portaudio posix ppds qt3-support qt3support qt4 qt5 quicktime readline rss sdl semantic-desktop session sound sox speex spell sse sse2 ssl ssse3 startup-notification svg tcpd theora threads tiff timidity truetype udev udisks unicode upower usb v4l2 vaapi vcd vdpau vim-syntax vorbis vpx wavpack win32codecs wxwidgets x264 x265 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en en_US en_GB" LIRC_DEVICES="udp" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="r600 radeon fglrx intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-office/akonadi-server-1.13.0 was built with the following:
USE="mysql qt4 soprano -postgres -qt5 -sqlite -test" ABI_X86="64"
Comment 11 Johannes Huber (RETIRED) gentoo-dev 2014-08-20 15:49:38 UTC
(In reply to gerion from comment #8)
> Created attachment 383204 [details]
> build.log.gz of kdepimlibs version 4.14.0 without ccache

The only i could imagine that your local installation of qt4/qt5 is broken, you could try to re-install those.
Comment 12 gerion 2014-08-20 18:30:14 UTC
I've rebuilded my whole qt packages (4 and 5). No change.
Comment 13 gerion 2014-08-20 19:13:21 UTC
Is this maybe the solution?

# ld -lQt5::Core
ld: cannot find -lQt5::Core
# ld -lQt5Core
ld: warning: cannot find entry symbol _start; not setting start address

Then cmake causes the problem, eventually. Which part generates the -lQt5::Core stuff?
Comment 14 gerion 2014-08-20 19:23:59 UTC
Tried with cmake with qt4 useflag and cmake with qt5 useflag. No change…
Comment 15 Johannes Huber (RETIRED) gentoo-dev 2014-08-20 19:27:50 UTC
(In reply to gerion from comment #14)
> Tried with cmake with qt4 useflag and cmake with qt5 useflag. No change.

Maybe your toolchain is broken. I can see in your build log something with cross compile...
Comment 16 Michael Palimaka (kensington) gentoo-dev 2014-08-21 09:27:02 UTC
What's the output of 'qlist akonadi-server | grep cmake | xargs grep Qt' ?

Also, please check to see if there's any Qt 5 references in 'qlist akonadi-server | xargs lddtree'
Comment 17 gerion 2014-08-21 10:52:16 UTC
(In reply to Michael Palimaka (kensington) from comment #16)
> What's the output of 'qlist akonadi-server | grep cmake | xargs grep Qt' ?
> 
> Also, please check to see if there's any Qt 5 references in 'qlist
> akonadi-server | xargs lddtree'
# qlist akonadi-server | grep cmake | xargs grep Qt
/usr/lib64/cmake/Akonadi/AkonadiTargetsWithPrefix-gentoo.cmake:  IMPORTED_LINK_INTERFACE_LIBRARIES_GENTOO "Qt4::QtCore;Qt4::QtDBus"
# qlist akonadi-server | xargs lddtree | grep -i qt5
        libQt5Core.so.5 => /usr/lib64/libQt5Core.so.5
# qlist akonadi-server | xargs lddtree | grep -i qt5 -A 10 -B 10
    libQtNetwork.so.4 => /usr/lib64/qt4/libQtNetwork.so.4
        libssl.so.1.0.0 => /usr/lib64/libssl.so.1.0.0
        libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0
    libQtSql.so.4 => /usr/lib64/qt4/libQtSql.so.4
    libQtXml.so.4 => /usr/lib64/qt4/libQtXml.so.4
    libakonadiprotocolinternals.so.1 => /usr/lib64/libakonadiprotocolinternals.so.1
    libQtDBus.so.4 => /usr/lib64/qt4/libQtDBus.so.4
        libdbus-1.so.3 => /usr/lib64/libdbus-1.so.3
    libboost_program_options.so.1.52.0 => /usr/lib64/libboost_program_options.so.1.52.0
    libsoprano.so.5 => /usr/lib64/libsoprano.so.5
        libQt5Core.so.5 => /usr/lib64/libQt5Core.so.5
            libicui18n.so.52 => /usr/lib64/libicui18n.so.52
            libicuuc.so.52 => /usr/lib64/libicuuc.so.52
                libicudata.so.52 => /usr/lib64/libicudata.so.52
            libpcre16.so.0 => /usr/lib64/libpcre16.so.0
    libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libstdc++.so.6
    libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so.1
    libc.so.6 => /lib64/libc.so.6
    libpthread.so.0 => /lib64/libpthread.so.0
akonadi_rds => /usr/bin/akonadi_rds (interpreter => /lib64/ld-linux-x86-64.so.2)
    libQtCore.so.4 => /usr/lib64/qt4/libQtCore.so.4

Soprano was build with the qt5 useflag. I changed it to qt4 (without breaking any kframeworkstuff) and rebuilded soprano, akonadi-server and kdepimlibs:
# qlist akonadi-server | xargs lddtree | grep -i qt5 -A 10 -B 10
#

Still no change to kdepimlibs…

/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQt5::Core
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libakonadi-kde.so.4.13.3] Error 1

(In reply to Johannes Huber from comment #15)
> Maybe your toolchain is broken. I can see in your build log something with
> cross compile...
I sometimes compile some stuff for the raspberry pi. Therefore the crosscompile with distcc.