Skip to contentSkip to conversation

CVS Compile error

Qemu-devel Iain McFarlane 5 participants 7 messages May 9, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to compile the latest CVS and am getting the following error:

make[1]: Entering directory `/home/iain/src/qemu/i386'
gcc -static -Wl,-T,/home/iain/src/qemu/i386-vl.ld -o qemu-fast vl.o osdep.o block.o monitor.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o gdbstub.o sdl.o libqemu.a -lm -L/usr/lib -lSDL -lpthread -lm -ldl -lasound -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext -lggi -lgii -lgg -lutil /usr/lib/libSDL.a(SDL_loadso.o)(.text+0x2b): In function `SDL_LoadObject':
: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/X11R6/lib/libaudio.a(ConnSvr.o)(.text+0x970): In function `MakeTCPConnection':
: 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+0x77a): In function `_X11TransSocketINETConnect':
: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/libSDL.a(SDL_DirectFB_video.o)(.text+0x2f2): In function `SetDirectFBerror':
: undefined reference to DirectFBErrorString' /usr/lib/libSDL.a(SDL_DirectFB_video.o)(.text+0x756): In function DirectFB_VideoInit':
: undefined reference to DirectFBInit' /usr/lib/libSDL.a(SDL_DirectFB_video.o)(.text+0x76a): In function DirectFB_VideoInit':
: undefined reference to DirectFBCreate' /usr/lib/libSDL.a(SDL_DirectFB_video.o)(.text+0x127c): In function DirectFB_SetVideoMode':
: undefined reference to `DirectFBError'
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Error 1
make[1]: Leaving directory `/home/iain/src/qemu/i386'
make: *** [all] Error 1

I am using Mandrake Cooker which has:
libSDL1.2-devel-1.2.7-4mdk
libdirectfb0.9_20-0.9.20-1mdk
libdirectfb0.9_20-devel-0.9.20-1mdk

glibc-static-devel-2.3.3-11mdk
libgii0-static-devel-0.8.4-1mdk
libnas2-static-devel-1.6c-1mdk
libalsa2-static-devel-1.0.4-1mdk
libggi2-static-devel-2.0.4-1mdk
libxfree86-static-devel-4.3-32mdk

any help would be appreciated.

TIA,

Iain

#1 lore raw

[Qemu-devel] Next take at RFB

Hi,

I have changed the compile time options to command line options as suggested. For vnc alone, try "-vnc", for vnc and sdl, try "-vnc-and-sdl" and to set another (client) keyboard layout, try "-k fr" or "-k de".

You can get the patch at
http://libvncserver.sourceforge.net/qemu/

I put it there, because there is now support for reading the keymaps from rdesktop (rdesktop is a free client for Windows Terminal Services, which has much the same problem as we face here) instead of using wine's keyboard.c, and so it got a little bit bigger. To use this, you have to "make keysym_convert.h", uncomment the line defining USE_RDESKTOPS_KEYMAPS in vnc.c and remake qemu. You also need to download the keymaps (or take them from rdesktop), and extract them in your current directory.

Ultimately I prefer the rdesktop solution, because you don't have to recompile qemu in order to use a new keyboard layout. I also will try to make it run with SDL, but this could take a while.

Thoughts, suggestions?

Ciao,
Dscho

#2 lore raw

[Qemu-devel] Another CVS compile error

In reply to Iain McFarlane

There is probelm with the current CVS version of QEMU:

mkdir -p "/var/tmp/portage/qemu-cvs-1.3/image//usr/bin" install -m 755 -s qemu-mkcow "/var/tmp/portage/qemu-cvs-1.3/image//usr/bin"
mkdir -p "/var/tmp/portage/qemu-cvs-1.3/image//usr/share/qemu" install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin \
pc-bios/linux_boot.bin
"/var/tmp/portage/qemu-cvs-1.3/image//usr/share/qemu" mkdir -p "/usr/share/doc/qemu"
ACCESS DENIED mkdir: /usr/share/doc/qemu
mkdir: nie mona utworzy katalogu `/usr/share/doc/qemu': Brak dostpu
make: *** [install] Bd 1

