[lvm-devel] linker error with configure option --enable-static_link
Juergen Daubert
jue at jue.li
Tue Nov 9 17:16:24 UTC 2010
Hello,
got the following linker error while trying to build latest lvm2 from
sources with gcc 4.5.1 and binutils 2.20.1 (works with gcc 4.4.x and
binutils 2.19.1) if --enable-static_link is configured:
cc -O2 -march=i686 -pipe -O2 -march=i686 -pipe -fPIC -Wall -Wundef
-Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn
-Wformat-security -Wredundant-decls -O2 -O2 -march=i686 -pipe -fPIC
-Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn
-Wformat-security -Wredundant-decls -O2 -Wl,--export-dynamic -L../libdm
-L../lib -static -L../libdm/ioctl \
-o dmsetup.static dmsetup.o -ldevmapper -lm
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer
equality in
`/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../libc.a(strcmp.o)'
can not be used when making an executable; recompile with -fPIE
and relink with -pie
collect2: ld returned 1 exit status
make[1]: *** [dmsetup.static] Error 1
Thanks
Juergen
--
Juergen Daubert | mailto:jue at jue.li
Korb, Germany | http://jue.li/crux
More information about the lvm-devel
mailing list