[systemd-devel] [PATCH] libsystemd-login.so: fix undefined reference to 'cg_create'
Yang Chengwei
chengwei.yang at intel.com
Wed Sep 11 18:58:43 PDT 2013
On Wed, Sep 11, 2013 at 01:27:03PM +0200, Lennart Poettering wrote:
> On Wed, 11.09.13 13:28, Yang Chengwei (chengwei.yang at intel.com) wrote:
>
> > On Tue, Sep 10, 2013 at 06:02:55PM +0200, Lennart Poettering wrote:
> > > On Mon, 26.08.13 13:48, Chengwei Yang (chengwei.yang at intel.com) wrote:
> > >
> > > Hmm, can you elaborate on this one? libsystemd-login should be mostly
> >
> > This error occurs while building dbus with systemd support like below
> >
> > $ make
> > make all-recursive
> > make[1]: Entering directory `/home/chengwei/Upstream/dbus.git'
> > Making all in dbus
> > make[2]: Entering directory `/home/chengwei/Upstream/dbus.git/dbus'
> > make all-am
> > make[3]: Entering directory `/home/chengwei/Upstream/dbus.git/dbus'
> > CCLD dbus-test
> > /usr/lib/libsystemd-login.so: undefined reference to `cg_create'
> > collect2: ld returned 1 exit status
> > make[3]: *** [dbus-test] Error 1
> > make[3]: Leaving directory `/home/chengwei/Upstream/dbus.git/dbus'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory `/home/chengwei/Upstream/dbus.git/dbus'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/home/chengwei/Upstream/dbus.git'
> > make: *** [all] Error 2
> >
> > and cg_create referenced by libsystemd-login.so like below
> >
> > $ grep cg_create src/login/ -r
> > Binary file src/login/systemd_logind-logind-session.o matches
> > Binary file src/login/systemd_logind-logind-user.o matches
>
> But these files are not linked into libsystemd-login, but only into
> logind (the daemon)...
Yeah, just found that from Makefile.am, it's weird why the above error
happen.
--
Thanks,
Chengwei
>
> Lennart
>
> --
> Lennart Poettering - Red Hat, Inc.
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130912/f1899c35/attachment.pgp>
More information about the systemd-devel
mailing list