[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 05:01:35 PDT 2014


Hi Daniel,
Yes, i do this in makefile.



Hurry Zeng from China. (winewolf at qq.com)
 
From: Daniel Buch
Date: 2014-05-14 19:44
To: Hurry Zeng
CC: systemd-devel
Subject: Re: [systemd-devel] error: undefined reference to `sd_event_source_unref' while the function exists in source
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/45bbdfa8/attachment.html>


More information about the systemd-devel mailing list