<div dir="ltr"><div class="gmail_quote">On Wed, Jul 28, 2010 at 11:42 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;">
<div><div></div><div class="h5">On Tue, Jul 27, 2010 at 10:31:19PM +0300, Orgad Shaneh wrote:<br>
> On Tue, May 11, 2010 at 10:36 AM, Francesco P. Lovergine <<a href="mailto:frankie@debian.org">frankie@debian.org</a><br>
> > wrote:<br>
><br>
> > 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<br>
> > libraries?<br>
> ><br>
> > --<br>
> > Francesco P. Lovergine<br>
> ><br>
><br>
> I'm creating a shared library, linking to hdf5 with -lhdf5. No static<br>
> linking (as far as I know).<br>
><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're right. I guess it happened because we switched from 32 to 64 bit, and apparently didn't rebuild the whole project, and had some 32-bit leftovers...</div><div><br></div>
<div>- Orgad</div></div>