Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479038 - sys-apps/systemd-206 - /usrlib64/libsystemd-login.so: undefined reference to `cg_create'
Summary: sys-apps/systemd-206 - /usrlib64/libsystemd-login.so: undefined reference to ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-30 22:17 UTC by brent
Modified: 2013-10-02 09:12 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,261.02 KB, text/x-log)
2013-07-30 22:17 UTC, brent
Details
patch output when applying upstream git patch (cg_create-fix.patch.out,1.76 KB, text/plain)
2013-09-12 23:20 UTC, brent
Details
Patch adding -label linking (0001-Add-missing-libsystemd-label.la-linkage-to-libsystem.patch,651 bytes, patch)
2013-09-30 08:19 UTC, Michał Górny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description brent 2013-07-30 22:17:46 UTC
Created attachment 354682 [details]
build.log

when attepting to switch to systemd from openrc, the following occurs in many packages (notably in this exable, dbus) with the "systemd" USE flag enabled. (the wiki article has been followed, but circular dependencies still occurred)

libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address -Wfloat-equal -Wdeclaration-after-statement -Wno-unused-label -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign -Wno-type-limits -fno-common -fno-strict-aliasing -O2 -pipe -rdynamic -Wl,-O1 -o dbus-daemon activation.o bus.o config-parser.o config-parser-common.o connection.o desktop-file.o dir-watch-inotify.o dispatch.o driver.o expirelist.o policy.o selinux.o services.o signals.o stats.o test.o utils.o config-loader-expat.o main.o  -Wl,--as-needed ../dbus/.libs/libdbus-internal.a -lsystemd-login -lsystemd-daemon -lexpat -lpthread -lrt
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libsystemd-login.so: undefined reference to `cg_create'
collect2: error: ld returned 1 exit status
make[2]: *** [dbus-daemon-launch-helper] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libsystemd-login.so: undefined reference to `cg_create'
collect2: error: ld returned 1 exit status
make[2]: *** [dbus-daemon] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-apps/dbus-1.6.12/work/dbus-1.6.12-build/bus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/dbus-1.6.12/work/dbus-1.6.12-build'
make: *** [all] Error 2
 * ERROR: sys-apps/dbus-1.6.12::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-apps/dbus-1.6.12::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/dbus-1.6.12::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/dbus-1.6.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/dbus-1.6.12/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/dbus-1.6.12/work/dbus-1.6.12-build'
 * S: '/var/tmp/portage/sys-apps/dbus-1.6.12/work/dbus-1.6.12'


note:
dawid lib64 # strings libsystemd-login.so|grep -in -B2 -A2 cg_create
215-nftw
216-stpncpy
217:cg_create
218-__printf_chk
219-utmpxname


    64: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND cg_create




dawid ~ # USE="systemd" emerge --info '=sys-apps/dbus-1.6.12::gentoo'
Portage 2.1.13.2 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.2-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    32882604 total,  21553812 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Tue, 30 Jul 2013 20:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r1, 3.1.5-r1, 3.2.5-r1, 3.3.2-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.22-r1, 2.22.90, 2.23, 2.23.1, 2.23.2
sys-devel/gcc:            4.5.4, 4.6.3, 4.6.4, 4.7.2-r1, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo sunrise sabayon games steam-overlay gamerlay stuff x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
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.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy 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://www.cyberuse.com/gentoo/ http://gentoo.wetzlmayr.com/ http://gentoo.netnitco.net http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
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 --omit-dir-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/sunrise /var/lib/layman/sabayon /var/lib/layman/games /var/lib/layman/steam /var/lib/layman/gamerlay /var/lib/layman/stuff /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="64bit X a52 aac aalib accessibility acl acpi akamaru alsa amd64 animgif ao applet ares async asyncns atmo audit automount avahi banshee bash-completion berkdb bidi bluetooth bonjour bookmarks branding bzip2 cairo caps cdda cddax cddb cdinstall cdio cdr cli colordiff cpulimit cracklib crypt css cuda cups curl cxx dbus dc1394 device-mapper dga dirac directfb disk-partition diskio djvu doom doom1 doom2 doomsday double-precision dri dts dv dvb dvd dvdr dvdread eds elf emboss emerald empathy encode esd evo exif extensible extra-tools extras faac faad fam fbcon fbcondecor festival ffmpeg firefox flac flash fluidsynth fontconfig freetts fuse gajim games gcrypt gdbm gedit ggi gif gimp glitz gnome gnome-keyring gnomecd gnutls gpg gphoto2 gpm gsm gstreamer gtk h323 hdaps hddtemp heretic hexen howl-compat html httpd iconv icu id3tag idn ieee1394 imagemagick imap introspection ipc ipod iproute2 ipv6 irda jack java jpeg jpeg2k kerberos krb5 kvm lame lcms ldap libass libcaca libnotify libsamplerate libssh2 libsysfs libv4l2 libwww live lm_sensors loop-aes lua lzo mad maps matroska mbrola mdnsresponder-compat mfd-rewrites mikmod mmap mmx mng modplug modules mono motif mp3 mp4 mpeg mudflap multilib multislot mumble musepack nautilus ncurses network nls nntp nptl nsplugin nss nvidia offensive ogg openexr opengl openmp openssl openstreetmap optimisememory overlays pam pango pcap pcapnav pcre pda pdf php pic pidgin plutonia png policykit ppds pulseaudio pvr qt3 qt3support qt4 quicktime quotas radius raster raw rawio readline remoteosd rtsp samba sasl scanner schroedinger scripting sdl sdl-image seamonkey session shout sip skey skins smbkrb5passwd smp smux socks5 sounds speex spell sse sse2 ssl startup-notification stream svg syslog systemd taglib tcpd theora threads tiff timezone tk tnt tools tpctlir truetype twolame udev udisks unicode upnp upower usb utils v4l v4l2 vala vcdinfo vcdx vde videos vim-pager vim-syntax vim-with-x vlm voice vorbis webkit wicd win32codecs winbind wmf wxwidgets x264 xattr xext xinerama xinetd xml xosd xpm xulrunner xv xvid xvmc zeroconf zlib zsh-completion zvbi" ABI_X86="64 32" 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="directory enigma13 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="biosdevname bootchart btrfs caps cifs crypt crypt-gpg crypt-loop dmraid dmsquash-live gensplash iscsi livenet lvm mdraid nbd nfs ssh-client 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition cache_purge fancyindex flv gunzip headers_more image_filter lua metrics mp4 naxsi perl push random_index realip secure_link spdy stub_status sub upload_progress upstream_check xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_1 python3_2" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="apple canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net epjitsu epson epson2 fujitsu genesys hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p ibm kodak lexmark magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax1220u umax_pp xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-apps/dbus-1.6.12 was built with the following:
USE="X -debug -doc (-selinux) -static-libs -systemd -test"
CFLAGS="-O2 -pipe -rdynamic"
CXXFLAGS="-O2 -pipe -rdynamic"


dawid ~ # USE="systemd" emerge -pqv '=sys-apps/dbus-1.6.12::gentoo'
[ebuild   R   ] sys-apps/dbus-1.6.12  USE="X systemd* -debug -doc (-selinux) -static-libs {-test}"
Comment 1 brent 2013-07-30 22:18:23 UTC
d'oh. s/exable/example/
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-31 21:48:28 UTC
I've hit this one too. It's binutils issue, you need >=sys-devel/binutils-2.23.1.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-31 22:27:00 UTC
Fixed deps in 206-r1 that I have just committed.
Comment 4 brent 2013-08-01 01:25:59 UTC
michal-
what needs to be re-merged with that version of binutils? i've synced and emerged your -r1 of systemd-206-r1, and:

dawid ~ # eselect binutils list
Installed binutils for target x86_64-pc-linux-gnu
  [1]   2.22
  [2]   2.22.90
  [3]   2.23
  [4]   2.23.1 *
  [5]   2.23.2
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-01 07:11:18 UTC
Well, I know changing active binutils fixed it for me ;/. But maybe there was something else. I see you have the same gcc as I do, and I had the issue on polkit and not dbus. This is really weird...
Comment 6 brent 2013-08-02 03:27:52 UTC
well, i've got some good news and bad news.

the good news is that polkit and dbus, two of the packages failing to build with systemd-206 (and 206-r1) DO build with systemd-204 just fine.

however, even after that, it still fails to build with 206-r1. so the bad news is i think there were a fair bit of changes between 204 and 206, so...
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-02 09:04:50 UTC
(In reply to brent from comment #6)
> well, i've got some good news and bad news.
> 
> the good news is that polkit and dbus, two of the packages failing to build
> with systemd-206 (and 206-r1) DO build with systemd-204 just fine.
> 
> however, even after that, it still fails to build with 206-r1. so the bad
> news is i think there were a fair bit of changes between 204 and 206, so...

I know that. I had the same issue on my x86 VM, and I was able to fix it through updating gcc & binutils. Did you rebuild systemd with gcc-4.7 & binutils-2.23*?
Comment 8 brent 2013-08-07 04:07:05 UTC
sorry for the delay.

several times, yes. :/
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-07 07:43:00 UTC
Well, I'm almost out of ideas. I don't know if this could be related but you could please try building with MAKEOPTS=-j1?
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-07 07:43:46 UTC
And please paste your current 'emerge --info'.
Comment 11 brent 2013-08-07 16:44:16 UTC
same error occurs with MAKEOPTS="-j1":



libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -Wl,-O1 -o gdm-simple-slave simple-slave-main.o gdm-launch-environment.o gdm-server.o gdm-session.o gdm-session-record.o gdm-session-worker-common.o gdm-session-worker-job.o gdm-xerrors.o gdm-slave.o gdm-simple-slave.o gdm-dbus-util.o gdm-display-glue.o gdm-session-enum-types.o gdm-session-glue.o gdm-session-worker-glue.o gdm-slave-glue.o  -lpam /usr/lib64/libaudit.so -Wl,--as-needed ../common/.libs/libgdmcommon.a -lX11 -lXau -lXrandr -lgio-2.0 -lgobject-2.0 -lglib-2.0 -laccountsservice -lutil -lsystemd-login -lsystemd-daemon -lsystemd-journal -lsystemd-id128 -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libsystemd-login.so: undefined reference to `cg_create'
collect2: error: ld returned 1 exit status
make[3]: *** [gdm-simple-slave] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnome-base/gdm-3.8.4/work/gdm-3.8.4/daemon'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/gnome-base/gdm-3.8.4/work/gdm-3.8.4/daemon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/gdm-3.8.4/work/gdm-3.8.4'
make: *** [all] Error 2
 * ERROR: gnome-base/gdm-3.8.4::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=gnome-base/gdm-3.8.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=gnome-base/gdm-3.8.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/gnome-base/gdm-3.8.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-base/gdm-3.8.4/temp/environment'.
 * Working directory: '/var/tmp/portage/gnome-base/gdm-3.8.4/work/gdm-3.8.4'
 * S: '/var/tmp/portage/gnome-base/gdm-3.8.4/work/gdm-3.8.4'



