* Rocco Stanzione
| /usr/bin/ld: /usr/lib/libXxf86vm.a(XF86VMode.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
Why are you trying to link this statically rather than linking against
the dynamic library?
| so I add -fPIC to CFLAGS in debian/rules and rebuild, reinstall, and the
| same command (which was: cc -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
| -I/usr/include main.o /usr/lib/libXxf86vm.a -o gamma.so -L/usr/lib/
| `pkg-config gtk+-2.0 --libs` -shared) works.
|
| I don't know if this is a 'fix' or if it just makes it work with
| gkrellm-gamma.
It breaks static compilations, so please don't do that. If you have a
real need to link libXxf86vm statically into a shared object, the
right fix would be to provide a secondary .a file with the objects
compiled with -fPIC.
--
Tollef Fog Heen ,''`.
UNIX is user friendly, it's just picky about who its friends are : :' :
`. `'
`-
** Changed in: libxxf86vm (Ubuntu)
Importance: Untriaged => Wishlist
Assignee: Ubuntu Sponsors for main => Tollef Fog Heen
Status: Unconfirmed => Needs Info
--
Can't build against libxxf86vm-dev
https://launchpad.net/bugs/59402
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs