I keep getting this fairly obscure link error whenever I try to link my Ruby extension:
/usr/bin/ld: Mg.o: relocation R_X86_64_PC32 against undefined symbol `init_window_class_under' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
I couldn't find anything on this. I experimented for a while and it linked fine when I removed the header files, so I moved on without them (Yes, very bad idea).
Turns out I need them, now. So, what is this error exactly, and how do I eliminate it?
Update: After clearing everything, I started getting these warnings:
warning: ‘init_window_class_under’ used but never defined
warning: ‘init_display_mode_class_under’ used but never defined
These also appeared when I first encountered the problem. I'm not exactly sure about what they mean.