Re: big number of relocations in gtk2 binding

muppet <scott asofyet org> writes:

[ LD blib/arch/auto/Gtk2/ ]
/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
$ blib/arch/auto/Gtk2/
blib/arch/auto/Gtk2/ 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]