Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274125 - net-p2p/transmission-1.70 fails to compile against dev-libs/libevent-2
Summary: net-p2p/transmission-1.70 fails to compile against dev-libs/libevent-2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-14 14:57 UTC by Fabiano Francesconi
Modified: 2009-06-20 12:55 UTC (History)
1 user (show)

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


Attachments
build log (net-p2p:transmission-1.70:20090614-114218.log,21.00 KB, text/plain)
2009-06-14 14:58 UTC, Fabiano Francesconi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabiano Francesconi 2009-06-14 14:57:37 UTC
I was testing the last unstable version of transmission and I ran into some compilation problem regarding, I suppose, libevent.

I'll attach a complete build log.

Reproducible: Always

Steps to Reproduce:
1. unmask transmission
2. emerge transmission

Actual Results:  
Compilation breaks

Expected Results:  
Compilation should complete successfully

It's not a problem related to --as-needed ldflag or make options such as "-j5" ( I tried with -j1 with no luck).
Comment 1 Fabiano Francesconi 2009-06-14 14:57:56 UTC
elbryan@whitebox ~/Desktop  $ emerge --info
Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-tuxonice-r3 i686)
=================================================================
System uname: Linux-2.6.29-tuxonice-r3-i686-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-glibc2.0
Timestamp of tree: Sun, 14 Jun 2009 09:30:15 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it en"
MAKEOPTS="-j4 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gechi /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdread eds encode esd evo fam firefox flac gdbm gif gmail gnome gstreamer gtk hal hddtemp iconv imap ipod java jpeg laptop libnotify lm_sensors mad midi mikmod mng mp3 mpeg msn mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection samba sdl session ssl startup-notification svg sysfs tcpd threads tiff truetype unicode usb vorbis wifi win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="hda-intel" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Fabiano Francesconi 2009-06-14 14:58:15 UTC
Created attachment 194666 [details]
build log
Comment 3 Charles Kerr 2009-06-14 15:25:38 UTC
This is just a guess, but it kind of looks like you're trying to build Transmission on a system with libevent2.

What version of libevent do you have installed on your system?
Comment 4 Fabiano Francesconi 2009-06-14 15:29:09 UTC
(In reply to comment #3)
> This is just a guess, but it kind of looks like you're trying to build
> Transmission on a system with libevent2.
> 
> What version of libevent do you have installed on your system?
> 

None.
Transmission pulls libevent-2.0.1 (that is hardmasked) but it compiles flawlessy.
Comment 5 Charles Kerr 2009-06-14 16:11:46 UTC
Transmission pulls from https://levent.svn.sourceforge.net/svnroot/levent/branches/patches-1.4/libevent, so I don't know where you're getting the 2.0.1 alpha from.
Comment 6 Charles Kerr 2009-06-14 16:15:09 UTC
Also, the config log says you're using the system version of libevent, rather than the bundled version:

        Source code location:          .
        Compiler:                      i686-pc-linux-gnu-g++
        System or bundled libevent:    system


Xref: http://bugs.gentoo.org/show_bug.cgi?id=269082
Comment 7 Fabiano Francesconi 2009-06-14 16:37:42 UTC
(In reply to comment #6)
> Also, the config log says you're using the system version of libevent, rather
> than the bundled version:
> 
>         Source code location:          .
>         Compiler:                      i686-pc-linux-gnu-g++
>         System or bundled libevent:    system
> 
> 
> Xref: http://bugs.gentoo.org/show_bug.cgi?id=269082
> 

Ok. Got the problem.
The problem is gave by the fact that I had libevent 2.0.1 unmasked (I think autounmask have messed up soomething).
So, instead of compiling v1.4.11, it compiled v2.0.1 (that seems to be uncompatible with transmission).

Now I've correctly unmasked libevent-1.4.11 (not 2.0.1 as before) and transmission compiled flawlessy.

I guess this bug should be renamed into "transmission won't compile with libevent-2.0.1".

Thanks.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2009-06-15 00:56:45 UTC
It doesn't look like there is a need now to restrict the DEPEND as libevent-2 will remain package.masked for a while yet.
Comment 9 Charles Kerr 2009-06-15 06:12:39 UTC
libevent2 is still in beta...
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2009-06-15 06:18:52 UTC
(In reply to comment #9)
> libevent2 is still in beta...

I think that's what I said.
Comment 11 Fabiano Francesconi 2009-06-15 08:24:02 UTC
(In reply to comment #8)
> It doesn't look like there is a need now to restrict the DEPEND as libevent-2
> will remain package.masked for a while yet.
> 

Infact it works like a charm with libevent 1.4.11 so I suggest to change that rdep
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2009-06-15 15:38:39 UTC
>=dev-libs/libevent-1.4.11 is what the [R]DEPEND currently says, and dev-libs/libevent-2 is package.masked:

# Jeroen Roovers <jer@gentoo.org> (21 Apr 2009)
# Masked until out of beta
=dev-libs/libevent-2*

I should think that's enough to stop most people shooting themselves in the foot, but maybe net-p2p people will want to tweak it.
Comment 13 Fabiano Francesconi 2009-06-15 15:44:54 UTC
(In reply to comment #12)
> >=dev-libs/libevent-1.4.11 is what the [R]DEPEND currently says, and dev-libs/libevent-2 is package.masked:
> 
> # Jeroen Roovers <jer@gentoo.org> (21 Apr 2009)
> # Masked until out of beta
> =dev-libs/libevent-2*
> 
> I should think that's enough to stop most people shooting themselves in the
> foot, but maybe net-p2p people will want to tweak it.
> 

my bad. Sorry ^^''
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2009-06-20 12:55:34 UTC
dep adjusted