Skip to contentSkip to conversation

error compiling qemu 0.6.1 when trying to enable gprof support

Qemu-devel Mulyadi Santosa 1 participant 1 message Dec 13, 2004

lore
Share & tools
lore
#0 lore raw

Hello Qemu'ers

When I try to compile qemu-0.6.1 on Redhat 9 with --enable-gprof, I ended up with the following error:

rm -f libqemu.a
ar rcs libqemu.a exec.o translate-all.o cpu-exec.o translate.o op.o helper.o helper2.o translate-copy.o disas.o i386-dis.o
gcc -g -Wl,-T,/usr/src/misc/qemu-0.6.1/i386.ld -p -o qemu-i386 elfload.o main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o vm86.o libqemu.a -lm
libqemu.a(helper2.o)(.text+0x1c): In function `modify_ldt':
/usr/src/misc/qemu-0.6.1/target-i386/helper2.c:38: undefined reference to `errno'
collect2: ld returned 1 exit status
make[1]: *** [qemu-i386] Error 1
make[1]: Leaving directory `/usr/src/misc/qemu-0.6.1/i386-user'
make: *** [all] Error 1

Can someone help me to solve it? I have tried to manually track the source with no luck

regards

Mulyadi Santosa