Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479046 - =x11-misc/lightdm-1.7.7 with dev-qt/qtcore-5 - In file included from greeter.cpp:256:0: greeter_moc5.cpp:13:2: error: #error "This file was generated using the moc from 4.8.5. It cannot be used with the include files from this version of Qt."
Summary: =x11-misc/lightdm-1.7.7 with dev-qt/qtcore-5 - In file included from greeter....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-30 22:31 UTC by Francesco Riosa
Modified: 2014-04-10 17:12 UTC (History)
7 users (show)

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


Attachments
build.log (lightdm-1.7.7:20130801-170654.log,35.37 KB, text/x-log)
2013-08-01 17:08 UTC, Johannes Huber (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2013-07-30 22:31:30 UTC
Tomorrow I'll give emerge --info and full build log, in the meantime here is an extract of the failure:

qtcore Installed versions:  4.8.5(4){tbz2}(18:38:17 07/29/13)(exceptions glib iconv icu qt3support ssl -aqua -c++0x -debug -pch) 5.1.0(5){tbz2}[1](18:33:40 07/29/13)(c++11 icu -debug -glib -test)


                    Light Display Manager 1.7.7
                    ===========================

        prefix:                   /usr
        Greeter session:          lightdm-gtk-greeter
        Greeter user:             root
        User session:             gnome
        liblightdm-gobject:       yes
        GObject introspection:    yes
        liblightdm-qt:            yes
        liblightdm-qt5:           yes
        Enable tests:             yes

[...]


/bin/sh ../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..    -fPIC -DQT_DISABLE_DEPRECATED_BEFORE="QT_VERSION_CHECK(4, 0, 0)" -I/usr/include/qt5/QtDBus -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/
usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5  -I../liblightdm-gobject -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2  -DQT_NO_KEYWORDS -DXSESSIONS_DIR=\"
/usr/share/xsessions\" -O2 -march=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=
corei7-avx -mno-bmi2 -mno-avx2 -mno-lzcnt -mrdrnd --param=l1-cache-size=32 -mno-rtm -mno-hle -mno-rdseed -mno-prfchw -mno-adx -fvisibility-inlines-hidden -fabi-version=6 -ffor-scope -fstrict-enums -fuse-cxa-atexit -c -o liblightdm_qt5_3_
la-greeter.lo `test -f 'greeter.cpp' || echo './'`greeter.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -fPIC "-DQT_DISABLE_DEPRECATED_BEFORE=QT_VERSION_CHECK(4, 0, 0)" -I/usr/include/qt5/QtDBus -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/
qt5/QtCore -I/usr/include/qt5 -I../liblightdm-gobject -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -DQT_NO_KEYWORDS -DXSESSIONS_DIR=\"/usr/share/xsessions\" -O2 -march
=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=corei7-avx -mno-bmi2 -mno-avx2 -m
no-lzcnt -mrdrnd --param=l1-cache-size=32 -mno-rtm -mno-hle -mno-rdseed -mno-prfchw -mno-adx -fvisibility-inlines-hidden -fabi-version=6 -ffor-scope -fstrict-enums -fuse-cxa-atexit -c greeter.cpp  -fPIC -DPIC -o .libs/liblightdm_qt5_3_la
-greeter.o
In file included from greeter.cpp:256:0:
greeter_moc5.cpp:13:2: error: #error "This file was generated using the moc from 4.8.5. It"
 #error "This file was generated using the moc from 4.8.5. It"
  ^
greeter_moc5.cpp:14:2: error: #error "cannot be used with the include files from this version of Qt."
 #error "cannot be used with the include files from this version of Qt."
  ^
greeter_moc5.cpp:15:2: error: #error "(The moc has changed too much.)"
 #error "(The moc has changed too much.)"
  ^
/bin/sh ../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..    -fPIC -DQT_DISABLE_DEPRECATED_BEFORE="QT_VERSION_CHECK(4, 0, 0)" -I/usr/include/qt5/QtDBus -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/
usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5  -I../liblightdm-gobject -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2  -DQT_NO_KEYWORDS -DXSESSIONS_DIR=\"
/usr/share/xsessions\" -O2 -march=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=
corei7-avx -mno-bmi2 -mno-avx2 -mno-lzcnt -mrdrnd --param=l1-cache-size=32 -mno-rtm -mno-hle -mno-rdseed -mno-prfchw -mno-adx -fvisibility-inlines-hidden -fabi-version=6 -ffor-scope -fstrict-enums -fuse-cxa-atexit -c -o liblightdm_qt5_3_
la-power.lo `test -f 'power.cpp' || echo './'`power.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -fPIC "-DQT_DISABLE_DEPRECATED_BEFORE=QT_VERSION_CHECK(4, 0, 0)" -I/usr/include/qt5/QtDBus -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/
qt5/QtCore -I/usr/include/qt5 -I../liblightdm-gobject -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -DQT_NO_KEYWORDS -DXSESSIONS_DIR=\"/usr/share/xsessions\" -O2 -march
=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=corei7-avx -mno-bmi2 -mno-avx2 -m
no-lzcnt -mrdrnd --param=l1-cache-size=32 -mno-rtm -mno-hle -mno-rdseed -mno-prfchw -mno-adx -fvisibility-inlines-hidden -fabi-version=6 -ffor-scope -fstrict-enums -fuse-cxa-atexit -c power.cpp  -fPIC -DPIC -o .libs/liblightdm_qt5_3_la-p
ower.o
In file included from greeter.cpp:256:0:
greeter_moc5.cpp:131:7: error: 'QMetaObjectExtraData' does not name a type
 const QMetaObjectExtraData QLightDM::Greeter::staticMetaObjectExtraData = {
       ^
greeter_moc5.cpp:137:40: error: 'staticMetaObjectExtraData' was not declared in this scope
       qt_meta_data_QLightDM__Greeter, &staticMetaObjectExtraData }
                                        ^
greeter_moc5.cpp: In member function 'virtual const QMetaObject* QLightDM::Greeter::metaObject() const':
greeter_moc5.cpp:146:71: error: conditional expression between distinct pointer types 'QDynamicMetaObjectData*' and 'const QMetaObject*' lacks a cast
     return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
                                                                       ^
make[3]: *** [liblightdm_qt5_3_la-greeter.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from power.cpp:175:0:
power_moc5.cpp:13:2: error: #error "This file was generated using the moc from 4.8.5. It"
 #error "This file was generated using the moc from 4.8.5. It"
  ^
power_moc5.cpp:14:2: error: #error "cannot be used with the include files from this version of Qt."
 #error "cannot be used with the include files from this version of Qt."
  ^
power_moc5.cpp:15:2: error: #error "(The moc has changed too much.)"
 #error "(The moc has changed too much.)"
  ^
power_moc5.cpp:73:7: error: 'QMetaObjectExtraData' does not name a type
 const QMetaObjectExtraData QLightDM::PowerInterface::staticMetaObjectExtraData = {
       ^
power_moc5.cpp:79:47: error: 'staticMetaObjectExtraData' was not declared in this scope
       qt_meta_data_QLightDM__PowerInterface, &staticMetaObjectExtraData }
                                               ^
power_moc5.cpp: In member function 'virtual const QMetaObject* QLightDM::PowerInterface::metaObject() const':
power_moc5.cpp:88:71: error: conditional expression between distinct pointer types 'QDynamicMetaObjectData*' and 'const QMetaObject*' lacks a cast
     return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
                                                                       ^
make[3]: *** [liblightdm_qt5_3_la-power.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/x11-misc/lightdm-1.7.7/work/lightdm-1.7.7/liblightdm-qt'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/x11-misc/lightdm-1.7.7/work/lightdm-1.7.7/liblightdm-qt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-misc/lightdm-1.7.7/work/lightdm-1.7.7'
make: *** [all] Error 2
 * ERROR: x11-misc/lightdm-1.7.7::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-misc/lightdm-1.7.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/lightdm-1.7.7::gentoo'`.
 * The complete build log is located at '/var/log/portage/x11-misc:lightdm-1.7.7:20130730-221140.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/lightdm-1.7.7/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/lightdm-1.7.7/work/lightdm-1.7.7'
 * S: '/var/tmp/portage/x11-misc/lightdm-1.7.7/work/lightdm-1.7.7'
Comment 1 Francesco Riosa 2013-07-31 06:39:56 UTC
workaround:
EXTRA_ECONF=--disable-liblightdm-qt5 emerge -1 lightdm -av
^ this compile and install fine

IMHO a use flag qt5 should be added to the ebuild, possibly mutually exclusive with qt4.

If you don't want/cannot install qt5 on your system I can do a trivial patch and some testing, just ping me



emerge --info lightdm
Portage 2.2.0_alpha191 (default/linux/amd64/13.0, gcc-4.8.1, glibc-2.17, 3.5.7-vs2.3.4.3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.7-vs2.3.4.3-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16404916 total,   2092200 free
KiB Swap:    4610648 total,   4594084 free
Timestamp of tree: Tue, 30 Jul 2013 19:00:01 +0000
ld GNU ld (Linux/GNU Binutils) 2.23.52.0.2.20130423
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5, 3.3.2-r1
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
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.14
sys-devel/binutils:       2.23.52.0.2
sys-devel/gcc:            4.6.4, 4.8.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo qt x11 kde mysql vivovl digikam
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=corei7-avx -mno-bmi2 -mno-avx2 -mno-lzcnt -mrdrnd --param=l1-cache-size=32 -mno-rtm -mno-hle -mno-rdseed -mno-prfchw -mno-adx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d /etc/init.d /usr/share/config /usr/share/config/kdm /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=corei7-avx -mno-bmi2 -mno-avx2 -mno-lzcnt -mrdrnd --param=l1-cache-size=32 -mno-rtm -mno-hle -mno-rdseed -mno-prfchw -mno-adx -fvisibility-inlines-hidden -fabi-version=6 -ffor-scope -fstrict-enums -fuse-cxa-atexit"
DISTDIR="/g/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid --quiet-build=y --buildpkg-exclude=x11-drivers/nvidia-drivers --buildpkg-exclude=sys-power/bbswitch --buildpkg-exclude=app-emulation/virtualbox-modules --buildpkg-exclude=sys-fs/aufs3"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs compress-build-logs compressdebug config-protect-if-modified distcc distlocks ebuild-locks fail-clean fixlafiles installsources merge-sync metadata-transfer news noinfo notitles parallel-fetch parallel-install sandbox sfperms skiprocheck splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://archive.mmu.edu.my/gentoo rsync://gentoo.bloodhost.ru/gentoo-distfiles ftp://gentoo.mirrors.tds.net/gentoo ftp://ftp.halifax.rwth-aachen.de/gentoo/ rsync://mirror.neolabs.kz/gentoo http://ftp.gentoo.bg/ http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/"
INSTALL_MASK=" /usr/lib64/elektra/*.la /usr/lib64/libelektra*.la /usr/lib64/libo{{,sp}grove,style}.la /lib/udev/rules.d/45-Argyll.rules /usr/lib64/terminfo/[0-9] /usr/src/debug /usr/lib64/debug/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--build-id"
MAKEOPTS="-j3"
PKGDIR="/g/packages"
PORTAGE_COMPRESS_FLAGS="-3"
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="/g/portage"
PORTDIR_OVERLAY="/g/ovl/qt /g/ovl/x11 /g/ovl/kde /g/ovl/mysql /g/ovl/tmp /g/ovl/digikam"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi aiglx aim alsa amd64 artswrappersuid audiofile avahi bash-completion berkdb bidi bzip2 cairo cdda cddb cdr cjk cli consolekit cpudetection cracklib crypt cups cxx dbus dga dri dts dv dvb dvd dvdr dvdread dvi efi egl fame fat ffmpeg firefox flac foomatic-db fortran freetype gcj gdbm gif gimpprint glamor gles2 gmp gnutls gphoto2 gsm gtk hfs iconv icq ieee1394 imap inotify ipod ipv6 irc irda jabber jack jfs joystick kdeenablefinal kdehiddenvisibility kerberos lame lcd libnotify live lm_sensors lzo mail matroska mjpeg mmx modules mozdevelop mp3 mp3rtp msn mudflap multilib musepack musicbrainz ncurses network nls nptl nsplugin ntfs ogg openal opencl opengl openmp pam pcmcia pcre pda perl png policykit ppds pulseaudio python qt3support qt4 r600-llvm-compiler rar rdesktop readline real reiserfs rss scanner sdl session slp smpeg speex sse sse2 ssl startup-notification stream svg sysfs tcpd theora tiff udev unicode usb v4l v4l2 visualization wifi win32codecs wmf x264 xattr xcb xfs xine xinerama xpm xprint xulrunner xvid xvmc yahoo zeroconf zlib" ABI_X86="64" ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y" 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="krita braindump flow stage words sheets" CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="caps cifs dmsquash-live livenet mdraid nfs ssh-client 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 ubx" INPUT_DEVICES="evdev void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="it en en_US" LIRC_DEVICES="audio audio_alsa serial pctv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 pypy2_0" QEMU_SOFTMMU_TARGETS="arm cris m68k microblaze mips mips64 mips64el mipsel ppc ppc64 ppcemb sh4 sh4eb sparc sparc64 x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev vesa r300 r600 intel modesetting radeon" 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"
USE_PYTHON="2.7 3.3 2.7-pypy-2.0"
Unset:  CPPFLAGS, CTARGET, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_RSYNC_EXTRA_OPTS

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

x11-misc/lightdm-1.7.7 was built with the following:
USE="introspection kde qt4 -gtk -razor"
Comment 2 Johannes Huber (RETIRED) gentoo-dev 2013-08-01 17:08:22 UTC
Created attachment 354840 [details]
build.log
Comment 3 Sergey Ilinykh 2013-08-03 04:52:19 UTC
imho lightdm ebuild should be patched to disable qt5
Comment 4 Francesco Riosa 2013-08-11 16:45:30 UTC
I've uninstalled x11-misc/lightdm since the old version create dependancy problems and kdm suffice. Ping if someone want testing or something else
Comment 5 Rob 2013-09-11 22:10:56 UTC
Looking at the ebuild in the unity-gentoo overlay provides another workaround:

MOC5=/usr/lib64/qt5/bin/moc emerge -1 lightdm
Comment 6 Thomas Capricelli 2013-12-05 23:29:09 UTC
Got it by this bug too.

The workaround "MOC5=/usr/lib64/qt5/bin/moc" works, and i got both qt4 and qt5 liblightdm installed.
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2013-12-07 09:50:35 UTC
@Qt. Is this a Gentoo specific bug? i am not sure
Comment 8 Thomas Capricelli 2014-03-01 11:15:25 UTC
I can confirm the bug is still there :-(
Comment 9 Johannes Huber (RETIRED) gentoo-dev 2014-04-09 09:55:56 UTC
Hey Marcos, you could have a look into phonon-4.7.1.ebuild we are using the multibuild eclass to build against qt4 and qt5. So maybe this could help here too or add qt herd in cc as they more knowledge about the used moc.
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2014-04-09 20:31:08 UTC
Qt5 is not in the tree so I can't support something that is not in the portage tree yet. Re-assigning to Qt since this bug comes from the Qt overlay.

(seems like the 1.10.0 package has some support for Qt5. Maybe worth some examination by those using Qt5. See the configure.ac for more details)
Comment 11 Michael Palimaka (kensington) gentoo-dev 2014-04-10 11:06:27 UTC
(In reply to Markos Chandras from comment #10)
> Qt5 is not in the tree so I can't support something that is not in the
> portage tree yet. Re-assigning to Qt since this bug comes from the Qt
> overlay.

What about just turning off Qt5 support for now?
Comment 12 Davide Pesavento gentoo-dev 2014-04-10 11:35:30 UTC
I have no idea why this is assigned to qt, we don't appear anywhere in lightdm's metadata.

The build system is clearly broken, as it assumes that it can generate moc code for both qt4 and qt5 simply by invoking "moc"...

Markos, if you don't want to deal with qt5 yet, disable qt5 support altogether as suggested in comment #1 (even without a USE flag, just forcefully disable it).
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2014-04-10 17:12:42 UTC
(In reply to Davide Pesavento from comment #12)
> I have no idea why this is assigned to qt, we don't appear anywhere in
> lightdm's metadata.
> 
> The build system is clearly broken, as it assumes that it can generate moc
> code for both qt4 and qt5 simply by invoking "moc"...
> 
> Markos, if you don't want to deal with qt5 yet, disable qt5 support
> altogether as suggested in comment #1 (even without a USE flag, just
> forcefully disable it).

I disabled Qt5 in >=1.8.5-r1