[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: big number of relocations in gtk2 binding
- From: Thierry Vignaud <tvignaud mandriva com>
- To: muppet <scott asofyet org>
- Cc: gtk2-perl List <gtk-perl-list gnome org>
- Subject: Re: big number of relocations in gtk2 binding
- Date: Wed, 13 Feb 2008 17:07:04 +0100
muppet <scott asofyet org> writes:
> >> [ LD blib/arch/auto/Gtk2/Gtk2.so ]
> >> /usr/bin/ld: xs/GtkStock.o: relocation R_X86_64_PC32 against
> >> `gtk2perl_translate_func_create' can not be used when making a
> >> shared object; recompile with -fPIC
> >> /usr/bin/ld: final link failed: Bad value
> >> collect2: ld returned 1 exit status
> >
> > The actual issue is with visibility. On x86_64, I'd to reverse some
> > bits:
> > <relocations-fixes.patch>
> > $ relinfo.pl blib/arch/auto/Gtk2/Gtk2.so
> > blib/arch/auto/Gtk2/Gtk2.so: 262 relocations, 228 relative (87%),
> > 3856 PLT entries, 28 for local syms (0%), 0 users
>
> Odd. Was -fPIC really not included in the build or was the warning
> spurious? (Setting VERBOSE=1 in the environment will show the full
> link command.)
-fPIC was always added in our build (and I did checked that even to
the linking command that missed but do not normally need it doesn't
change anything)
Usually, this does mean that -fPIC is needed but with visibility on,
such errors usually have nothing to do with -fPIC though the error
message is pointing in the wrong direction...
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]