!!! ERROR: app-emulation/qemu-cvs-1.3 failed.
!!! Function einstall, Line 388, Exitcode 2
!!! einstall failed

--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/tmp/sandbox-app-emulation_-_qemu-cvs-1.3-10353.log"

mkdir: /usr/share/doc/qemu
--------------------------------------------------------------------------------

Looks like Gentoo's portage system detects that makefile is trying to write in /usr/share/doc/qemu at some time while it should write in /var/tmp/portage/qemu-cvs-1.3/image/usr/share/doc/qemu. It was working with older CVS versions of QEMU.

Fabrice can you fix this?

Thanks,

Grzegorz Kulewski

#3 lore raw

Re: [Qemu-devel] Another CVS compile error

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Check how /usr/portage/app-emulation/qemu/qemu-0.5.5.ebuild solved this.

//David Holm

Quoted 36 lines · Grzegorz Kulewski

There is probelm with the current CVS version of QEMU:

mkdir -p "/var/tmp/portage/qemu-cvs-1.3/image//usr/bin" install -m 755 -s qemu-mkcow "/var/tmp/portage/qemu-cvs-1.3/image//usr/bin"
mkdir -p "/var/tmp/portage/qemu-cvs-1.3/image//usr/share/qemu" install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin \
pc-bios/linux_boot.bin
"/var/tmp/portage/qemu-cvs-1.3/image//usr/share/qemu" mkdir -p "/usr/share/doc/qemu"
ACCESS DENIED mkdir: /usr/share/doc/qemu
mkdir: nie mona utworzy katalogu `/usr/share/doc/qemu': Brak dostpu
make: *** [install] Bd 1

!!! ERROR: app-emulation/qemu-cvs-1.3 failed.
!!! Function einstall, Line 388, Exitcode 2
!!! einstall failed

--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/tmp/sandbox-app-emulation_-_qemu-cvs-1.3-10353.log"

mkdir: /usr/share/doc/qemu
---------------------------------------------------------------------------
-----

Looks like Gentoo's portage system detects that makefile is trying to write in /usr/share/doc/qemu at some time while it should write in /var/tmp/portage/qemu-cvs-1.3/image/usr/share/doc/qemu. It was working with older CVS versions of QEMU.

Fabrice can you fix this?

Thanks,

Quoted 8 lines

Grzegorz Kulewski

_______________________________________________
Qemu-devel mailing list
[email protected]
http://mail.nongnu.org/mailman/listinfo/qemu-devel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAnmKHxVDe1wIoqX0RAhivAKCvqUfGKAySfejj47FXaLFW3/RmSACfXhFL 1rgfpz8mJ78YHfreIodsMGU=
=onhc
-----END PGP SIGNATURE-----

#4 lore raw

Re: [Qemu-devel] Another CVS compile error

In reply to Grzegorz Kulewski
Quoted 25 lines · Grzegorz Kulewski

There is probelm with the current CVS version of QEMU:

mkdir -p "/var/tmp/portage/qemu-cvs-1.3/image//usr/bin" install -m 755 -s qemu-mkcow "/var/tmp/portage/qemu-cvs-1.3/image//usr/bin"
mkdir -p "/var/tmp/portage/qemu-cvs-1.3/image//usr/share/qemu" install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin \
pc-bios/linux_boot.bin
"/var/tmp/portage/qemu-cvs-1.3/image//usr/share/qemu" mkdir -p "/usr/share/doc/qemu"
ACCESS DENIED mkdir: /usr/share/doc/qemu
mkdir: nie mona utworzy katalogu `/usr/share/doc/qemu': Brak dostpu
make: *** [install] Bd 1

!!! ERROR: app-emulation/qemu-cvs-1.3 failed.
!!! Function einstall, Line 388, Exitcode 2
!!! einstall failed

--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/tmp/sandbox-app-emulation_-_qemu-cvs-1.3-10353.log"

