[tor-bugs] #11637 [FTE]: libfte link failure.

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Apr 28 18:31:16 UTC 2014


#11637: libfte link failure.
---------------------+------------------------
 Reporter:  yawning  |          Owner:  kpdyer
     Type:  defect   |         Status:  new
 Priority:  normal   |      Milestone:
Component:  FTE      |        Version:
 Keywords:           |  Actual Points:
Parent ID:           |         Points:
---------------------+------------------------
 Linking fails on my system due to missing `-fPIC`.

 {{{
 g++ -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro build/temp
 .linux-x86_64-2.7/fte/rank_unrank.o build/temp.linux-x86_64-2.7/fte/cDFA.o
 -Lthirdparty/re2/obj -Lthirdparty/gmp/bin -Lthirdparty/gmp/lib -L/usr/lib
 -lgmp -lpython2.7 -o build/lib.linux-x86_64-2.7/fte/cDFA.so
 thirdparty/re2/obj/libre2.a -Wl,-undefined,dynamic_lookup
 /usr/bin/ld: build/temp.linux-x86_64-2.7/fte/rank_unrank.o: relocation
 R_X86_64_PC32 against symbol `_ZN3DFA21getNumWordsInLanguageEjj' can not
 be used when making a shared object; recompile with -fPIC
 /usr/bin/ld: final link failed: Bad value
 collect2: error: ld returned 1 exit status
 error: command 'g++' failed with exit status 1
 }}}

 Adding `'-fPIC'` to `extra_compile_args` in setup.py fixes it for me.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11637>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list