<div dir="ltr"><div><div class="gmail_quote">On Tue, May 11, 2010 at 10:36 AM, Francesco P. Lovergine <span dir="ltr"><<a href="mailto:frankie@debian.org">frankie@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Mon, May 10, 2010 at 01:03:03PM +0300, Orgad Shaneh wrote:<br>
> Package: libhdf5-serial-dev<br>
> Version: 1.8.4-patch1-2<br>
> Severity: important<br>
><br>
> When trying to link a shared library using libhdf5, I receive the<br>
> following message:<br>
> /usr/bin/ld: /usr/lib/libhdf5.a(H5.o): relocation R_X86_64_32 against<br>
> `H5_debug_g' can not be used when making a shared object; recompile<br>
> with -fPIC<br>
> /usr/lib/libhdf5.a: could not read symbols: Bad value<br>
><br>
> I tried rebuilding the package, specifying -fPIC in DEBOPT, and it<br>
> helps. On i386 it is unneeded.<br>
><br>
<br>
Are you trying to create a shared object/program with also static libraries?<br>
<br>
--<br>
<font color="#888888">Francesco P. Lovergine<br>
</font></blockquote></div><br></div><div>I'm creating a shared library, linking to hdf5 with -lhdf5. No static linking (as far as I know).<div><br></div><div>- Orgad</div></div></div>