sinojelly / test-ng-pp

Automatically exported from code.google.com/p/test-ng-pp
GNU Lesser General Public License v3.0
0 stars 1 forks source link

install error : link error #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. suse 10 64bit
2. run build_install.sh

What is the expected output? What do you see instead?
install successfully

What version of the product are you using? On what operating system?
the 1.1 version

Please provide any additional information below.

how to solve the problem(SUSE 10 , 64bit)
150 mmsc106 :/home/yangsf/build_testngpp_to_install>make -f Makefile
[ 17%] Built target testngpp
[ 21%] Built target testngpp-utils
[ 23%] Built target testngpp-except
[ 32%] Built target mem-checker
Linking CXX shared module libtestngppstdoutlistener.so
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: 
../except/libtestngpp-except.a(Exception.cpp.o): relocation R_X86_64_32 against 
`vtable for testngpp::Exception' can not be used when making a shared object; 
recompile with -fPIC
../except/libtestngpp-except.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [src/listeners/libtestngppstdoutlistener.so] Error 1
make[1]: *** [src/listeners/CMakeFiles/testngppstdoutlistener.dir/all] Error 2

Original issue reported on code.google.com by ysf...@gmail.com on 22 May 2012 at 10:00

GoogleCodeExporter commented 9 years ago
you can use below command
cmake -D CMAKE_CXX_FLAGS=-fPIC

Original comment by zhaoyg1...@gmail.com on 22 Oct 2012 at 3:19