Re: RFS: syx
On Thu, Jun 26, 2008 at 11:57:03PM -0500, Luca Bruno wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thu, 26 Jun 2008 22:53:28 +0200
> "Jeffrey Ratcliffe" <jeffrey.ratcliffe@gmail.com> wrote:
>
> > >> dpkg-shlibdeps: warning:
> > >> debian/syx-gtk/usr/lib/syx/gtk/libsyx-gtk.so.0.0.0 shouldn't be linked
> > >> with libgthread-2.0.so.0 (it uses none of its symbols).
> >
> > I've fixed this in the past with LDFLAGS="-Wl,-z,defs,--as-needed",
> > but then here the package FTBFS. It seems the -Bsymbolic-functions
> > flag is currently necessary. Perhaps someone here with more expertise
> > than I have can advise how to fix this warning.
> >
>
> I've tried with -Wl,--as-needed (-z defs will give compilation errors).
> The result is the same.
> objdump -x debian/tmp/usr/lib/syx/gtk/libsyx-gtk.so|grep NEEDED
> NEEDED libgthread-2.0.so.0
> NEEDED librt.so.1
> NEEDED libgtk-x11-2.0.so.0
> NEEDED libgdk-x11-2.0.so.0
> NEEDED libatk-1.0.so.0
> NEEDED libgdk_pixbuf-2.0.so.0
> NEEDED libm.so.6
> NEEDED libpangocairo-1.0.so.0
> NEEDED libpango-1.0.so.0
> NEEDED libcairo.so.2
> NEEDED libgobject-2.0.so.0
> NEEDED libgmodule-2.0.so.0
> NEEDED libdl.so.2
> NEEDED libglib-2.0.so.0
> NEEDED libpthread.so.0
> NEEDED libc.so.6
I bet this thing builds using libtool, right ? libtool is known to be
reordering gcc arguments, and with -Wl,--as-needed, that breaks
everything, as it puts it at the end, making it useless.
Mike
Reply to:
- References:
- RFS: syx
- From: Luca Bruno <lethalman88@gmail.com>
- Re: RFS: syx
- From: "Jeffrey Ratcliffe" <jeffrey.ratcliffe@gmail.com>
- Re: RFS: syx
- From: Luca Bruno <lethalman88@gmail.com>
- Re: RFS: syx
- From: "Jeffrey Ratcliffe" <jeffrey.ratcliffe@gmail.com>
- Re: RFS: syx
- From: Luca Bruno <lethalman88@gmail.com>
- Re: RFS: syx
- From: "Jeffrey Ratcliffe" <jeffrey.ratcliffe@gmail.com>
- Re: RFS: syx
- From: Luca Bruno <lethalman88@gmail.com>
- Re: RFS: syx
- From: "Jeffrey Ratcliffe" <jeffrey.ratcliffe@gmail.com>
- Re: RFS: syx
- From: Luca Bruno <lethalman88@gmail.com>