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

Hurry Zeng winewolf at qq.com
Wed May 14 02:48:08 PDT 2014


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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140514/adb5d50a/attachment.html>


More information about the systemd-devel mailing list