qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] CVS Compile error
@ 2004-05-09 14:33 Iain McFarlane
  2004-05-09 15:11 ` [Qemu-devel] Next take at RFB Johannes Schindelin
  2004-05-09 16:19 ` [Qemu-devel] Another CVS compile error Grzegorz Kulewski
  0 siblings, 2 replies; 7+ messages in thread
From: Iain McFarlane @ 2004-05-09 14:33 UTC (permalink / raw)
  To: qemu devel Mailing list

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Qemu-devel] Next take at RFB
  2004-05-09 14:33 [Qemu-devel] CVS Compile error Iain McFarlane
@ 2004-05-09 15:11 ` Johannes Schindelin
  2004-05-09 16:19 ` [Qemu-devel] Another CVS compile error Grzegorz Kulewski
  1 sibling, 0 replies; 7+ messages in thread
From: Johannes Schindelin @ 2004-05-09 15:11 UTC (permalink / raw)
  To: qemu devel Mailing list

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Qemu-devel] Another CVS compile error
  2004-05-09 14:33 [Qemu-devel] CVS Compile error Iain McFarlane
  2004-05-09 15:11 ` [Qemu-devel] Next take at RFB Johannes Schindelin
@ 2004-05-09 16:19 ` Grzegorz Kulewski
  2004-05-09 16:55   ` David Holm <dholm@gentoo.org>
  2004-05-09 17:03   ` rutger
  1 sibling, 2 replies; 7+ messages in thread
From: Grzegorz Kulewski @ 2004-05-09 16:19 UTC (permalink / raw)
  To: Fabrice Bellard; +Cc: qemu devel Mailing list

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Another CVS compile error
  2004-05-09 16:19 ` [Qemu-devel] Another CVS compile error Grzegorz Kulewski
@ 2004-05-09 16:55   ` David Holm <dholm@gentoo.org>
  2004-05-09 17:03   ` rutger
  1 sibling, 0 replies; 7+ messages in thread
From: David Holm <dholm@gentoo.org> @ 2004-05-09 16:55 UTC (permalink / raw)
  To: qemu-devel

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

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

//David Holm

On Sunday 09 May 2004 18.19, Grzegorz Kulewski wrote:
> 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
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> 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-----

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Another CVS compile error
  2004-05-09 16:19 ` [Qemu-devel] Another CVS compile error Grzegorz Kulewski
  2004-05-09 16:55   ` David Holm <dholm@gentoo.org>
@ 2004-05-09 17:03   ` rutger
  2004-05-09 18:04     ` Johannes Schindelin
  1 sibling, 1 reply; 7+ messages in thread
From: rutger @ 2004-05-09 17:03 UTC (permalink / raw)
  To: qemu-devel

On Sun, May 09, 2004 at 06:19:28PM +0200, Grzegorz Kulewski wrote:
> 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?

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.

-- 
Rutger Nijlunsing ---------------------------- rutger ed tux tmfweb nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Another CVS compile error
  2004-05-09 17:03   ` rutger
@ 2004-05-09 18:04     ` Johannes Schindelin
  2004-05-09 18:19       ` Grzegorz Kulewski
  0 siblings, 1 reply; 7+ messages in thread
From: Johannes Schindelin @ 2004-05-09 18:04 UTC (permalink / raw)
  To: qemu-devel, qemu-devel

Hi,

On Sun, 9 May 2004 rutger@nospam.com 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
> -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/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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Another CVS compile error
  2004-05-09 18:04     ` Johannes Schindelin
@ 2004-05-09 18:19       ` Grzegorz Kulewski
  0 siblings, 0 replies; 7+ messages in thread
From: Grzegorz Kulewski @ 2004-05-09 18:19 UTC (permalink / raw)
  To: qemu-devel

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


On Sun, 9 May 2004, Johannes Schindelin wrote:

> Hi,
> 
> On Sun, 9 May 2004 rutger@nospam.com 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
> > -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/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
> Qemu-devel@nongnu.org
> http://mail.nongnu.org/mailman/listinfo/qemu-devel
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-05-09 18:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-09 14:33 [Qemu-devel] CVS Compile error Iain McFarlane
2004-05-09 15:11 ` [Qemu-devel] Next take at RFB Johannes Schindelin
2004-05-09 16:19 ` [Qemu-devel] Another CVS compile error Grzegorz Kulewski
2004-05-09 16:55   ` David Holm <dholm@gentoo.org>
2004-05-09 17:03   ` rutger
2004-05-09 18:04     ` Johannes Schindelin
2004-05-09 18:19       ` Grzegorz Kulewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).