From: Ralf Mueller Date: 2011-02-07T17:19:36+09:00 Subject: Re: C extension: R_X86_64_32 problem when inlcuding a xxxxx.a library (64 bits SO) On Sun, 6 Feb 2011 06:38:26 +0900 Iñaki Baz Castillo wrote: > 2011/2/5 Iñaki Baz Castillo : > > Hi, I must include a header (udns.h) and library (libudns.a) in a > > Ruby C extension (Linux 64 bits). > > > > In extconf.rb I set: > > > >  have_library("udns") > > I must add that if I install the Debian/Ubuntu package libudns-dev > (which install both a dynamic libudns.so and a static libudns.a) then > my Ruby C extension compiles correctly. > Try '-fPIC -DPIC'. regards ralf