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

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue Apr 21 13:51:29 PDT 2015


On Tue, Apr 21, 2015 at 08:39:35AM -0700, Aaron_Wright at selinc.com wrote:
> I've been getting a few problems building systemd with "--enable-resolved
> ". Any help would be very welcomed. I don't have any problems when 
> compiling with "--disable-resolved".
> 
> The first problem I got was this:
> 
>   CCLD   libnss_resolve.la
> libsystemd_internal_la-bus-message.o (symbol from plugin): warning: memset 
> used with constant zero length parameter; this could be due to transposed 
> parameters
> /tmp/cc03x1nN.ltrans6.ltrans.o: In function `bus_error_name_to_errno.4725
> ':
> cc03x1nN.ltrans6.o:(.text+0x12bb): undefined reference to 
> `__stop_BUS_ERROR_MAP'
> cc03x1nN.ltrans6.o:(.text+0x12c2): undefined reference to 
> `__start_BUS_ERROR_MAP'
> collect2: ld returned 1 exit status
> 
> I got around this be removing "-flto" from "OUR_CFLAGS" in the Makefile. 
> How is that change going to impact systemd? Is there a better way to work 
> around this problem?
Afaik nobody has measured that. It will certainly make your compilation
times much shorter :)

> 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


More information about the systemd-devel mailing list