Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534368 - net-misc/tor-0.2.6.2_alpha - In file included from src/common/tortls.c:44:0: src/common/compat_libevent.h:75:32: error: unknown type name ‘tor_libevent_get_base’
Summary: net-misc/tor-0.2.6.2_alpha - In file included from src/common/tortls.c:44:0: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL: https://trac.torproject.org/projects/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-02 17:42 UTC by Alex Barker
Modified: 2015-01-14 13:01 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,78.23 KB, text/plain)
2015-01-02 17:42 UTC, Alex Barker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Barker 2015-01-02 17:42:08 UTC
Seems that tor 0.2.6.2_alpha is failing to build.  Build.log attached.

Reproducible: Always
Comment 1 Alex Barker 2015-01-02 17:42:54 UTC
Created attachment 392984 [details]
build.log

x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -I./src/ext -Isrc/ext -I./src/ext/trunnel -I./src/trunnel -I./src/common -Isrc/common -I./src/ext/trunnel -I./src/trunnel -I./src/or -Isrc/or -DSHARE_DATADIR="\"/usr/share\"" -DLOCALSTATEDIR="\"/var/lib\"" -DBINDIR="\"/usr/bin\"" -I./src/common     -march=native -O2 -fomit-frame-pointer -pipe -D_FORTIFY_SOURCE=2 -Wall -fno-strict-aliasing -c -o src/ext/curve25519_donna/src_common_libcurve25519_donna_a-curve25519-donna-c64.o `test -f 'src/ext/curve25519_donna/curve25519-donna-c64.c' || echo './'`src/ext/curve25519_donna/curve25519-donna-c64.c
In file included from src/common/tortls.c:44:0:
src/common/compat_libevent.h:75:32: error: unknown type name ‘tor_libevent_get_base’
 MOCK_DECL(struct event_base *, tor_libevent_get_base, (void));
                                ^
src/common/compat_libevent.h:75:55: error: expected declaration specifiers or ‘...’ before ‘(’ token
 MOCK_DECL(struct event_base *, tor_libevent_get_base, (void));
Comment 2 Alex Barker 2015-01-02 17:43:17 UTC
Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.20-r1, 3.18.1-gentoo x86_64)
=================================================================
System uname: Linux-3.18.1-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2
KiB Mem:    24686704 total,   2795472 free
KiB Swap:    2000088 total,   1999960 free
Timestamp of tree: Fri, 02 Jan 2015 16:45:01 +0000
sh bash 4.3_p33
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo proaudio java science luman tox-overlay torbrowser wtk local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="${CONFIG_PROTECT} /etc /etc/idea/conf /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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/pro-audio /var/lib/layman/java /var/lib/layman/science /var/lib/layman/luman /var/lib/layman/tox-overlay /var/lib/layman/torbrowser /var/lib/layman/wtk /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr berkdb branding bzip2 cairo cdda cddb cdr cifs cli consolekit cracklib crypt cups curl custom-cflags cxx dbus declarative dri dts dvd dvdr emboss encode exif faac fam ffmpeg firefox flac fortran ftp gdbm gif glamor gles2 gnutls gpm gsm gtk hal iconv icu ipv6 jpeg kde kipi lame lcms libnotify lm_sensors lto lzma mad mmx mmx2 mmxext mng modules mozilla mp3 mp4 mpeg multilib musepack mysql ncurses nfs nls nptl nptlonl nsplugin offensive ogg openal opengl openmp opus pam pango pcre pdf phonon pic plasma png policykit ppds python3 qt3support qt4 rar rdesktop rdp readline samba sdl session speex spell sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification steamgames_source_engine svg system-sqlite tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vnc vorbis vpx wavpack wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zip zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="access_compat actions alias auth_basic authn_core authz_core authz_host autoindex dir env filter log_config mime negotiation rewrite setenvif unique_id unixd" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" NETBEANS_MODULES="apisupport cnd dlight harness ide java nb php profiler websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="artec_eplus48u" USERLAND="GNU" VIDEO_CARDS="radeon" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Anthony Basile gentoo-dev 2015-01-04 13:53:49 UTC
What use flags are you enabling?
Comment 4 Nikita Kozlov 2015-01-04 15:17:00 UTC
I had the same issue.
For my part, I have disabled the bufferevents useflag as a workaround.
Comment 5 Florian D. 2015-01-04 17:18:48 UTC
I can confirm this as well. my use-flags:
0.2.6.1_alpha-r3(10:26:49 2014-11-22)(bufferevents nat-pmp stats tor-hardening transparent-proxy upnp -scrypt -seccomp -selinux -test -web)

