tor-0.2.4.{2,3,4}: fails with undefined reference to libm functions in libor.a when --disable-upnp
When ./configure --disable-upnp on a Gentoo system, the build fails with. This is easily fixed by linking tor-fw-helper to libm. I'll attach the patch to src/tools/tor-fw-helper/include.am in my next post.
CCLD src/tools/tor-resolve
CCLD src/tools/tor-fw-helper/tor-fw-helper
src/common/libor.a(util.o): In function tor_lround': util.c:(.text+0xf27): undefined reference to
ceil'
src/common/libor.a(util.o): In function tor_llround': util.c:(.text+0xf87): undefined reference to
ceil'
src/common/libor.a(util.o): In function tor_mathlog': util.c:(.text+0xee9): undefined reference to
log'
collect2: ld returned 1 exit status
make[1]: *** [src/tools/tor-fw-helper/tor-fw-helper] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/net-misc/tor-0.2.4.5_alpha/work/tor-0.2.4.5-alpha'
make: *** [all] Error 2
The downstream bug is at