Stefan Weil<address@hidden> writes:
This is my configuration and the output from configure:
configure '--audio-card-list=ac97,es1370,sb16,cs4231a,adlib,gus,hda'
--audio-drv-list=alsa,sdl,oss,esd,pa' '--enable-mixemu'
--enable-check-utests' '--enable-vnc-thread'
ERROR
ERROR: User requested feature check
ERROR: configure was not able to find it
ERROR
Works for me, see appended log.
This is what configure does internally:
gcc -fPIE -DPIE -m64 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes
-Wredundant-decls -Wmissing-format-attribute -Wall -Wundef
-Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing
-fstack-protector-all -Wendif-labels -Wmissing-include-dirs
-Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k
-Winit-self -Wignored-qualifiers -Wold-style-declaration
-Wold-style-definition -Wtype-limits -I/usr/include/libpng12 -o
/tmp/qemu-conf--4272-.exe /tmp/qemu-conf--4272-.c -Wl,-z,relro
-Wl,-z,now -pie -m64 -g -lcheck
/usr/bin/ld:
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcheck.a(check.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcheck.a: could
not read symbols: Bad value
When I add --disable-pie, configure works.
You can't link non-PIC code like libcheck.a into a PIE. Do you have
libcheck.so?