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

Colin Guthrie gmane at colin.guthr.ie
Wed May 14 04:43:57 PDT 2014


Hello,

Firstly, please try to keep your mails on a given topic in the same
thread! Make it easier for us all to consume mails on the list!

'Twas brillig, and Hurry Zeng at 14/05/14 10:48 did gyre and gimble:
> 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 !

As far as I'm aware the sd-event code is not yet exported as a library,
so you'll likely have to compile and link all the sd-event.c code into
your project too.

It might help if you explain to the list what "some source code"
actually refers to!

Col



-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the systemd-devel mailing list