[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#584607: libc6: autoconf configure scripts hang at "checking whether a statically linked program can dlopen itself"



On Fri, Jun 04, 2010 at 11:01:11PM -0300, Nicolás Alvarez wrote:
> gcc -o conftest -g -O2  -DHAVE_DLFCN_H  -Wl,--export-dynamic -static
> conftest.c -ldl

% gcc -o conftest -g -O2  -DHAVE_DLFCN_H  -Wl,--export-dynamic -static conftest.c -ldl
/tmp/cc5vF3ae.o: In function `main':
/tmp/conftest.c:56: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/lib/gcc/x86_64-linux-gnu/4.4.4/../../../../lib/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


What gcc and binutils are you using?



Reply to: