[systemd-devel] Failure(s) Building Systemd with "--enable-resolved"

Lennart Poettering lennart at poettering.net
Thu Apr 23 09:58:41 PDT 2015


On Thu, 23.04.15 09:21, Aaron_Wright at selinc.com (Aaron_Wright at selinc.com) wrote:

> > > After I got pass the first error, I now get this:
> > > 
> > >   CC     src/resolve/resolved-dns-cache.o
> > > src/resolve/resolved-dns-scope.c: In function ?dns_scope_tcp_socket?:
> > > src/resolve/resolved-dns-scope.c:260:56: error: ?IP_UNICAST_IF? 
> undeclared 
> > > (first use in this function)
> > > src/resolve/resolved-dns-scope.c:260:56: note: each undeclared 
> identifier 
> > > is reported only once for each function it appears in
> > It was in kernel 3.4. What kernel headers are you using?
> > 
> > Zbyszek
> 
> You're right. I'm using Kernel 3.10. I didn't have the right 
> linux-libc-dev package installed. So now IP_UNICAST_IF is defined in 
> /usr/include/linux/in.h, but that doesn't fix the compile errors. I can't 
> include "linux/in.h" directly as that'll cause all sorts of redefinition 
> errors with "netinet/in.h". I'm not sure what is supposed to include 
> "linux/in.h" for me. Including "netinet/in.h" doesn't fix it, as it 
> doesn't define IP_UNICAST_IF.
> 
> I ended up adding "#define IP_UNICAST_IF 50" to the top of "
> src/resolve/resolved-dns-scope.c" and "src/resolve/resolved-dns-stream.c", 
> which is a little hackish, but at leasts gets it to compile.

Which glibc version are you using?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list