[Bug 59402] Re: Can't build against libxxf86vm-dev

2007-03-29 Thread Tollef Fog Heen
No response from submitter; rejecting.

** Changed in: libxxf86vm (Ubuntu)
   Status: Needs Info => Rejected

-- 
Can't build against libxxf86vm-dev
https://launchpad.net/bugs/59402

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 59402] Re: Can't build against libxxf86vm-dev

2006-09-11 Thread Tollef Fog Heen
* 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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 59402] Re: Can't build against libxxf86vm-dev

2006-09-07 Thread Rocco Stanzione
Assigning to ubuntu-main-sponsors for review

** Changed in: libxxf86vm (Ubuntu)
 Assignee: (unassigned) => Ubuntu Sponsors for main

-- 
Can't build against libxxf86vm-dev
https://launchpad.net/bugs/59402

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 59402] Re: Can't build against libxxf86vm-dev

2006-09-07 Thread Rocco Stanzione
This patch will build the package with -fPIC and fix the problem.  My
understanding, which may well be flawed, is that this will make no
difference on ia32 builds, but add the benefit of -fPIC (demonstrated by
this bug) to amd64 and ppc builds.

** Attachment added: "fpic.diff"
   http://librarian.launchpad.net/4182201/fpic.diff

-- 
Can't build against libxxf86vm-dev
https://launchpad.net/bugs/59402

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs