[tor-bugs] #7235 [Tor]: tor-0.2.4.{2, 3, 4}: fails with undefined reference to libm functions in libor.a when --disable-upnp
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Sat Oct 27 02:51:23 UTC 2012
#7235: tor-0.2.4.{2,3,4}: fails with undefined reference to libm functions in
libor.a when --disable-upnp
----------------------+-----------------------------------------------------
Reporter: blueness | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.4.x-final
Component: Tor | Version: Tor: 0.2.4.5-alpha
Keywords: | Parent:
Points: | Actualpoints:
----------------------+-----------------------------------------------------
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
https://bugs.gentoo.org/show_bug.cgi?id=435040
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7235>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list