dawid gdm # emerge --info
Portage 2.1.13.5 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.5-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.10.5-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    32882280 total,  30125216 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 07 Aug 2013 14:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r1, 3.1.5-r1, 3.2.5-r1, 3.3.2-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.22-r1, 2.22.90, 2.23, 2.23.1, 2.23.2
sys-devel/gcc:            4.5.4, 4.6.3, 4.6.4, 4.7.2-r1, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo sunrise sabayon games steam-overlay gamerlay stuff x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
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.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy 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://www.cyberuse.com/gentoo/ http://gentoo.wetzlmayr.com/ http://gentoo.netnitco.net http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
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 --omit-dir-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/sunrise /var/lib/layman/sabayon /var/lib/layman/games /var/lib/layman/steam /var/lib/layman/gamerlay /var/lib/layman/stuff /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="64bit X a52 aac aalib accessibility acl acpi akamaru alsa amd64 animgif ao applet ares async asyncns atmo audit automount avahi banshee bash-completion berkdb bidi bluetooth bonjour bookmarks branding bzip2 cairo caps cdda cddax cddb cdinstall cdio cdr cli colordiff cpulimit cracklib crypt css cuda cups curl cxx dbus dc1394 device-mapper dga dirac directfb disk-partition diskio djvu doom doom1 doom2 doomsday double-precision dri dts dv dvb dvd dvdr dvdread eds elf emboss emerald empathy encode esd evo exif extensible extra-tools extras faac faad fam fbcon fbcondecor festival ffmpeg firefox flac flash fluidsynth fontconfig freetts fuse gajim games gcrypt gdbm gedit ggi gif gimp glitz gnome gnome-keyring gnomecd gnutls gpg gphoto2 gpm gsm gstreamer gtk h323 hdaps hddtemp heretic hexen howl-compat html httpd iconv icu id3tag idn ieee1394 imagemagick imap introspection ipc ipod iproute2 ipv6 irda jack java jpeg jpeg2k kerberos krb5 kvm lame lcms ldap libass libcaca libnotify libsamplerate libssh2 libsysfs libv4l2 libwww live lm_sensors loop-aes lua lzo mad maps matroska mbrola mdnsresponder-compat mfd-rewrites mikmod mmap mmx mng modplug modules mono motif mp3 mp4 mpeg mudflap multilib multislot mumble musepack nautilus ncurses network nls nntp nptl nsplugin nss nvidia offensive ogg openexr opengl openmp openssl openstreetmap optimisememory overlays pam pango pcap pcapnav pcre pda pdf php pic pidgin plutonia png policykit ppds pulseaudio pvr qt3 qt3support qt4 quicktime quotas radius raster raw rawio readline remoteosd rtsp samba sasl scanner schroedinger scripting sdl sdl-image seamonkey session shout sip skey skins smbkrb5passwd smp smux socks5 sounds speex spell sse sse2 ssl startup-notification stream svg syslog systemd taglib tcpd theora threads tiff timezone tk tnt tools tpctlir truetype twolame udev udisks unicode upnp upower usb utils v4l v4l2 vala vcdinfo vcdx vde videos vim-pager vim-syntax vim-with-x vlm voice vorbis webkit wicd win32codecs winbind wmf wxwidgets x264 xattr xext xinerama xinetd xml xosd xpm xulrunner xv xvid xvmc zeroconf zlib zsh-completion zvbi" ABI_X86="64 32" 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="directory enigma13 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="biosdevname bootchart btrfs caps cifs crypt crypt-gpg crypt-loop dmraid dmsquash-live gensplash iscsi livenet lvm mdraid nbd nfs ssh-client 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition cache_purge fancyindex flv gunzip headers_more image_filter lua metrics mp4 naxsi perl push random_index realip secure_link spdy stub_status sub upload_progress upstream_check xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_1 python3_2 python3_3" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="apple canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net epjitsu epson epson2 fujitsu genesys hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p ibm kodak lexmark magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax1220u umax_pp xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



