[systemd-devel] systemd-213 fails to compile without kmod, no way to fix it using ./configure options

Samuli Suominen ssuominen at gentoo.org
Sat May 31 04:14:46 PDT 2014


1. "libsystemd_network_la_SOURCES =" in Makefile.am includes
"src/libsystemd-network/network-internal.h"
and there is no anykind of #ifdef -logic behind it

2. "src/libsystemd-network/network-internal.h" has #include <libkmod.h>
and there is no anykind of #ifdef
-logic behind it

so kmod is hardcoded dependency in systemd-213:

<snip>

/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-fs/udev-213/work/systemd-213  -include ./config.h -DPKGSYSCONFDIR=\"/etc/systemd\" -DSYSTEM_CONFIG_UNIT_P
ATH=\"/etc/systemd/system\" -DSYSTEM_DATA_UNIT_PATH=\"/lib/systemd/system\" -DSYSTEM_SYSVINIT_PATH=\"/etc/init.d\" -DSYSTEM_SYSVRCND_PATH=\"/etc/rc.d\" -DUSER_CONFIG_UNIT_PATH=\"/etc/systemd/user\" -DUSER_DATA_UNIT_PATH=\"/usr/l
ib/systemd/user\" -DCATALOG_DATABASE=\"/var/lib/lib/systemd/catalog/database\" -DSYSTEMD_CGROUP_AGENT_PATH=\"/lib/systemd/systemd-cgroups-agent\" -DSYSTEMD_BINARY_PATH=\"/lib/systemd/systemd\" -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"/l
ib/systemd/systemd-shutdown\" -DSYSTEMD_SLEEP_BINARY_PATH=\"/lib/systemd/systemd-sleep\" -DSYSTEMCTL_BINARY_PATH=\"/bin/systemctl\" -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"/bin/systemd-tty-ask-password-agent\" -DSYSTEMD_S
TDIO_BRIDGE_BINARY_PATH=\"/usr/bin/systemd-stdio-bridge\" -DROOTPREFIX=\"\" -DRANDOM_SEED_DIR=\"/var/lib/lib/systemd/\" -DRANDOM_SEED=\"/var/lib/lib/systemd/random-seed\" -DSYSTEMD_CRYPTSETUP_PATH=\"/lib/systemd/systemd-cryptset
up\" -DSYSTEM_GENERATOR_PATH=\"/lib/systemd/system-generators\" -DUSER_GENERATOR_PATH=\"/usr/lib/systemd/user-generators\" -DSYSTEM_SHUTDOWN_PATH=\"/lib/systemd/system-shutdown\" -DSYSTEM_SLEEP_PATH=\"/lib/systemd/system-sleep\"
 -DSYSTEMD_KBD_MODEL_MAP=\"/usr/share/systemd/kbd-model-map\" -DX_SERVER=\"/usr/bin/X\" -DUDEVLIBEXECDIR=\"/lib/udev\" -DPOLKIT_AGENT_BINARY_PATH=\"/usr/bin/pkttyagent\" -DQUOTACHECK=\"/usr/sbin/quotacheck\" -DKEXEC=\"/usr/sbin/
kexec\" -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src -I ./src/shared -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/shared -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/network -I /var/tmp/portag
e/sys-fs/udev-213/work/systemd-213/src/login -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/journal -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/timedate -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213
/src/timesync -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/resolve -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/systemd -I ./src/core -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/core -I /var/
tmp/portage/sys-fs/udev-213/work/systemd-213/src/libudev -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/udev -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/udev/net -I ./src/udev -I /var/tmp/portage/sys-fs/ud
ev-213/work/systemd-213/src/libsystemd/sd-bus -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/libsystemd/sd-event -I /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/libsystemd/sd-rtnl -I /var/tmp/portage/sys-fs/ud
ev-213/work/systemd-213/src/libsystemd-network  -DFIRMWARE_PATH="\"/lib/firmware/updates/\", \"/lib/firmware/\""  -pipe -Wall -Wextra -Wno-inline -Wundef -Wformat=2 -Wformat-security -Wformat-nonliteral -Wlogical-op -Wsign-compa
re -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarati
ons -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Werror=overflow -Wnested-externs
 -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -ffunction-sections -fdata-sections -fstack-protector -fPIE --param=ssp-buffer-size=4   -I/usr/include/blkid -I/usr/include/uuid   -marc
h=native -O2 -mtune=native -pipe -c -o src/udev/libudev_core_la-udev-builtin-firmware.lo `test -f 'src/udev/udev-builtin-firmware.c' || echo '/var/tmp/portage/sys-fs/udev-213/work/systemd-213/'`src/udev/udev-builtin-firmware.c
In file included from /var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/udev/net/link-config.c:41:0:
/var/tmp/portage/sys-fs/udev-213/work/systemd-213/src/libsystemd-network/network-internal.h:27:21: fatal error: libkmod.h: No such file or directory
 #include <libkmod.h>

</snip>


More information about the systemd-devel mailing list