Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566388 - net-libs/libaccounts-glib-1.18 fails to build - ag-manager.c:1080:9: error: 'g_simple_async_result_take_error' is deprecated
Summary: net-libs/libaccounts-glib-1.18 fails to build - ag-manager.c:1080:9: error: '...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 568664 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-21 14:34 UTC by Fabio Coatti
Modified: 2015-12-20 17:53 UTC (History)
5 users (show)

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


Attachments
libaccounts-glib-build.log (libaccounts-glib-build.log,25.59 KB, text/x-log)
2015-12-19 10:09 UTC, Denis Sokolovsky
Details
libsignon-glib-build.log (libsignon-glib-build.log,30.52 KB, text/x-log)
2015-12-19 10:10 UTC, Denis Sokolovsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Coatti 2015-11-21 14:34:22 UTC
trying to emerge net-libs/libaccounts-glib-1.18, I get this result:

ag-manager.c: In function 'exec_transaction_idle':
ag-manager.c:1080:9: error: 'g_simple_async_result_take_error' is deprecated (declared at /usr/include/glib-2.0/gio/gsimpleasyncresult.h:116) [-Werror=deprecated-declarations]
         g_simple_async_result_take_error (sd->async_result, error);
         ^
ag-manager.c: In function '_ag_manager_exec_transaction':
ag-manager.c:2385:9: error: 'g_simple_async_result_take_error' is deprecated (declared at /usr/include/glib-2.0/gio/gsimpleasyncresult.h:116) [-Werror=deprecated-declarations]
         g_simple_async_result_take_error (async_result, error);
         ^
ag-manager.c: In function 'ag_manager_store_local_async':
ag-manager.c:2446:9: error: 'g_simple_async_result_take_error' is deprecated (declared at /usr/include/glib-2.0/gio/gsimpleasyncresult.h:116) [-Werror=deprecated-declarations]
         g_simple_async_result_take_error (async_result,
         ^
ag-manager.c:2448:9: error: 'g_simple_async_result_complete_in_idle' is deprecated (declared at /usr/include/glib-2.0/gio/gsimpleasyncresult.h:106) [-Werror=deprecated-declarations]
         g_simple_async_result_complete_in_idle (async_result);
         ^
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H   -I.. -I.. -I. -DG_LOG_DOMAIN=\"accounts-glib\"  -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2  -Wall -Werror -march=native -mtune=native -O2 -pipe  -c -o libaccounts_glib_la-ag-service-type.lo `test -f 'ag-service-type.c' || echo './'`ag-service-type.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.. -I.. -I. -DG_LOG_DOMAIN=\"accounts-glib\" -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -Wall -Werror -march=native -mtune=native -O2 -pipe -c ag-service-type.c  -fPIC -DPIC -o .libs/libaccounts_glib_la-ag-service-type.o
cc1: all warnings being treated as errors
Makefile:640: recipe for target 'libaccounts_glib_la-ag-account.lo' failed
make[3]: *** [libaccounts_glib_la-ag-account.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
Makefile:675: recipe for target 'libaccounts_glib_la-ag-manager.lo' failed
make[3]: *** [libaccounts_glib_la-ag-manager.lo] Error 1
make[3]: Leaving directory '/var/tmp/portage/net-libs/libaccounts-glib-1.18/work/libaccounts-glib-1.18/libaccounts-glib'
Makefile:520: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/var/tmp/portage/net-libs/libaccounts-glib-1.18/work/libaccounts-glib-1.18/libaccounts-glib'
Makefile:544: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-libs/libaccounts-glib-1.18/work/libaccounts-glib-1.18'
Makefile:430: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: net-libs/libaccounts-glib-1.18::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-libs/libaccounts-glib-1.18::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/libaccounts-glib-1.18::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/libaccounts-glib-1.18/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/libaccounts-glib-1.18/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/libaccounts-glib-1.18/work/libaccounts-glib-1.18'
 * S: '/var/tmp/portage/net-libs/libaccounts-glib-1.18/work/libaccounts-glib-1.18'


Reproducible: Always




calvin ~ # emerge --info
Portage 2.2.25 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-4.9.3, glibc-2.22-r1, 4.3.0-cova x86_64)
=================================================================
System uname: Linux-4.3.0-cova-x86_64-Intel-R-_Core-TM-_i5-3427U_CPU_@_1.80GHz-with-gentoo-2.2
KiB Mem:     8091656 total,   4265112 free
KiB Swap:    8386556 total,   8386556 free
Timestamp of repository gentoo: Sat, 21 Nov 2015 10:15:01 +0000
sh bash 4.3_p42
ld ld di GNU (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10-r3::gentoo, 3.3.5-r2::gentoo, 3.4.3-r2::gentoo, 3.5.0-r1::gentoo
dev-util/cmake:           3.4.0-r1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.3::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000

hacking-gentoo
    location: /var/lib/layman/hacking-gentoo
    sync-type: laymansync
    sync-uri: rsync://rsync.mad-hacking.net/hacking-gentoo-overlay/
    masters: gentoo hacking-gentoo
    priority: 50

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

local
    location: /usr/overlay
    masters: gentoo
    priority: 51

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -O2 -pipe "
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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"
USE="3dnow 3dnowext 3dnowprefetch X \ a52 aac aalib acl acpi aim alsa amd64 apng ares asf ati audio audiofile avahi bash-completion berkdb bidi bl branding bri bzip2 cairo caps ccdda cdda cdr cjk cli cracklib crypt cups curl cxx dba dbus declarative device-mapper dga divx divx4linux dparanoia dri dts dv dvb dvd dvdr dvdread eap-sim edl egl emboss encode ethereal evdev exif expat faad fam fame fbcon ffmpeg fftw firefox flac force-cgi-redirect fortran ftp gallium garmin gd gdbm gif gimp glamor gles2 gmedia gmp gnutls gphoto2 gpm gps gsm gtk h264 h323 iconv icq icu idn ifp ilbc imagemagick imap innodb ipod iproute2 ipv6 ithreads jabber java javascript joystick jpeg kde kipi kontact kvm lastfm lcms ldap libcaca libnotify libvirtd live lm_sensors lua lvm lxc lzma lzo mad maildir matroska mbox mdnsresponder-compat mhash mime mjpeg mmap mmx mmxext mng modules mozdevelop mozilla mp3 mp4 mpeg msn mtp multilib mysql ncurses network networkmanager new-hpcups nfsv4 njb nls nptl nptlonly nsplugin offensive ofx ogg oggvorbis ogm openal openexr opengl openmp oscar pam pango parted pcap pcre pdf phonon php plasma plotutils png policykit ppds pulseaudio qemu qml qt3support qt4 qt5 readline real rtc ruby samba sasl sdl seccomp semantic-desktop semantic-destkop session sha512 sip slang slp smartcard sndfile snmp sox speex spell srt sse sse2 ssh ssl ssse3 startup-notification svg symlink systemd tcltk tcpd telepathy theora threads tiff tk tremor truetype udev udisks unicode upower usb utempter v4l v4l2 vaapi vcd vde vhosts video videos vim-syntax virt-network virtualbox vorbis wav webkit widgets wifi wimax wmf wmp wps wxwidgets wxwindows x264 xanim xattr xcb xcomposite xface xft xine xinerama xml xosd xpm xscreensaver xsl xulrunner xv xvid zeroconf zlib zpm" ABI_X86="64 32" 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" 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DRACUT_MODULES="btrfs crypt crypt-gpg crypt-loop lvm plymouth systemd" 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel v4l" 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"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tomáš Mózes 2015-11-21 19:49:54 UTC
 * If you need support, post the output of `emerge --info '=net-libs/libaccounts-glib-1.18::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/libaccounts-glib-1.18::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/libaccounts-glib-1.18/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/libaccounts-glib-1.18/temp/environment'.
Comment 2 Victor Mataré 2015-11-25 15:44:08 UTC
(In reply to Tomas Mozes from comment #1)
>  * If you need support, post the output of `emerge --info
> '=net-libs/libaccounts-glib-1.18::gentoo'`,
>  * the complete build log and the output of `emerge -pqv
> '=net-libs/libaccounts-glib-1.18::gentoo'`.
>  * The complete build log is located at
> '/var/tmp/portage/net-libs/libaccounts-glib-1.18/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/net-libs/libaccounts-glib-1.18/temp/environment'.

All relevant information was already in the log. Cluttering this report up with useless emerge --info output doesn't help, especially when it's simply a deprecated function:

> ag-manager.c:1080:9: error: 'g_simple_async_result_take_error' is deprecated
> (declared at /usr/include/glib-2.0/gio/gsimpleasyncresult.h:116)

That's actually all the information you need since in line 116 it clearly says:

GLIB_DEPRECATED_IN_2_46
void g_simple_async_result_take_error (GSimpleAsyncResult *simple, GError *error);

So that's it. Glib 2.46 upgrade is the problem. Either downgrade glib or bump libaccounts-glib.
Comment 3 Victor Mataré 2015-11-25 15:48:08 UTC
Also see upstream bug: https://gitlab.com/accounts-sso/libaccounts-glib/issues/1
Comment 4 Victor Mataré 2015-11-25 15:54:16 UTC
workaround:

echo 'CFLAGS="$CFLAGS -Wno-error=deprecated-declarations"' >> /etc/portage/env/glib-deprecated
echo '=net-libs/libaccounts-glib-1.18* glib-deprecated' >> /etc/portage/package.env
Comment 5 Fabio Coatti 2015-11-25 16:12:16 UTC
The suggested workaround works just fine, while waiting for bump. I applied the same solution modifying the ebuild, but this way is way cleaner.
Thanks.
Comment 6 Denis Sokolovsky 2015-12-18 09:35:10 UTC
Similar error appears for net-libs/libsignon-glib
Comment 7 Tomáš Mózes 2015-12-18 21:39:34 UTC
*** Bug 568664 has been marked as a duplicate of this bug. ***
Comment 8 Tomáš Mózes 2015-12-18 21:42:45 UTC
(In reply to Victor Mataré from comment #2)
> All relevant information was already in the log. Cluttering this report up
> with useless emerge --info output doesn't help...

The full build log can really be helpful.
Comment 9 Denis Sokolovsky 2015-12-19 10:09:58 UTC
Created attachment 419748 [details]
libaccounts-glib-build.log
Comment 10 Denis Sokolovsky 2015-12-19 10:10:23 UTC
Created attachment 419750 [details]
libsignon-glib-build.log
Comment 11 Denis Sokolovsky 2015-12-19 10:11:42 UTC
The error is pretty straightforward and came because option -Werror is set.
Comment 12 Denis Sokolovsky 2015-12-19 11:02:16 UTC
But. On one system libaccounts-glib compiled with warnings, but without errors (despite of -Werror). I haven't found much difference between systems where build failed and not, except of profile (plasma vs kde), gcc (5.3 vs 5.2) and libtool merge date (12 Dec vs 17 Mar)
Comment 13 Denis Sokolovsky 2015-12-19 16:30:27 UTC
After switching from gcc-5.2 to gcc-5.3 build of libaccounts-glib fail as expected.
Comment 14 Michael Palimaka (kensington) gentoo-dev 2015-12-20 17:53:25 UTC
Thanks, fixed in git.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75caaaec250847217d65060697b9a707c91a1502