<div dir="ltr"><div class="gmail_quote">On Wed, Jul 28, 2010 at 11:42 AM, Francesco P. Lovergine <span dir="ltr">&lt;<a href="mailto:frankie@debian.org">frankie@debian.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Tue, Jul 27, 2010 at 10:31:19PM +0300, Orgad Shaneh wrote:<br>
&gt; On Tue, May 11, 2010 at 10:36 AM, Francesco P. Lovergine &lt;<a href="mailto:frankie@debian.org">frankie@debian.org</a><br>
&gt; &gt; wrote:<br>
&gt;<br>
&gt; &gt; On Mon, May 10, 2010 at 01:03:03PM +0300, Orgad Shaneh wrote:<br>
&gt; &gt; &gt; Package: libhdf5-serial-dev<br>
&gt; &gt; &gt; Version: 1.8.4-patch1-2<br>
&gt; &gt; &gt; Severity: important<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; When trying to link a shared library using libhdf5, I receive the<br>
&gt; &gt; &gt; following message:<br>
&gt; &gt; &gt; /usr/bin/ld: /usr/lib/libhdf5.a(H5.o): relocation R_X86_64_32 against<br>
&gt; &gt; &gt; `H5_debug_g&#39; can not be used when making a shared object; recompile<br>
&gt; &gt; &gt; with -fPIC<br>
&gt; &gt; &gt; /usr/lib/libhdf5.a: could not read symbols: Bad value<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I tried rebuilding the package, specifying -fPIC in DEBOPT, and it<br>
&gt; &gt; &gt; helps. On i386 it is unneeded.<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Are you trying to create a shared object/program with also static<br>
&gt; &gt; libraries?<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Francesco P. Lovergine<br>
&gt; &gt;<br>
&gt;<br>
&gt; I&#39;m creating a shared library, linking to hdf5 with -lhdf5. No static<br>
&gt; linking (as far as I know).<br>
&gt;<br>
<br>
</div></div>It would be helpful receiving a full build log. HDF5 shared libs are<br>
used by many reverse dependencies with no problems, I seriously<br>
doubt your shared lib is using the correct building snippet.<br>
<br>
--<br>
<font color="#888888">Francesco P. Lovergine<br>
</font></blockquote></div><br><div>Ok, you&#39;re right. I guess it happened because we switched from 32 to 64 bit, and apparently didn&#39;t rebuild the whole project, and had some 32-bit leftovers...</div><div><br></div>
<div>- Orgad</div></div>