My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 8: install error : link error
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by ysf...@gmail.com, May 22, 2012
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

Oct 21, 2012
#1 zhaoyg1...@gmail.com
you can use below command
cmake -D CMAKE_CXX_FLAGS=-fPIC

Powered by Google Project Hosting