mkdir: /usr/share/doc/qemu
--------------------------------------------------------------------------------

Quoted 6 lines

Looks like Gentoo's portage system detects that makefile is trying to write in /usr/share/doc/qemu at some time while it should write in /var/tmp/portage/qemu-cvs-1.3/image/usr/share/doc/qemu. It was working with older CVS versions of QEMU.

Fabrice can you fix this?

On a related note, using the CVS version and compiling with Gentoo still gives me

make[1]: Entering directory `/home/rutger/download/qemu/i386'
gcc -static -Wl,-T,/home/rutger/download/qemu/i386-vl.ld -o qemu-fast vl.o osdep.o block.o monitor.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o gdbstub.o sdl.o libqemu.a -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext -laa -L/usr/lib -Wl,-rpath,/usr/lib -laa -lm -L/usr/X11R6/lib -lX11 -lncurses -lutil /usr/lib/libSDL.a(SDL_x11gl.o)(.text+0x90a): 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/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lasound
collect2: ld returned 1 exit status

What is the structural way to get qemu compiled on gentoo without hacks?

Is this going to be fixed in the CVS version?
Other option: Do I have to use some ebuild for qemu? Where can I find this ebuild?
Other option: How do I tell ALSA in Gentoo to generate a static lib? Other option: Can I disable ALSA during build of qemu?

Regards,
Rutger.

Signature · 3 lines
Rutger Nijlunsing ---------------------------- rutger ed tux tmfweb nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------
#5 lore raw

Re: [Qemu-devel] Another CVS compile error

Hi,

Quoted 6 lines · On Sun, 9 May 2004 [email protected] wrote:

gcc -static -Wl,-T,/home/rutger/download/qemu/i386-vl.ld -o qemu-fast vl.o osdep.o block.o monitor.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o gdbstub.o sdl.o libqemu.a -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm

(quoted diff) +0 -2
-ldl -lasound -L/usr/X11R6/lib -lX11 -lXext -laa -L/usr/lib
-Wl,-rpath,/usr/lib -laa -lm -L/usr/X11R6/lib -lX11 -lncurses -lutil
Quoted 6 lines

/usr/lib/libSDL.a(SDL_x11gl.o)(.text+0x90a): 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/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/b in/ld: cannot find -lasound

The problem here is not the dlopen. This can only be a problem if you want to run qemu on another machine without recompiling. The problem here is that "-lasound", the ALSA sound library is not found. Where is it on your machine?

Ciao,
Dscho

#6 lore raw

Re: [Qemu-devel] Another CVS compile error

You should remerge alsa-lib with static in use. See bug http://bugs.gentoo.org/show_bug.cgi?id=48233.

But you will probably still have a problem with qemu-fast in Gentoo because of some assertion errors in binutils. That was true 3 weeks ago and probably now too.

Grzegorz Kulewski

Quoted 31 lines · Johannes Schindelin

Hi,

Quoted 6 lines · On Sun, 9 May 2004 [email protected] wrote:

gcc -static -Wl,-T,/home/rutger/download/qemu/i386-vl.ld -o qemu-fast vl.o osdep.o block.o monitor.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o gdbstub.o sdl.o libqemu.a -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm

(quoted diff) +0 -2
-ldl -lasound -L/usr/X11R6/lib -lX11 -lXext -laa -L/usr/lib
-Wl,-rpath,/usr/lib -laa -lm -L/usr/X11R6/lib -lX11 -lncurses -lutil
Quoted 6 lines

/usr/lib/libSDL.a(SDL_x11gl.o)(.text+0x90a): 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/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/b in/ld: cannot find -lasound

The problem here is not the dlopen. This can only be a problem if you want to run qemu on another machine without recompiling. The problem here is that "-lasound", the ALSA sound library is not found. Where is it on your machine?

Ciao,
Dscho

_______________________________________________
Qemu-devel mailing list
[email protected]
http://mail.nongnu.org/mailman/listinfo/qemu-devel