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

Aaron_Wright at selinc.com Aaron_Wright at selinc.com
Tue Apr 21 08:39:35 PDT 2015


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?

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

I'm not sure what to do about this one. Ideas?

Versions (Upgrading is not trivial. Patching is much easier.):

GNU ld (GNU Binutils for Ubuntu) 2.22
gcc-4.6.real (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150421/0810e72e/attachment.html>


More information about the systemd-devel mailing list