[systemd-devel] error: undefined reference to `sd_event_source_unref' while the function exists in source

Daniel Buch boogiewasthere at gmail.com
Wed May 14 04:44:09 PDT 2014


Have you compiled with: -lsystemd?


2014-05-14 11:48 GMT+02:00 Hurry Zeng <winewolf at qq.com>:

> Hi All,
>
> i tried to compile some source code on archlinux (v 2014.05.01), but i got
> an error: (header missing ?)
>     fatal error:* systemd/sd-event.h*: No such file or directory
>     #include <systemd/sd-event.h>
>     ^
>     compilation terminated.
>
> then i copied the headers from systemd-212.tar.gz
> to /usr/include/systemd/  and "make" again,
> but i got more errors, such as: (implementation missing ?)
>     undefined reference to `*sd_event_source_unref*'
>
> i found the "undefined " functions in systemd source code,
> but why the make program can't find them?
> what mistake i had made ?
>
> Is somebody online ? plz help !
>
> thanks
> Hurry
>
> ------------------------------
> Hurry Zeng from China. (winewolf at qq.com)
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140514/d61ff778/attachment.html>


More information about the systemd-devel mailing list