[systemd-devel] missing sd_listen_fds & sd_is_socket

Michael D. Berger m.d.berger at ieee.org
Sun Jan 1 10:17:52 PST 2012


> -----Original Message-----
> From: Lennart Poettering [mailto:lennart at poettering.net] 
> Sent: Sunday, January 01, 2012 09:28
> To: Michael D. Berger
> Cc: systemd-devel at lists.freedesktop.org
> Subject: Re: [systemd-devel] missing sd_listen_fds & sd_is_socket
> 
> On Sat, 31.12.11 20:57, Michael D. Berger (m.d.berger at ieee.org) wrote:
> 
> > I get undefined reference to sd_listen_fds and sd_is_socket.
> > And also:
> > 
> >   # find / -name "sd_listen_fds.*"
> >   /var/cache/man/cat3/sd_listen_fds.3.gz
> >   /usr/share/man/man3/sd_listen_fds.3.gz
> >   # find / -name "sd_is_socket.*"
> >   /usr/share/man/man3/sd_is_socket.3.gz
> > 
> > So you see I cannot run MyDaemon.socket .
> > It looks like my installation is incomplete.
> > Any suggestions?
> 
> In older versions of systemd sd_listen_fds() is found in a 
> drop-in library which at least the Fedora version installs to 
> /usr/share/doc/systemd/. Just copy sd-daemon.c and 
> sd-daemon.h into your sources and add them to the code you build.
> 
> In newer versions of systemd we also provide this as norma 
> shared library, which you can build against via the 
> libsystemd-daemon pkg-config package.
> 
> I'd recommend everybody to use the shared library these days, 
> but it's also OK to continue to use the drop-in 
> implementation, if it is important not to add a dependency on 
> the shared library to your project.
> 
> Lennart
> 
> --
> Lennart Poettering - Red Hat, Inc.
> 
So where do I get the shared library? On my F16_64 I just did a "yum update"
so I would hope I have the latest, but:

   # yum list installed | grep -i systemd
   systemd.x86_64                         37-3.fc16
@updates   
   systemd-sysv.x86_64                    37-3.fc16
@updates   
   systemd-units.x86_64                   37-3.fc16
@updates 
  
   # yum list available | grep -i systemd

   clamav-milter-systemd.noarch              0.97.3-1600.fc16
updates
   clamav-scanner-systemd.noarch             0.97.3-1600.fc16
updates
   dhcp-forwarder-systemd.noarch             0.9-1501.fc15
fedora 
   milter-greylist-systemd.noarch            4.2.7-1600.fc16
fedora 
   systemd.i686                              37-3.fc16
updates
   systemd-devel.i686                        37-3.fc16
updates
   systemd-devel.x86_64                      37-3.fc16
updates
   systemd-gtk.x86_64                        37-3.fc16
updates
   tor-systemd.noarch                        0.2.2.34-1600.fc16
updates
   wine-systemd.noarch                       1.3.33-1.fc16
updates

Thanks,
Mike.

--
Michael D. Berger
m.d.berger at ieee.org
http://www.rosemike.net/
  




More information about the systemd-devel mailing list