i should note the same error occurs with binutils-2.23.2 as well.

i have a hunch, though not verified in any way, that it may be related to introspection.
Comment 12 walt 2013-08-16 01:04:54 UTC
Same problem today, but the same library I installed on Aug11 wants *none* of the cg_* symbols including cg_create.

When I compiled systemd today I got the same undefined cg_create problem, so something about systemd changed after Aug 11.

cg_create seems to be defined in src/shared/cgroup-util.h, which included by cgroup-label.c, which is then (I think) compiled into libsystemd_label_la-cgroup-label.o:

shared # nm --defined-only .libs/libsystemd_label_la-cgroup-label.o 
0000000000000000 T cg_create
0000000000000000 T cg_create_and_attach
0000000000000000 r .LC0
0000000000000000 r .LC1
000000000000000f r .LC2
0000000000000000 r __PRETTY_FUNCTION__.7385

Maybe I'll have time this weekend to chase down which library that object file goes into and try adding it to LDFLAGS.
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-16 08:16:44 UTC
As a note, this can have something to do with visibility. But that's a pure guess.
Comment 14 walt 2013-08-16 13:21:12 UTC
The undefined cg_create winds up in libsystemd-label.a, which is not installed with systemd, so evidently it's needed only during the build of systemd.

This weekend I'll try to figure out why libsystemd-login.so doesn't get linked against libsystemd-label.a
Comment 15 walt 2013-08-17 16:04:32 UTC
Hmpf.  I finally noticed that I was still unintentionally using binutils-2.22.