it compiles fine, when disabling bufferevents, which seems to be a good idea, anyway:

net-misc/tor:bufferevents - Use libevent's buffered IO implementation (unstable, buggy)
Comment 6 Anthony Basile gentoo-dev 2015-01-04 23:01:25 UTC
(In reply to Florian D. from comment #5)
> I can confirm this as well. my use-flags:
> 0.2.6.1_alpha-r3(10:26:49 2014-11-22)(bufferevents nat-pmp stats
> tor-hardening transparent-proxy upnp -scrypt -seccomp -selinux -test -web)
> 
> it compiles fine, when disabling bufferevents, which seems to be a good
> idea, anyway:
> 
> net-misc/tor:bufferevents - Use libevent's buffered IO implementation
> (unstable, buggy)

ah yes, bufferevents stricks again.  upstream is barely supporting them and recommends turning them off anyhow for now.  i'm still leaving the option there in the alphas for precisely this kind of testing.  i confirmed the breakage and will push a patch upstream.
Comment 7 Anthony Basile gentoo-dev 2015-01-08 17:22:12 UTC
(In reply to Anthony Basile from comment #6)
> (In reply to Florian D. from comment #5)
> > I can confirm this as well. my use-flags:
> > 0.2.6.1_alpha-r3(10:26:49 2014-11-22)(bufferevents nat-pmp stats
> > tor-hardening transparent-proxy upnp -scrypt -seccomp -selinux -test -web)
> > 
> > it compiles fine, when disabling bufferevents, which seems to be a good
> > idea, anyway:
> > 
> > net-misc/tor:bufferevents - Use libevent's buffered IO implementation
> > (unstable, buggy)
> 
> ah yes, bufferevents stricks again.  upstream is barely supporting them and
> recommends turning them off anyhow for now.  i'm still leaving the option
> there in the alphas for precisely this kind of testing.  i confirmed the
> breakage and will push a patch upstream.

Okay this is reported upstream and I submitted a patch.  Its just a missing include.  I'm not going to backport the fix because this is just an alpha and I'm sure upstream will have it fixed by the next release.
Comment 8 Anthony Basile gentoo-dev 2015-01-14 13:01:31 UTC
(In reply to Anthony Basile from comment #7)
> (In reply to Anthony Basile from comment #6)
> > (In reply to Florian D. from comment #5)
> > > I can confirm this as well. my use-flags:
> > > 0.2.6.1_alpha-r3(10:26:49 2014-11-22)(bufferevents nat-pmp stats
> > > tor-hardening transparent-proxy upnp -scrypt -seccomp -selinux -test -web)
> > > 
> > > it compiles fine, when disabling bufferevents, which seems to be a good
> > > idea, anyway:
> > > 
> > > net-misc/tor:bufferevents - Use libevent's buffered IO implementation
> > > (unstable, buggy)
> > 
> > ah yes, bufferevents stricks again.  upstream is barely supporting them and
> > recommends turning them off anyhow for now.  i'm still leaving the option
> > there in the alphas for precisely this kind of testing.  i confirmed the
> > breakage and will push a patch upstream.
> 
> Okay this is reported upstream and I submitted a patch.  Its just a missing
> include.  I'm not going to backport the fix because this is just an alpha
> and I'm sure upstream will have it fixed by the next release.

It is fixed upstream:

https://gitweb.torproject.org/tor.git/commit/?id=8df35a0c882d34415b1505a130cbd7a5c0424035