<tt><font size=2>Lennart Poettering <lennart@poettering.net> wrote
on 04/22/2015 04:29:18 PM:<br>
> On Tue, 21.04.15 08:39, Aaron_Wright@selinc.com <br>
> (Aaron_Wright@selinc.com) wrote:<br>
> <br>
> > I've been getting a few problems building systemd with "--enable-resolved<br>
> > ". Any help would be very welcomed. I don't have any problems
when <br>
> > compiling with "--disable-resolved".<br>
> > <br>
> > The first problem I got was this:<br>
> > <br>
> > CCLD libnss_resolve.la<br>
> > libsystemd_internal_la-bus-message.o (symbol from plugin): warning:
memset <br>
> > used with constant zero length parameter; this could be due to
transposed <br>
> > parameters<br>
> > /tmp/cc03x1nN.ltrans6.ltrans.o: In function `bus_error_name_to_errno.4725<br>
> > ':<br>
> > cc03x1nN.ltrans6.o:(.text+0x12bb): undefined reference to <br>
> > `__stop_BUS_ERROR_MAP'<br>
> > cc03x1nN.ltrans6.o:(.text+0x12c2): undefined reference to <br>
> > `__start_BUS_ERROR_MAP'<br>
> > collect2: ld returned 1 exit status<br>
> <br>
> Kay made some changes to the build system for this. Can you check
if<br>
> this part works now for you?<br>
> <br>
> Lennart<br>
> <br>
> -- <br>
> Lennart Poettering, Red Hat<br>
</font></tt>
<br><tt><font size=2>I cloned down the master branch yesterday and tried
to build, but got:</font></tt>
<br>
<br><tt><font size=2>"src/shared/random-util.c:26:22: fatal error:
sys/auxv.h: No such file or directory"</font></tt>
<br>
<br><tt><font size=2>Which is new. Apparently "sys/auxv.h" was
added in eglibc 2.16, and I'm stuck with eglibc 2.15, so that's a new unrelated
wrinkle.</font></tt>
<br>
<br><tt><font size=2>So, I attempted to merge the changes that seemed to
make sense from Makefile.am on master to 219, which involved a lot of adding
"libsystemd-internal.la" to different places, and ordering "libsystemd-shared.la"
after it. Most of changes were in sections I'm not using, due to my configuration
arguments, and "libnss_resolve_la_LIBADD", the failing library,
already had both "libsystemd-internal.la" and "libsystemd-shared.la"
listed in libnss_resolve_la_LIBADD in the same order as everyone else.
Am I missing something? Should I be looking in a different file, other
than Makefile.am?</font></tt>
<br>
<br><tt><font size=2>So, I haven't found a solution to this yet. It seems
my problem is that my build environment is too old for systemd. I won't
be able to move to 220 because of eglibc 2.16 dependency, and I can't get
libnss_resolve to compile due to a bug in my old gcc 4.6. My environment
is Ubuntu Precise, which is a long term service edition.</font></tt>
<br>
<br><tt><font size=2>My configuration arguments if anyone is curious:</font></tt>
<br><tt><font size=2>
--disable-chkconfig \</font></tt>
<br><tt><font size=2>
--disable-apparmor \</font></tt>
<br><tt><font size=2>
--disable-xz \</font></tt>
<br><tt><font size=2>
--disable-zlib \</font></tt>
<br><tt><font size=2>
--disable-bzip2 \</font></tt>
<br><tt><font size=2>
--disable-lz4 \</font></tt>
<br><tt><font size=2>
--disable-pam \</font></tt>
<br><tt><font size=2>
--disable-acl \</font></tt>
<br><tt><font size=2>
--disable-smack \</font></tt>
<br><tt><font size=2>
--disable-gcrypt \</font></tt>
<br><tt><font size=2>
--disable-audit \</font></tt>
<br><tt><font size=2>
--disable-elfutils \</font></tt>
<br><tt><font size=2>
--disable-libcryptsetup \</font></tt>
<br><tt><font size=2>
--disable-qrencode \</font></tt>
<br><tt><font size=2>
--disable-microhttpd \</font></tt>
<br><tt><font size=2>
--disable-gnutls \</font></tt>
<br><tt><font size=2>
--disable-libcurl \</font></tt>
<br><tt><font size=2>
--disable-libidn \</font></tt>
<br><tt><font size=2>
--disable-libiptc \</font></tt>
<br><tt><font size=2>
--disable-binfmt \</font></tt>
<br><tt><font size=2>
--disable-vconsole \</font></tt>
<br><tt><font size=2>
--disable-bootchart \</font></tt>
<br><tt><font size=2>
--disable-quotacheck \</font></tt>
<br><tt><font size=2>
--disable-backlight \</font></tt>
<br><tt><font size=2>
--disable-rfkill \</font></tt>
<br><tt><font size=2>
--disable-logind \</font></tt>
<br><tt><font size=2>
--disable-machined \</font></tt>
<br><tt><font size=2>
--disable-importd \</font></tt>
<br><tt><font size=2>
--disable-hostnamed \</font></tt>
<br><tt><font size=2>
--disable-timedated \</font></tt>
<br><tt><font size=2>
--disable-timesyncd \</font></tt>
<br><tt><font size=2>
--disable-localed \</font></tt>
<br><tt><font size=2>
--disable-coredump \</font></tt>
<br><tt><font size=2>
--disable-polkit \</font></tt>
<br><tt><font size=2>
--disable-networkd \</font></tt>
<br><tt><font size=2>
--disable-efi \</font></tt>
<br><tt><font size=2>
--disable-terminal \</font></tt>
<br><tt><font size=2>
--disable-kdbus \</font></tt>
<br><tt><font size=2>
--disable-gudev \</font></tt>
<br><tt><font size=2>
--disable-manpages \</font></tt>
<br><tt><font size=2>
--disable-hibernate \</font></tt>
<br><tt><font size=2>
--disable-ldconfig \</font></tt>
<br><tt><font size=2>
--disable-tests \</font></tt>
<br><tt><font size=2>
--disable-sysusers \</font></tt>
<br><tt><font size=2>
--disable-dbus \</font></tt>
<br><tt><font size=2>
\</font></tt>
<br><tt><font size=2>
--enable-selinux \</font></tt>
<br><tt><font size=2>
--enable-tmpfiles \</font></tt>
<br><tt><font size=2>
--enable-randomseed \</font></tt>
<br><tt><font size=2>
--enable-split-usr \</font></tt>
<br><tt><font size=2>
--enable-myhostname \</font></tt>
<br><tt><font size=2>
--enable-firstboot \</font></tt>
<br><tt><font size=2>
--enable-resolved \</font></tt>
<br><tt><font size=2>
\</font></tt>
<br><tt><font size=2>
--without-python \</font></tt>
<br><tt><font size=2>
\</font></tt>
<br><tt><font size=2>
--with-debug-shell="" \</font></tt>
<br><tt><font size=2>
--with-debug-tty="" \</font></tt>
<br><tt><font size=2>
--with-ntp-servers="" \</font></tt>
<br><tt><font size=2>
--with-dns-servers="" \</font></tt>
<br><tt><font size=2>
--with-telinit="" \</font></tt>
<br><tt><font size=2>
--with-sysvinit-path="" \</font></tt>
<br><tt><font size=2>
--with-sysvrcnd-path="" \</font></tt>
<br><tt><font size=2>
--with-rc-local-script-path-start="" \</font></tt>
<br><tt><font size=2>
--with-rc-local-script-path-stop="" \</font></tt>
<br><tt><font size=2>
--with-bashcompletiondir="" \</font></tt>
<br><tt><font size=2>
--with-zshcompletiondir="" \</font></tt>
<br><tt><font size=2>
--with-pamlibdir="" \</font></tt>
<br><tt><font size=2>
--with-pamconfdir="" \</font></tt>
<br><tt><font size=2>
--with-dbuspolicydir="" \</font></tt>
<br><tt><font size=2>
--with-dbussessionservicedir="" \</font></tt>
<br><tt><font size=2>
--with-dbussystemservicedir=""</font></tt>