[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #2702 [- Select a component]: Create a configure flag for building a static Tor
#2702: Create a configure flag for building a static Tor
----------------------------------+-----------------------------------------
Reporter: ioerror | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: - Select a component | Version:
Keywords: | Parent:
Points: | Actualpoints:
----------------------------------+-----------------------------------------
Comment(by ioerror):
I've produced a working static Tor binary but creating this causes a few
warnings:
{{{
Making all in or
make[3]: Entering directory `/tmp/tor/src/or'
gcc -g -O2 -static -Wall -g -O2 -fno-strict-aliasing -L/tmp/static-
tor/zlib-1.2.5 -L/tmp/static-tor/openssl-0.9.8r/ -L/tmp/static-
tor/libevent-1.4.14b-stable -o tor tor_main.o ./libtor.a
../common/libor.a ../common/libor-crypto.a ../common/libor-event.a /tmp
/static-tor/zlib-1.2.5/libz.a -lm /tmp/static-tor/libevent-1.4.14b-
stable/libevent.a -lrt /tmp/static-tor/openssl-0.9.8r//libssl.a /tmp
/static-tor/openssl-0.9.8r//libcrypto.a -lpthread -ldl
/tmp/static-tor/openssl-0.9.8r//libcrypto.a(dso_dlfcn.o): In function
`dlfcn_load':
dso_dlfcn.c:(.text+0x5b4): warning: Using 'dlopen' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
../common/libor.a(compat.o): In function `get_user_homedir':
/tmp/tor/src/common/compat.c:1502: warning: Using 'getpwnam' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
./libtor.a(control.o): In function `getinfo_helper_misc':
/tmp/tor/src/or/control.c:1379: warning: Using 'getpwuid' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
../common/libor.a(address.o): In function `tor_addr_lookup':
/tmp/tor/src/common/address.c:171: warning: Using 'getaddrinfo' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
make[3]: Leaving directory `/tmp/tor/src/or'
}}}
This produces a "working" Tor binary:
{{{
% file src/or/tor
src/or/tor: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux),
statically linked, for GNU/Linux 2.6.15, not stripped
% ldd src/or/tor
not a dynamic executable
}}}
Anything interacting with PAM or dlopen will cause serious failures.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2702#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs