Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246364 - media-video/nvidia-settings-177.80 requires -fPIC for libXNVCtrl, observed when building gnome-extra/sensors-applet-2.2.1
Summary: media-video/nvidia-settings-177.80 requires -fPIC for libXNVCtrl, observed wh...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: X11 External Driver Maintainers
URL: http://www.gentoo.org/proj/en/base/am...
Whiteboard:
Keywords:
: 267728 (view as bug list)
Depends on:
Blocks: 207543
  Show dependency tree
 
Reported: 2008-11-11 00:55 UTC by Joe Sapp (RETIRED)
Modified: 2009-04-28 06:20 UTC (History)
6 users (show)

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


Attachments
proposed patch to media-video/nvidia-settings-177.80 (nvidia-settings-177.80-r1-fPIC.patch,934 bytes, patch)
2008-11-11 01:00 UTC, Joe Sapp (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Sapp (RETIRED) gentoo-dev 2008-11-11 00:55:51 UTC
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:
Comment 1 Joe Sapp (RETIRED) gentoo-dev 2008-11-11 01:00:11 UTC
Created attachment 171384 [details, diff]
proposed patch to media-video/nvidia-settings-177.80
Comment 2 Pacho Ramos gentoo-dev 2009-01-05 11:34:23 UTC
Maybe peper should be added to CC list as he is figuring in metadata as maintainer of this package
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-01 20:28:08 UTC
adding last maintainers that touched this ebuild.
Comment 4 Harris Landgarten 2009-03-16 02:59:06 UTC
Please add this patch to nvidia-settings to the tree. Without it sensor-applets will not compile with the nvidia flag
Comment 5 Waldo 2009-03-17 02:44:17 UTC
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
Comment 6 Ricardo Mendoza (RETIRED) gentoo-dev 2009-03-18 10:15:25 UTC
Ebuilds patched, please sync and test. I've patched all the ebuilds and also bumped according to the most recent nvidia-drivers versions.
Comment 7 Pacho Ramos gentoo-dev 2009-03-18 19:28:36 UTC
Thanks!
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-28 06:20:07 UTC
*** Bug 267728 has been marked as a duplicate of this bug. ***