On Sat, Feb 25, 2012 at 12:19 AM, grant schoep <matobinder@gmail.com> wrote:
I get a link problem now with this addition. Everything gets done compiling, then at the link step it bombs

/usr/bin/ld: init.o: relocation R_X86_64_PC32 against `Init_gtk_infobar' 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
make[1]: *** [gtk2.so] Error 1

I'm on CentOS 5.7
gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
Ruby 1.9.2p290

Note, that I am on a 64 bit machine, and I see it did compile all with -fPIC. I did a bit of google to trying to figure out what this message means. Saw some things that hinted at issues with global name space issues, but nothing helped.  I can drop out the 3 changes from your commit and all builds fine.