During system update, emerging x11-misc/colord-0.1.34 fails because of compilation errors Reproducible: Always Steps to Reproduce: 1. emerge -1 =x11-misc/colord-0.1.34 Actual Results: /bin/sh ../../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -Wall -Wcast-align -Wno-uninitialized -Wmissing-declarations -Wpointer-arith -Wcast-align -Wwrite-strings -Winit-self -Wreturn-type -Wformat-nonliteral -Wformat-security -Wmissing-include-dirs -Wmissing-format-attribute -Wclobbered -Wempty-body -Wignored-qualifiers -Wsign-compare -Wtype-limits -Wuninitialized -Waggregate-return -Wdeclaration-after-statement -Wshadow -Wno-strict-aliasing -Winline -Wmissing-parameter-type -Woverride-init -O2 -pipe -march=native -module -avoid-version -Wl,-O1 -Wl,--as-needed -o libcolord_sensor_colorhug.la -rpath /usr/lib64/colord-sensors libcolord_sensor_colorhug_la-cd-sensor-colorhug.lo -lgthread-2.0 -pthread -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lgusb -lgobject-2.0 -lglib-2.0 -lusb-1.0 ../../lib/colorhug/libcolorhug.la ../cd-sensor.c: In function ‘cd_sensor_open_usb_device’: ../cd-sensor.c:1186:2: warning: implicit declaration of function ‘g_udev_device_get_sysfs_attr_as_int’ [-Wimplicit-function-declaration] ../cd-sensor.c:1186:52: error: ‘CdSensorPrivate’ has no member named ‘device’ ../cd-sensor.c:1187:52: error: ‘CdSensorPrivate’ has no member named ‘device’ ../cd-sensor.c: At top level: ../cd-sensor.c:1373:1: warning: no previous declaration for ‘cd_sensor_set_index’ [-Wmissing-declarations] make[4]: *** [cd_sensor_dump-cd-sensor.o] Error 1 ... make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/x11-misc/colord-0.1.34/work/colord-0.1.34/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/x11-misc/colord-0.1.34/work/colord-0.1.34/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-misc/colord-0.1.34/work/colord-0.1.34' make: *** [all] Error 2 * ERROR: x11-misc/colord-0.1.34::gentoo failed (compile phase): * emake failed Expected Results: compile If this is not a bug, it may be because I am unable to complete my system update which still needs 200 packages. colord emerge fails during @preserved-build step.
Created attachment 356806 [details] emerge --info '=x11-misc/colord-0.1.34::gentoo'
Created attachment 356810 [details] build log
As a temporary solution, I was able to remove colord from my system by removing the colord use flag from these packages: >=gnome-base/gnome-control-center-3.8.4.1-r1 -colord >=gnome-base/gnome-settings-daemon-3.8.4 -colord x11-libs/gtk+ -colord Then, re-emerging them: emerge -1vN gnome-base/gnome-settings-daemon gnome-base/gnome-control-center x11-libs/gtk+ And then removing colord: emerge -v --depclean x11-misc/colord gnome-extra/gnome-color-manager That should be safe and stop if there are more dependencies.
Still happens after I completed my system update to ~amd64.
You are saying that this is still a problem with colord-1.0.3 ? Could you please post an updated build.log ?
Created attachment 358306 [details] updated build.log for 1.0.3
The problem is, you were emerging colord with USE="gusb -udev". Looking at colord's source, it's clear that gusb requires udev, but we were missing that requirement from the ebuild. + 08 Sep 2013; Alexandre Rostovtsev <tetromino@gentoo.org> + colord-0.1.28.ebuild, colord-0.1.31.ebuild, colord-0.1.34.ebuild, + colord-1.0.3.ebuild: + USE=gusb requires USE=udev (bug #482276, thanks to Cengiz Gunay).
That was it! It works for me, too. Thanks.