I attempted to build gnome-extra/sensors-applet-2.2.1 and received the following error during compilation: x86_64-pc-linux-gnu-gcc -shared .libs/nvidia-plugin.o -Wl,--rpath -Wl,/var/tmp/portage/gnome-extra/sensors-applet-2.2.1/work/sensors-applet-2.2.1/lib/.libs /usr/lib64/libX11.so /usr/lib64/libXext.so /usr/lib64/libglib-2.0.so -lXNVCtrl ../../lib/.libs/libsensors-applet-plugin.so -march=nocona -Wl,-soname -Wl,libnvidia.so -o .libs/libnvidia.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../lib64/libXNVCtrl.a(NVCtrl.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../lib64/libXNVCtrl.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [libnvidia.la] Error 1 make[2]: Leaving directory `/var/tmp/portage/gnome-extra/sensors-applet-2.2.1/work/sensors-applet-2.2.1/plugins/nvidia' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-extra/sensors-applet-2.2.1/work/sensors-applet-2.2.1/plugins' make: *** [all-recursive] Error 1 This relates to media-video/nvidia-settings-177.80 because it seems to be libXNVCtrl.a that's the problem. Rebuilding libXNVCtrl.a with "-fPIC" seems to fix the problem. I don't know enough to know if this is an amd64 arch issue, I just tried what I read at the URL. Reproducible: Always Steps to Reproduce:
Created attachment 171384 [details, diff] proposed patch to media-video/nvidia-settings-177.80
Maybe peper should be added to CC list as he is figuring in metadata as maintainer of this package
adding last maintainers that touched this ebuild.
Please add this patch to nvidia-settings to the tree. Without it sensor-applets will not compile with the nvidia flag
added the patch to nvidia-settings-180.37 then emerged sensors-applet-2.2.3 which previously did not build. And... it built. Thanks! W
Ebuilds patched, please sync and test. I've patched all the ebuilds and also bumped according to the most recent nvidia-drivers versions.
Thanks!
*** Bug 267728 has been marked as a duplicate of this bug. ***