Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge Chromium 18.0.1025.168 failed (compilation error)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
wichtounet
n00b
n00b


Joined: 17 Mar 2012
Posts: 70

PostPosted: Thu May 10, 2012 10:31 am    Post subject: Emerge Chromium 18.0.1025.168 failed (compilation error) Reply with quote

Hi,

I tried to emerge Chromium 18.0.1025.168 but it failed:

Quote:
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.

Here are the output of the two commands indicated in the emerge logs:

Quote:
➜ ~ 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"


Quote:
➜ ~ 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


Does someone have an idea on how to fix this problem ?

Thank you

Baptiste
Back to top
View user's profile Send private message
phajdan.jr
Developer
Developer


Joined: 23 Mar 2006
Posts: 1767
Location: Poland

PostPosted: Sat May 12, 2012 4:15 pm    Post subject: Re: Emerge Chromium 18.0.1025.168 failed (compilation error) Reply with quote

wichtounet wrote:
Code:
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


Interesting, I've not seen this error before, but all of those functions are declared in unistd.h . Have you tried adding "#include <unistd.h>" to the file in question?

Please file a bug either way and post the link here. We should get this fixed for everyone.
_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
wichtounet
n00b
n00b


Joined: 17 Mar 2012
Posts: 70

PostPosted: Sat May 12, 2012 5:55 pm    Post subject: Reply with quote

I filled the bug report, here https://bugs.gentoo.org/show_bug.cgi?id=415601

I hope I filled it well, this is the first report I have filled for Gentoo.
Back to top
View user's profile Send private message
wichtounet
n00b
n00b


Joined: 17 Mar 2012
Posts: 70

PostPosted: Sat May 12, 2012 6:09 pm    Post subject: Re: Emerge Chromium 18.0.1025.168 failed (compilation error) Reply with quote

phajdan.jr wrote:
Have you tried adding "#include <unistd.h>" to the file in question?


How can I tell emerge to use the already untared sources instead of untaring them again from the archive ? In order to edit the file.
Back to top
View user's profile Send private message
phajdan.jr
Developer
Developer


Joined: 23 Mar 2006
Posts: 1767
Location: Poland

PostPosted: Sat May 12, 2012 8:08 pm    Post subject: Re: Emerge Chromium 18.0.1025.168 failed (compilation error) Reply with quote

wichtounet wrote:
How can I tell emerge to use the already untared sources instead of untaring them again from the archive ? In order to edit the file.


www-client/chromium supports epatch_user. Please read http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=6#doc_chap6 for info how to apply local patches.
_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
wichtounet
n00b
n00b


Joined: 17 Mar 2012
Posts: 70

PostPosted: Sat May 12, 2012 9:29 pm    Post subject: Reply with quote

Adding the include worked well.

As a note, I didn't succeeded in patching the file, so I used ebuild to make the install with the modified source.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum