Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415601 - Emerge www-client/chromium-18.0.1025.168 failed with compilation error in libevent
Summary: Emerge www-client/chromium-18.0.1025.168 failed with compilation error in lib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chromium Project
URL: http://codereview.chromium.org/10399002/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-12 17:50 UTC by Baptiste Wicht
Modified: 2012-05-15 06:46 UTC (History)
0 users

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


Attachments
The complete build.log (build.log.tar.bz2,54.48 KB, text/plain)
2012-05-12 17:54 UTC, Baptiste Wicht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Baptiste Wicht 2012-05-12 17:50:27 UTC
I tried to emerge www-client/chromium-18.0.1025.168 but it failed with the following errors: 

base/message_pump_libevent.cc: In destructor ‘virtual base::MessagePumpLibevent::~MessagePumpLibevent()’: 
base/message_pump_libevent.cc:137:9: error: ‘close’ was not declared in this scope 
base/message_pump_libevent.cc:137:9: error: invalid type in declaration before ‘;’ token 
base/message_pump_libevent.cc:141:9: error: ‘close’ was not declared in this scope 
base/message_pump_libevent.cc:141:9: error: invalid type in declaration before ‘;’ token 
base/message_pump_libevent.cc: In member function ‘virtual void base::MessagePumpLibevent::ScheduleWork()’: 
base/message_pump_libevent.cc:301:16: error: ‘write’ was not declared in this scope 
base/message_pump_libevent.cc:301:16: error: invalid type in declaration before ‘;’ token 
base/message_pump_libevent.cc: In member function ‘bool base::MessagePumpLibevent::Init()’: 
base/message_pump_libevent.cc:324:15: error: ‘pipe’ was not declared in this scope 
base/message_pump_libevent.cc: In static member function ‘static void base::MessagePumpLibevent::OnWakeup(int, short int, void*)’: 
base/message_pump_libevent.cc:378:15: error: ‘read’ was not declared in this scope 
base/message_pump_libevent.cc:378:15: error: invalid type in declaration before ‘;’ token

Apparently, it has something to do with libevent. I have the 2.0.16 version installed. 

Reproducible: Always

Steps to Reproduce:
1. emerge chromium
Actual Results:  
I got the compilation error

Expected Results:  
The program should compile

➜ ~ emerge -pqv \=www-client/chromium-18.0.1025.168 

* IMPORTANT: 2 config files in '/etc/portage' need updating. 
* See the CONFIGURATION FILES section of the emerge 
* man page to learn how to update config files. 
[ebuild N ] www-client/chromium-18.0.1025.168 USE="cups gnome gnome-keyring -bindist -custom-cflags -kerberos (-pulseaudio) -test" LINGUAS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv sw ta te th tr uk vi zh_CN zh_TW"



➜ ~ emerge --info \=www-client/chromium-18.0.1025.168 
Portage 2.1.10.49 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.14.1-r3, 3.3.0-gentoo x86_64) 
================================================================= 
System Settings 
================================================================= 
System uname: Linux-3.3.0-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-2.0.3 
Timestamp of tree: Thu, 10 May 2012 08:30:01 +0000 
ccache version 3.1.6 [disabled] 
app-shells/bash: 4.2_p20 
dev-java/java-config: 2.1.11-r3 
dev-lang/python: 2.7.2-r3, 3.2.2 
dev-util/ccache: 3.1.6 
dev-util/cmake: 2.8.6-r4 
dev-util/pkgconfig: 0.26 
sys-apps/baselayout: 2.0.3 
sys-apps/openrc: 0.9.8.4 
sys-apps/sandbox: 2.5 
sys-devel/autoconf: 2.13, 2.68 
sys-devel/automake: 1.11.1 
sys-devel/binutils: 2.21.1-r1 
sys-devel/gcc: 4.5.3-r2 
sys-devel/gcc-config: 1.5-r2 
sys-devel/libtool: 2.4-r1 
sys-devel/make: 3.82-r1 
sys-kernel/linux-headers: 3.1 (virtual/os-headers) 
sys-libs/glibc: 2.14.1-r3 
Repositories: gentoo g-ctan 
ACCEPT_KEYWORDS="amd64" 
ACCEPT_LICENSE="* -@EULA google-chrome" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-O2 -march=native -pipe" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc" 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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" 
CXXFLAGS="-O2 -march=native -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" 
FFLAGS="" 
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/" 
LANG="en_US.utf8" 
LDFLAGS="-Wl,-O1 -Wl,--as-needed" 
MAKEOPTS="-j8" 
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/g-ctan" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif extra fam fbcondecor firefox flac fortran gdbm gdu gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv icu ipv6 java jpeg kpathsea latex lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session socialweb spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev unicode usb vorbis wxwidgets x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" 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 ubx" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" 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" 
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Baptiste Wicht 2012-05-12 17:54:03 UTC
Created attachment 311529 [details]
The complete build.log
Comment 2 Victor Orozco 2012-05-13 18:51:33 UTC
Wich version of libevent are you using?

For me compiles well with 2.0.16 version of libevent
Comment 3 Baptiste Wicht 2012-05-13 20:07:31 UTC
(In reply to comment #2)
> Wich version of libevent are you using?
> 
> For me compiles well with 2.0.16 version of libevent

I also have the 2.0.16 version installed.
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-05-14 19:46:22 UTC
We should backport the fix to the ebuilds (except stable; no revbumps necessary).
Comment 5 Mike Gilbert gentoo-dev 2012-05-14 22:08:35 UTC
(In reply to comment #4)
> We should backport the fix to the ebuilds (except stable; no revbumps
> necessary).

Are you going to do this, or would you like me to take care of it?

Also, any idea what triggered this? I'm pretty sure it compiled for me when I did the original bump.
Comment 6 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-05-15 06:46:40 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > We should backport the fix to the ebuilds (except stable; no revbumps
> > necessary).
> 
> Are you going to do this, or would you like me to take care of it?

I've just fixed this in CVS (the above was just a reminder for myself while chromium was compiling overnight), for 19.x and 20.x.

> Also, any idea what triggered this? I'm pretty sure it compiled for me when
> I did the original bump.

It also compiled for me. However, it makes sense to #include <unistd.h> explicitly when using functions declared in that header. Maybe it works by coincidence otherwise.