net-libs/gnome-online-accounts-3.6.2 won't build. Emerge gives the following error: In file included from goaidentityenumtypes.c:106:0: goakerberosidentity.h:39:37: error: redefinition of typedef 'GoaKerberosIdentity' goakerberosidentityinquiry.h:41:37: note: previous declaration of 'GoaKerberosIdentity' was here make[4]: *** [libgoaidentity_la-goaidentityenumtypes.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/net-libs/gnome-online-accounts-3.6.2/work/gnome-online-accounts-3.6.2/src/goaidentity' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/net-libs/gnome-online-accounts-3.6.2/work/gnome-online-accounts-3.6.2/src/goaidentity' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-libs/gnome-online-accounts-3.6.2/work/gnome-online-accounts-3.6.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-libs/gnome-online-accounts-3.6.2/work/gnome-online-accounts-3.6.2' make: *** [all] Error 2 * ERROR: net-libs/gnome-online-accounts-3.6.2 failed (compile phase): * emake failed I see that the error mentions "kerberos". Could this error be related to the use flag kerberos being defined? I am saying this because I have another machine which was completely built with gnome-3.6, and does not have this use flag defined. Reproducible: Always $ emerge --info Portage 2.1.11.31 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.4, glibc-2.15-r3, 3.6.11-gentoo x86_64) ================================================================= System uname: Linux-3.6.11-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.1 Timestamp of tree: Sun, 06 Jan 2013 23:45:01 +0000 ld GNU ld (GNU Binutils) 2.22 app-shells/bash: 4.2_p37 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.3-r2, 3.2.3 dev-util/cmake: 2.8.9 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.10.3, 1.11.6 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.4 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.6 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo wirelay sunrise my_local_overlay ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=nocona -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /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" CXXFLAGS="-O2 -march=nocona -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="pt_PT.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j1" 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/wirelay /var/lib/layman/sunrise /usr/local/portage" SYNC="rsync://mero.madeiratecnopolo.pt/gentoo-portage" USE="X a52 aac acl acpi ads alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdda cddb cdio cdparanoia cdr cli colord consolekit corefonts cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk h323 iconv id3tag ipv6 ithreads java jpeg kerberos lame lcms ldap libnotify live mad matroska mmx mng modules mp3 mp4 mpeg mudflap multilib musepack nautilus ncurses network networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support qt4 quicktime readline samba sdl session smp socialweb spell sse sse2 ssl ssse3 startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb vorbis wav wavpack wmf wxwidgets x264 xcb xml xv xvid xvmc 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="authn_core authz_core socache_shmcb unixd 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pt_PT pt en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia vga" 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
I can confirm that it is related to "kerberos. I put the following in package.use and the package built without errors: =net-libs/gnome-online-accounts-3.6.2 -kerberos
Same problem here.
(In reply to comment #1) > I can confirm that it is related to "kerberos. > > I put the following in package.use and the package built without errors: > =net-libs/gnome-online-accounts-3.6.2 -kerberos That solve the problem for me
This is caused by a misfeature in gcc-4.5. Please update your system to gcc-4.6.3.
On second thought: might as well commit a patch fix this. Patch submitted upstream at https://bugzilla.gnome.org/show_bug.cgi?id=692251 + 22 Jan 2013; Alexandre Rostovtsev <tetromino@gentoo.org> + gnome-online-accounts-3.4.2.ebuild, gnome-online-accounts-3.6.2.ebuild, + +files/gnome-online-accounts-3.6.2-GoaKerberosIdentity.patch: + Fix build failure with USE=kerberos and gcc-4.5 (bug #450706, thanks to + Clemente Aguiar). Require mit-krb5 when USE=kerberos; gnome-online-accounts + is incompatible with heimdal. Update license, modernize ebuild.
After I updated the system to gcc-4.6.3, I can confirm that it now builds. However I must agree that the best option was to inform upstream and get them to improve their coding practices.