[systemd-devel] systemd fails to build with static kmod library
Stephan Raue
mailinglists at openelec.tv
Sun Jun 2 08:06:26 PDT 2013
Hi,
systemd fails to build with using a statically libkmod.a:
libtool: link:
/home/stephan/projects/openelec-master/build.OpenELEC-ARCTIC_MC.x86_64-devel/toolchain/bin/x86_64-openelec-linux-gnu-gcc
-std=gnu99 -pipe -Wall -Wextra -Wno-inline -Wundef -Wformat=2
-Wformat-security -Wformat-nonliteral -Wlogical-op -Wsign-compare
-Wmissing-include-dirs -Wold-style-definition -Wpointer-arith
-Winit-self -Wdeclaration-after-statement -Wfloat-equal
-Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls
-Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels
-Wcast-align -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long
-Wno-overlength-strings -Wno-unused-parameter
-Wno-missing-field-initializers -Wno-unused-result -Werror=overflow
-ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing
-fvisibility=hidden -ffunction-sections -fdata-sections
-fstack-protector --param=ssp-buffer-size=4 -march=atom -m64
-fomit-frame-pointer -Wall -pipe -Os -fexcess-precision=fast -ffast-math
-flto -mfpmath=sse -msse2 -mssse3 -mmovbe -Wl,--as-needed
-Wl,--no-undefined -Wl,--gc-sections -Wl,-z -Wl,relro -Wl,-z -Wl,now
-march=atom -m64 -s -Wl,--as-needed -fuse-linker-plugin -flto -Os
-fexcess-precision=fast -ffast-math -flto -o test-udev
src/test/test-udev.o ./.libs/libudev-core.a ./.libs/libsystemd-shared.a
/home/stephan/projects/openelec-master/build.OpenELEC-ARCTIC_MC.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/sysroot/usr/lib/libblkid.so
/home/stephan/projects/openelec-master/build.OpenELEC-ARCTIC_MC.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/sysroot/usr/lib/libuuid.so
/home/stephan/projects/openelec-master/build.OpenELEC-ARCTIC_MC.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/sysroot/usr/lib/libkmod.a
-ldl -lrt -Wl,-rpath
-Wl,/home/stephan/projects/openelec-master/build.OpenELEC-ARCTIC_MC.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/sysroot/usr/lib
-Wl,-rpath
-Wl,/home/stephan/projects/openelec-master/build.OpenELEC-ARCTIC_MC.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/sysroot/usr/lib
libkmod-util.o (symbol from plugin): In function `getline_wrapped':
(.text+0x0): multiple definition of `memdup'
util.o (symbol from plugin):(.text+0x0): first defined here
libkmod-util.o (symbol from plugin): In function `getline_wrapped':
(.text+0x0): multiple definition of `path_is_absolute'
path-util.o (symbol from plugin):(.text+0x0): first defined here
libkmod-util.o (symbol from plugin): In function `getline_wrapped':
(.text+0x0): multiple definition of `path_make_absolute_cwd'
path-util.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [test-udev] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
greetings
Stephan
More information about the systemd-devel
mailing list