[hdf-forum] - HDF5-1.6.5 Vs HDF5-1.6.7 - Errors "libhdf5_cpp.a(H5Exception.o): relocation R_X86_64_32"

Anish Anto Anish.Anto at appliedbiosystems.com
Tue Oct 14 16:44:23 EDT 2008


Hi HDF users/ HDF support -

I have been facing some errors on compiling an existing source component 
with a hdf5-1.6.7, however does work good using hdf5-1.6.5

Case: Error,  Build using hdf5-1.6.7.
mex -I"include" -I"../shared/spchio1/include" 
-I"../shared/hdf5cxx1/include" -I"/home/antoan/hdf5167/include" 
-I"/usr/include/boost1.36" -I"/usr/include/boost1.36/boost/tr1/tr1" 
-outdir ./build \
        ./mex/buildReads.cpp \
        -L/opt/matlab/bin/glnxa64 -L/home/antoan/hdf5167/lib 
-L../builds/lib \
        -lReadBuilder -lspchio1 -lhdf5cxx1 \
        -lhdf5_cpp -lhdf5 -lboost_regex-gcc34-mt 
-lboost_filesystem-gcc34-mt
/usr/bin/ld: /home/antoan/hdf5167/lib/libhdf5_cpp.a(H5Exception.o): 
relocation R_X86_64_32 against `std::basic_string<char, 
std::char_traits<char>, std::allocator<char> 
>::_Rep::_S_empty_rep_storage' can not be used when making a shared 
object; recompile with -fPIC
/home/antoan/hdf5167/lib/libhdf5_cpp.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
    mex: link of './build/buildReads.mexa64' failed.
make: *** [build/buildReads.mexa64] Error 1

note: earlier hdf5-1.6.7 was Configured using "./configure --enable-cxx 
--prefix=/home/antoan/hdf5167 --enable-production"


Case: Success, Build using hdf5-1.6.5.
mex -I"include" -I"../shared/spchio/include" -I"../shared/hdf5cxx/include" 
-I"/home/antoan/hdf5/include" -I"/usr/include/boost1.36" 
-I"/usr/include/boost1.36/boost/tr1/tr1" -outdir ./build \
        ./mex/buildReads.cpp \
        -L/opt/matlab/bin/glnxa64 -L/home/antoan/hdf5/lib -L../builds/lib 
\
        -lReadBuilder -lspchio -lhdf5cxx \
        -lhdf5_hl -lhdf5 -lboost_regex-gcc34-mt 
-lboost_filesystem-gcc34-mt
cp build/buildReads.mexa64 ../builds/lib


Any helpful pointers ?

Thanks
Anish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.hdfgroup.org/pipermail/hdf-forum_hdfgroup.org/attachments/20081014/274970de/attachment.html>


More information about the Hdf-forum mailing list