[Insight-users] Problem linking InsightApplications libvvITKAntiAlias.so

Sam Preston j.sam.preston at gmail.com
Fri Aug 28 16:17:36 EDT 2009


Hi all,

I'm trying to compile InsightApplications v. 3.14, and I get the
following linking error:

relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC

The whole output is below.  I'm compiling against ITK v. 3.14, and I'm
pretty stumped by the error -- any suggestions?

-Sam

Linking CXX shared module libvvITKAntiAlias.so
cd /scratch/jsam/src/InsightApplications-3.14.0/build-release/VolviewPlugIns
&& /usr/bin/cmake -E cmake_link_script
CMakeFiles/vvITKAntiAlias.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC   -ftemplate-depth-50 -Wall -Wno-deprecated -msse2
 -Wno-deprecated  -ftemplate-depth-50 -Wall -Wno-deprecated -msse2 -g
   -shared -Wl,-soname,libvvITKAntiAlias.so -o libvvITKAntiAlias.so
CMakeFiles/vvITKAntiAlias.dir/vvITKAntiAlias.o
-L/local/jsam/src/ITK/build-debug/bin
-L/scratch/jsam/src/VTK-5.2.1/build-debug/bin -lITKAlgorithms
-lITKCommon -lITKBasicFilters -lITKIO -lITKCommon -lITKBasicFilters
-lITKAlgorithms -lITKStatistics -litkNetlibSlatec -lITKNumerics
-lITKNrrdIO -litkgdcm -litkjpeg12 -litkjpeg16 -litkopenjpeg -luuid
-litkpng -litktiff -litkjpeg8 -lITKSpatialObject -lITKCommon
-litkvnl_inst -litkvnl_algo -litkv3p_netlib -litkvnl -litkvcl -lm
-lpthread -lITKMetaIO -litksys -ldl -lITKDICOMParser -lITKEXPAT
-lITKniftiio -lm -lITKznz -litkzlib
-Wl,-rpath,/local/jsam/src/ITK/build-debug/bin:/scratch/jsam/src/VTK-5.2.1/build-debug/bin
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
/local/jsam/src/ITK/build-debug/bin/libitkvnl_algo.a(vnl_svd+double-.o):
relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
/local/jsam/src/ITK/build-debug/bin/libitkvnl_algo.a: could not read
symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [VolviewPlugIns/libvvITKAntiAlias.so] Error 1
make[2]: Leaving directory
`/local/jsam/src/InsightApplications-3.14.0/build-release'
make[1]: *** [VolviewPlugIns/CMakeFiles/vvITKAntiAlias.dir/all] Error 2
make[1]: Leaving directory
`/local/jsam/src/InsightApplications-3.14.0/build-release'
make: *** [all] Error 2


-- 
--------------------
J. Samuel Preston
Research Assistant
Scientific Computing and Imaging Institute
University of Utah


More information about the Insight-users mailing list