Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482276 - x11-misc/colord-0.1.34 - In function ‘cd_sensor_open_usb_device’: ../cd-sensor.c:1186:52: error: ‘CdSensorPrivate’ has no member named ‘device’
Summary: x11-misc/colord-0.1.34 - In function ‘cd_sensor_open_usb_device’: ../cd-sens...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-23 23:34 UTC by Cengiz Gunay
Modified: 2013-09-08 22:13 UTC (History)
0 users

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


Attachments
emerge --info '=x11-misc/colord-0.1.34::gentoo' (file_482276.txt,5.30 KB, text/plain)
2013-08-23 23:35 UTC, Cengiz Gunay
Details
build log (file_482276.txt,55.79 KB, text/plain)
2013-08-23 23:43 UTC, Cengiz Gunay
Details
updated build.log for 1.0.3 (build.log,167.32 KB, text/plain)
2013-09-08 19:06 UTC, Cengiz Gunay
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cengiz Gunay 2013-08-23 23:34:00 UTC
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.
Comment 1 Cengiz Gunay 2013-08-23 23:35:36 UTC
Created attachment 356806 [details]
emerge --info '=x11-misc/colord-0.1.34::gentoo'
Comment 2 Cengiz Gunay 2013-08-23 23:43:38 UTC
Created attachment 356810 [details]
build log
Comment 3 Cengiz Gunay 2013-08-24 16:23:55 UTC
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.
Comment 4 Cengiz Gunay 2013-08-25 05:40:21 UTC
Still happens after I completed my system update to ~amd64.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-09-08 17:43:31 UTC
You are saying that this is still a problem with colord-1.0.3 ? Could you 
please post an updated build.log ?
Comment 6 Cengiz Gunay 2013-09-08 19:06:24 UTC
Created attachment 358306 [details]
updated build.log for 1.0.3
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-09-08 19:50:28 UTC
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).
Comment 8 Cengiz Gunay 2013-09-08 22:13:37 UTC
That was it! It works for me, too. Thanks.