Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435040 - net-misc/tor-0.2.4.2_alpha - src/common/libor.a(util.o): In function `tor_lround': util.c:(.text+0xeb7): undefined reference to `ceil'
Summary: net-misc/tor-0.2.4.2_alpha - src/common/libor.a(util.o): In function `tor_lro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL: https://trac.torproject.org/projects/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-14 15:55 UTC by Alexandre
Modified: 2012-10-28 15:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build log. (build.log,17.44 KB, text/plain)
2012-09-14 15:56 UTC, Alexandre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre 2012-09-14 15:55:29 UTC
Updating to tor-0.2.4.2_alpha, then:

src/common/libor.a(util.o): In function `tor_lround':
util.c:(.text+0xeb7): undefined reference to `ceil'
src/common/libor.a(util.o): In function `tor_mathlog':
util.c:(.text+0xe79): undefined reference to `log'
  CCLD   src/test/bench
collect2: ld returned 1 exit status

Reproducible: Always




Portage 2.1.11.17 (default/linux/amd64/10.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r2, 3.5.3-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.3-gentoo-x86_64-Intel-R-_Pentium-R-_Dual_CPU_T3400_@_2.16GHz-with-gentoo-2.2
Timestamp of tree: Fri, 14 Sep 2012 15:15:01 +0000
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.3
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo sunrise
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy ccache config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" ftp://gentoo.c3sl.ufpr.br/gentoo/ http://gentoo.c3sl.ufpr.br/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/ http://www.las.ic.unicamp.br/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage/"
USE="7Zip X a52 aac acl acpi alsa amd64 audiofile bash-completion berkdb branding bzip2 cairo caps cdda cddb cdparanoia cdr cli colord consolekit cracklib crypt css cups custom-cflags cxx dbus dga dri dts dvd dvdr eds encode evo exif fam ffmpeg firefox flac foomaticdb ftp gdbm gif gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gtk3 iconv imagemagick imap jabber java jpeg lame latex lcms libcanberra libnotify llvm lm_sensors lzma lzo mad matroska minimal mmx mng modules mp3 mp4 mpd mpeg mudflap multilib musepack musicbrainz nautilus ncurses networkmanager nls nptl nsplugin nvidia offensive ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio quicktime readline samba schroedinger sdl session socialweb spell sse sse2 ssl ssse3 startup-notification svg syslog tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vdpau vim-syntax vorbis wavpack wifi x264 xcb xml xv xvid zlib" ALSA_CARDS="hda-intel loopback" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexandre 2012-09-14 15:56:04 UTC
Created attachment 323780 [details]
Complete build log.
Comment 2 Anthony Basile gentoo-dev 2012-09-16 18:53:11 UTC
Can you give me what use flags you have enabled for tor?
Comment 3 Alexandre 2012-09-16 21:38:00 UTC
net-misc/tor-0.2.3.22_rc  USE="bufferevents nat-pmp threads tor-hardening (-selinux) -transparent-proxy -upnp -web"

net-misc/tor-0.2.4.2_alpha  USE="bufferevents nat-pmp threads tor-hardening (-selinux) -transparent-proxy -upnp -web"
Comment 4 Anthony Basile gentoo-dev 2012-09-16 22:22:58 UTC
Thanks I narrowed it to USE="upnp"  ie. --enable-upnp.  With it on, it compiles, off it fails.
Comment 5 Alexandre 2012-09-16 23:12:37 UTC
True, compiled here now. :-)

Thanks!!!
Comment 6 Anthony Basile gentoo-dev 2012-10-27 03:01:14 UTC
(In reply to comment #5)
> True, compiled here now. :-)
> 
> Thanks!!!

Okay this bug has bugged me for long enough.  I've patched tor-0.2.4.5_alpha and pushed the fix upstream.  Can you please test.

The upstream bug is at https://trac.torproject.org/projects/tor/ticket/7235
Comment 7 Alexandre 2012-10-27 15:25:11 UTC
net-misc/tor-0.2.4.5_alpha  USE="bufferevents threads tor-hardening -nat-pmp (-selinux) -stats -transparent-proxy -upnp -web"

Working pretty well.

Thanks! :-)
Comment 8 Anthony Basile gentoo-dev 2012-10-28 15:08:03 UTC
Patch accepted upstream.

https://gitweb.torproject.org/tor.git/commit/74babcb1eafb1b8e8b67b83eba676a457e34a533