Skip to contentSkip to conversation

Qemu 0.5x not compiling with XFree86 4.3

Qemu-devel Theodore Ts'o 1 participant 1 message Dec 26, 2003

lore
Share & tools
lore
#0 lore raw

Hi there,

I've been trying to compile qemu with XFree86 4.3 under Debian Unstable, and it's been bombing out with the following error:

gcc -static -Wl,-T,/usr/projects/qemu/qemu-0.5.1/i386-vl.ld -o qemu-fast vl.o block.o ide.o vga.o sb16.o dma.o oss.o sdl.o libqemu.a -lm -lSDL -lpthread -lm -ldl -L/usr/X11R6/lib -lX11 -lXext /usr/lib/gcc-lib/i386-linux/3.2.3/../../../libSDL.a(SDL_x11gl.lo)(.text+0x946): In function `X11_GL_LoadLibrary':
: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/X11R6/lib/libX11.a(x11trans.o)(.text+0x995): In function `_X11TransSocketINETConnect':
: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/X11R6/lib/libX11.a(x11trans.o)(.text+0x76a): In function `_X11TransSocketINETConnect':
: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/X11R6/lib/libX11.a(imDefIm.o)(.text+0x291f): In function _XimProtoOpenIM':: undefined reference to XimShutdown'
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Error 1
make[1]: Leaving directory `/usr/projects/qemu/qemu-0.5.1/i386'
make: *** [all] Error 1

If I forcibly remove -static, it seems to compile. Is this a known problem? Is removing -static from the linker line the best workaround?

Many thanks!

- Ted