[tor-bugs] #6622 [Tor Relay]: Tor link against static zlib broken by -pie switch

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Aug 17 15:34:28 UTC 2012


#6622: Tor link against static zlib broken by -pie switch
-------------------------+--------------------------------------------------
 Reporter:  tmpname0901  |          Owner:                    
     Type:  defect       |         Status:  new               
 Priority:  major        |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Relay    |        Version:  Tor: 0.2.3.20-rc  
 Keywords:               |         Parent:                    
   Points:               |   Actualpoints:                    
-------------------------+--------------------------------------------------

Comment(by tmpname0901):

 Replying to [comment:1 Sebastian]:
 > This has been bugging me too, what you need to do is compile all
 dependencies with -fPIC. For libevent that means settings it in CFLAGS,
 for openssl it means using the -fPIC config switch.

 True.  A static-except-for-glibc build of v0.2.3.20-rc:

 $ ldd BUILD/tor-0.2.3.20-rc/src/or/tor
         linux-vdso.so.1 =>  (0x00007fffe21fd000)
         libm.so.6 => /lib64/libm.so.6 (0x00002adebff41000)
         libdl.so.2 => /lib64/libdl.so.2 (0x00002adec01c4000)
         librt.so.1 => /lib64/librt.so.1 (0x00002adec03c9000)
         libc.so.6 => /lib64/libc.so.6 (0x00002adec05d2000)
         libpthread.so.0 => /lib64/libpthread.so.0 (0x00002adec0929000)
         /lib64/ld-linux-x86-64.so.2 (0x00002adebf789000)

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


More information about the tor-bugs mailing list