I switched to binutils 2.23.1 and then I re-emerged systemd.  Problem wasn't fixed until I rebuilt systemd with the newer binutils, though.
Comment 16 brent 2013-08-25 08:59:05 UTC
(In reply to walt from comment #15)
> Hmpf.  I finally noticed that I was still unintentionally using
> binutils-2.22.
> 
> I switched to binutils 2.23.1 and then I re-emerged systemd.  Problem wasn't
> fixed until I rebuilt systemd with the newer binutils, though.

this didn't seem to do it for me, sadly. i still get the same cg_create error as before, even using 2.23.1 binutils and re-merging systemd.
Comment 17 brent 2013-09-11 22:21:32 UTC
This continues to occur with sys-apps/systemd-206-r4.

example from gnome-base/gdm-3.8.4:

libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -Wl,-O1 -o test-session-client test-session-client.o gdm-session-glue.o gdm-manager-glue.o  -Wl,--as-needed -lgio-2.0 -lgobject-2.0 -lglib-2.0 -laccountsservice
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o gdm-xdmcp-chooser-slave xdmcp-chooser-slave-main.o gdm-session.o gdm-session-record.o gdm-session-worker-common.o gdm-session-worker-job.o gdm-launch-environment.o gdm-xerrors.o gdm-slave.o gdm-xdmcp-chooser-slave.o gdm-dbus-util.o  gdm-session-glue.o gdm-session-worker-glue.o gdm-session-enum-types.o gdm-display-glue.o gdm-slave-glue.o gdm-xdmcp-chooser-slave-glue.o  -lX11 -lXau -lXrandr  -lgio-2.0 -lgobject-2.0 -lglib-2.0 -laccountsservice  -lutil -lutil -lutil -lsystemd-login -lsystemd-daemon  -lsystemd-journal -lsystemd-id128  ../common/libgdmcommon.la  
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -Wl,-O1 -o gdm-session-worker session-worker-main.o gdm-session.o gdm-session-settings.o gdm-session-auditor.o gdm-session-record.o gdm-session-worker.o gdm-session-worker-job.o gdm-session-worker-common.o gdm-dbus-util.o gdm-session-linux-auditor.o gdm-session-glue.o gdm-session-worker-glue.o gdm-session-enum-types.o  -lX11 -lXau -lXrandr -lpam /usr/lib64/libaudit.so -Wl,--as-needed ../common/.libs/libgdmcommon.a -lgio-2.0 -lgobject-2.0 -lglib-2.0 -laccountsservice -lsystemd-login -lsystemd-daemon -lsystemd-journal -lsystemd-id128 -pthread
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -Wl,-O1 -o gdm-simple-slave simple-slave-main.o gdm-launch-environment.o gdm-server.o gdm-session.o gdm-session-record.o gdm-session-worker-common.o gdm-session-worker-job.o gdm-xerrors.o gdm-slave.o gdm-simple-slave.o gdm-dbus-util.o gdm-display-glue.o gdm-session-enum-types.o gdm-session-glue.o gdm-session-worker-glue.o gdm-slave-glue.o  -lpam /usr/lib64/libaudit.so -Wl,--as-needed ../common/.libs/libgdmcommon.a -lX11 -lXau -lXrandr -lgio-2.0 -lgobject-2.0 -lglib-2.0 -laccountsservice -lutil -lsystemd-login -lsystemd-daemon -lsystemd-journal -lsystemd-id128 -pthread
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -Wl,-O1 -o gdm-xdmcp-chooser-slave xdmcp-chooser-slave-main.o gdm-session.o gdm-session-record.o gdm-session-worker-common.o gdm-session-worker-job.o gdm-launch-environment.o gdm-xerrors.o gdm-slave.o gdm-xdmcp-chooser-slave.o gdm-dbus-util.o gdm-session-glue.o gdm-session-worker-glue.o gdm-session-enum-types.o gdm-display-glue.o gdm-slave-glue.o gdm-xdmcp-chooser-slave-glue.o  -Wl,--as-needed -lX11 -lXau -lXrandr -lgio-2.0 -lgobject-2.0 -lglib-2.0 -laccountsservice -lutil -lsystemd-journal -lsystemd-id128 ../common/.libs/libgdmcommon.a -lsystemd-login -lsystemd-daemon -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libsystemd-login.so: undefined reference to `cg_create'
collect2: error: ld returned 1 exit status
make[3]: *** [gdm-simple-slave] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libsystemd-login.so: undefined reference to `cg_create'
collect2: error: ld returned 1 exit status
make[3]: *** [gdm-session-worker] Error 1
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libsystemd-login.so: undefined reference to `cg_create'
collect2: error: ld returned 1 exit status
make[3]: *** [gdm-xdmcp-chooser-slave] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnome-base/gdm-3.8.4/work/gdm-3.8.4/daemon'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/gnome-base/gdm-3.8.4/work/gdm-3.8.4/daemon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/gdm-3.8.4/work/gdm-3.8.4'
make: *** [all] Error 2
 * ERROR: gnome-base/gdm-3.8.4::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=gnome-base/gdm-3.8.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=gnome-base/gdm-3.8.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/gnome-base/gdm-3.8.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-base/gdm-3.8.4/temp/environment'.
 * Working directory: '/var/tmp/portage/gnome-base/gdm-3.8.4/work/gdm-3.8.4'
 * S: '/var/tmp/portage/gnome-base/gdm-3.8.4/work/gdm-3.8.4'

>>> Failed to emerge gnome-base/gdm-3.8.4, Log file:

>>>  '/var/tmp/portage/gnome-base/gdm-3.8.4/temp/build.log'


where are we at with this? what information can i provide to speed this along?
Comment 18 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-11 22:25:54 UTC
I'm stuck and I have no idea what and why this happens. Are you sure you're using binutils >= 2.23.1 and have this version eselected and so on? If yes, I'll try to find someone smarter to help.
Comment 19 brent 2013-09-11 23:23:33 UTC
dawid ~ # eselect binutils list
Installed binutils for target x86_64-pc-linux-gnu
  [1]   2.22
  [2]   2.22.90
  [3]   2.23
  [4]   2.23.1
  [5]   2.23.2 *


[I] sys-apps/systemd
     Available versions:  201 204 (~)206-r3 (~)206-r4 **9999-r1 {acl audit cryptsetup doc +filecaps +firmware-loader gcrypt gudev http introspection keymap +kmod lzma openrc pam policykit python qrcode selinux static-libs tcpd test vanilla xattr ABI_MIPS="n32 n64 o32" ABI_X86="32 64 x32" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"}
(SNIP)

yep.

i think it may be beneficial to look into upstream causes? i did find the following:

http://comments.gmane.org/gmane.comp.sysutils.systemd.devel/12783
(and the exact same error occurs during dbus build,) http://permalink.gmane.org/gmane.comp.sysutils.systemd.devel/12940
Comment 20 brent 2013-09-11 23:24:33 UTC
(In reply to brent from comment #19)
> [I] sys-apps/systemd
>      Available versions:  201 204 (~)206-r3 (~)206-r4 **9999-r1 {acl audit
> cryptsetup doc +filecaps +firmware-loader gcrypt gudev http introspection
> keymap +kmod lzma openrc pam policykit python qrcode selinux static-libs
> tcpd test vanilla xattr ABI_MIPS="n32 n64 o32" ABI_X86="32 64 x32"
> PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"}
> (SNIP)

whoops. didn't include my installed versions of systemd:

Installed versions:  206-r4(04:41:03 PM 09/11/2013)(acl audit cryptsetup filecaps firmware-loader gcrypt gudev http introspection kmod lzma openrc pam policykit python tcpd xattr -doc -qrcode -selinux -test -vanilla ABI_MIPS="-n32 -n64 -o32" ABI_X86="32 64 -x32" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7")
Comment 22 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-12 07:38:16 UTC
(In reply to Pacho Ramos from comment #21)
> Does this change anything?
> http://cgit.freedesktop.org/systemd/systemd/commit/
> ?id=54ca4fc85b3f0b9bf7f52a7be782161d780246e9

June... seems that it happened before 206.
Comment 23 brent 2013-09-12 23:20:05 UTC
Created attachment 358558 [details]
patch output when applying upstream git patch

not entirely sure i'm applying it correctly.

reproduce:
1.) mkdir -p /etc/portage/patches/sys-apps/systemd-206-r4
2.) wget -o /etc/portage/patches/sys-apps/systemd-206-r4/cg_create-fix.patch "http://cgit.freedesktop.org/systemd/systemd/patch/?id=54ca4fc85b3f0b9bf7f52a7be782161d780246e9"
3.) emerge -1v =sys-apps/systemd-206-r4

it doesn't seem to find the Makefile.am file (though it does exist):
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
...
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

but then...

checking file Makefile.am
Hunk #1 succeeded at 3802 with fuzz 2 (offset 1803 lines).
Hunk #2 succeeded at 4011 with fuzz 2 (offset 1346 lines).
...

patching file Makefile.am
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file Makefile.am.rej

and sure enough, i checked against the vanilla Makefile.am in the work directory, and:

libudev_la_LIBADD = \
        libsystemd-shared.la \
        libsystemd-label.la \
        libsystemd-daemon-internal.la \
        libsystemd-id128-internal.la
...
libsystemd_id128_la_LIBADD = \
        libsystemd-shared.la \
        libsystemd-label.la \
        libsystemd-daemon-internal.la

the fixes that small patch is meant to apply are already applied in 206-r4. wondering if it might be affected by one of the packager's patches?
Comment 24 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-14 09:19:44 UTC
@toolchain, any suggestions here? It seems that most of users were able to 'fix' this through upgrading binutils, except for brent here.
Comment 25 SpanKY gentoo-dev 2013-09-30 00:44:54 UTC
(In reply to brent from comment #23)

rather than waste time trying to figure out how to patch things, just install the next version of systemd.  seems PV=207 includes the aforementioned patch.
Comment 26 brent 2013-09-30 03:55:13 UTC
(In reply to SpanKY from comment #25)
> (In reply to brent from comment #23)
> 
> rather than waste time trying to figure out how to patch things, just
> install the next version of systemd.  seems PV=207 includes the
> aforementioned patch.

well, the patches wouldn't apply because the changes are already there. read my previous comment in more detail; the changes you're referring to have been in upstream since at least 206-r4.

also worth noting is this continues to occur on 207-r2.
Comment 27 SpanKY gentoo-dev 2013-09-30 05:27:20 UTC
(In reply to brent from comment #26)

if the patch is already applied, then posting extended details about trying to apply it is purely noise.  there's already way too much content in this bug for me to spend time weeding out.

mgorny: i don't have a system running systemd, so i don't know what it's supposed to look like.  is cg_create defined in /usr/lib64/libsystemd-login.so ?  if not, what is supposed to be providing it ?  you can find out by doing:
$ qlist systemd | xargs scanelf -qys +cg_create  # shows what defines it
$ qlist systemd | xargs scanelf -qys -cg_create  # shows what uses it
Comment 28 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-30 06:57:19 UTC
(In reply to SpanKY from comment #27)
> mgorny: i don't have a system running systemd, so i don't know what it's
> supposed to look like.  is cg_create defined in
> /usr/lib64/libsystemd-login.so ?  if not, what is supposed to be providing
> it ?

It's in common static utility library used during the build of most of the libraries. They are playing with visibility, and they have:

libsystemd_login_la_CFLAGS = \
        $(AM_CFLAGS) \
        -fvisibility=hidden

to hide the functions from libsystemd-shared.a.

>  you can find out by doing:
> $ qlist systemd | xargs scanelf -qys +cg_create  # shows what defines it
> $ qlist systemd | xargs scanelf -qys -cg_create  # shows what uses it

On my system, both lists are empty, so the thing gets linked statically as expected.
Comment 29 SpanKY gentoo-dev 2013-09-30 07:37:40 UTC
(In reply to Michał Górny from comment #28)

that's good since an `ebuild systemd-207-r2.ebuild compile` on my system shows the same issue -- cg_create is undefined

$ readelf -sW ./systemd-207-amd64/.libs/libsystemd-login.so.0.9.0 \
  | grep cg_create
   164: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND cg_create

in case it matters, here's my USE flags:
[ebuild  N     ] sys-apps/systemd-207-r1  USE="acl filecaps firmware-loader gudev introspection kmod lzma policykit python tcpd xattr -audit -cryptsetup -doc -gcrypt -http -openrc -pam -qrcode -selinux {-test} -vanilla" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 0 kB

the link line looks like:
x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  src/login/.libs/libsystemd_login_la-sd-login.o  -Wl,--whole-archive ./.libs/libsystemd-shared.a ./.libs/libsystemd-daemon-internal.a -Wl,--no-whole-archive  -Wl,--as-needed -lrt -ldl  -O2 -march=amdfam10 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--version-script=/var/tmp/portage/sys-apps/systemd-207-r2/work/systemd-207/src/login/libsystemd-login.sym -Wl,-O1 -Wl,--hash-style=gnu   -Wl,-soname -Wl,libsystemd-login.so.0 -o .libs/libsystemd-login.so.0.9.0

cg_create is coming from cgroup-util.o in ./.libs/libsystemd-shared.a:
   349: 0000000000000000   124 FUNC    GLOBAL HIDDEN   112 cg_create_with_mask
   350: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND cg_create

the only place i see that symbol being defined is in the file ./src/shared/.libs/libsystemd_label_la-cgroup-label.o which is added to a bunch of archives:
./.libs/libsystemd-core.a
./.libs/libsystemd-journal-internal.a
./.libs/libsystemd-label.a
./.libs/libsystemd-logind-core.a
./.libs/libsystemd-logs.a
./.libs/libsystemd-machine-core.a
./.libs/libudev-core.a

but none of those archives are being used here.
Comment 30 SpanKY gentoo-dev 2013-09-30 07:39:45 UTC
my guess is that the Makefile.am is broken and should be listing libsystemd-label.la in LIBADD for these (like libsystemd_login_la_LIBADD).  but i really have nfc.

also, it looks like someone typoed and added that archive twice to libsystemd_journal_internal_la_LIBADD.
Comment 31 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-30 08:19:47 UTC
Created attachment 359774 [details, diff]
Patch adding -label linking

@brent: Please try this patch then. Just put it in /etc/portage/patches/sys-apps/systemd/ and see if it helps.
Comment 32 brent 2013-09-30 12:55:19 UTC
that did the trick! after re-emerging systemd 207-r2 with the patch provided, both dbus and polkit* (two of the packages that wouldn't build with >systemd-204) now successfully emerge with 207-r2.

*there were several other packages that i don't recall offhand that exhibited this behaviour, but these are the two i remembered. i'd suspect other problematic packages would also build fine now.
Comment 33 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-02 09:12:02 UTC
The underlying issue has been fixed upstream in git. However, the changes didn't make it to -208 tarball, so I've just applied our little patch on top of it for now.