qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Problem in compiling qemu on Gentoo unstable
@ 2004-03-23  0:42 Luca Ferroni
  2004-03-23  1:17 ` Kyle Hayes
  2004-03-23 11:57 ` Hetz Ben Hamo
  0 siblings, 2 replies; 5+ messages in thread
From: Luca Ferroni @ 2004-03-23  0:42 UTC (permalink / raw)
  To: qemu-devel

Hi all,
I have an up to date x86 Gentoo and I can't compile qemu-fast
I get this warning followed by an error:

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

I think this may depend on the way libsdl was compiled, in fact if I compile this lib
without alsa support, I get the error in the flag -lggi

On my system I have 

libsdl 1.2.7
alsa-lib 1.0.3b-r1
libggi 2.0.1-r1
libgii 0.8.1

I am using qemu cvs snapshot

Thanks

-- 
----------------------------------------
Non ci toglieranno mai....la LIBERTA'!!!
Luca Ferroni
ICQ #317977679
www.cs.unibo.it/~fferroni/
----------------------------------------

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

* Re: [Qemu-devel] Problem in compiling qemu on Gentoo unstable
  2004-03-23  0:42 [Qemu-devel] Problem in compiling qemu on Gentoo unstable Luca Ferroni
@ 2004-03-23  1:17 ` Kyle Hayes
  2004-03-23  8:52   ` vaise
  2004-03-23 11:57 ` Hetz Ben Hamo
  1 sibling, 1 reply; 5+ messages in thread
From: Kyle Hayes @ 2004-03-23  1:17 UTC (permalink / raw)
  To: qemu-devel

On Monday 22 March 2004 16:42, Luca Ferroni wrote:
> Hi all,
> I have an up to date x86 Gentoo and I can't compile qemu-fast
> I get this warning followed by an error:
[snip]
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-
>gnu/bin/ld: cannot find -lasound
>
> I think this may depend on the way libsdl was compiled, in fact if
> I compile this lib without alsa support, I get the error in the
> flag -lggi
>
> On my system I have
>
> libsdl 1.2.7
> alsa-lib 1.0.3b-r1
> libggi 2.0.1-r1
> libgii 0.8.1
>
> I am using qemu cvs snapshot

On my gentoo box I've been getting this whenever I want to compile the 
static targets of QEMU.  There is no libasound.a in /usr/lib.  The 
alsa package does not make a static version of it.  I've emailed the 
ebuild maintainer but haven't received anything for two weeks.

So, if you don't make the static targets, I think things work.  I'm 
not sure why some ebuilds do not make the static versions of the 
libraries too.

I see no workaround for this until the ebuilds are fixed.

Best,
Kyle

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

* Re: [Qemu-devel] Problem in compiling qemu on Gentoo unstable
  2004-03-23  1:17 ` Kyle Hayes
@ 2004-03-23  8:52   ` vaise
  2004-03-23 13:03     ` Gabriel Ebner
  0 siblings, 1 reply; 5+ messages in thread
From: vaise @ 2004-03-23  8:52 UTC (permalink / raw)
  To: kyle, qemu-devel

> Hi all,
> I have an up to date x86 Gentoo and I can't compile qemu-fast
> I get this warning followed by an error:
>
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-
>gnu/bin/ld: cannot find -lasound

Hey, I had the same error, and now it's ok for me. I tried to install a lot of 
librarie, but it works when I installed the library : "libnas2".
I hope it helps...

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

* Re: [Qemu-devel] Problem in compiling qemu on Gentoo unstable
  2004-03-23  0:42 [Qemu-devel] Problem in compiling qemu on Gentoo unstable Luca Ferroni
  2004-03-23  1:17 ` Kyle Hayes
@ 2004-03-23 11:57 ` Hetz Ben Hamo
  1 sibling, 0 replies; 5+ messages in thread
From: Hetz Ben Hamo @ 2004-03-23 11:57 UTC (permalink / raw)
  To: qemu-devel; +Cc: Luca Ferroni

On Tuesday 23 March 2004 02:42, Luca Ferroni wrote:
> Hi all,
> I have an up to date x86 Gentoo and I can't compile qemu-fast
> I get this warning followed by an error:
>
> /usr/lib/libSDL.a(SDL_loadso.o)(.text+0x1b): 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/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/
>ld: cannot find -lasound

Install the alsa-lib-devel package and retry ;)

Hetz

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

* Re: [Qemu-devel] Problem in compiling qemu on Gentoo unstable
  2004-03-23  8:52   ` vaise
@ 2004-03-23 13:03     ` Gabriel Ebner
  0 siblings, 0 replies; 5+ messages in thread
From: Gabriel Ebner @ 2004-03-23 13:03 UTC (permalink / raw)
  To: qemu-devel

Hello,

Am Dienstag, 23. März 2004 09:52 schrieb vaise@votreservice.com:
> Hey, I had the same error, and now it's ok for me. I tried to install a lot
> of librarie, but it works when I installed the library : "libnas2".
> I hope it helps...

You got qemu-fast compiling?
I usually get the following when trying to build qemu-fast on my gentoo (also 
x86) box:

for d in i386-user i386 i386-softmmu arm-user sparc-user ppc-user; do \
make -C $d all || exit 1 ; \
        done
make[1]: Entering directory `/home/gebner/data/tmp/qemu/i386-user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/gebner/data/tmp/qemu/i386-user'
make[1]: Entering directory `/home/gebner/data/tmp/qemu/i386'
gcc  -static -Wl,-T,/home/gebner/tmp/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 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 -lslang -lutil
/usr/lib/libSDL.a(SDL_x11gl.lo)(.text+0x8d6): 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+0xfe0): In function 
`_X11TransSocketINETConnect':
: warning: Using 'getaddrinfo' 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.2/../../../../i686-pc-linux-gnu/bin/ld: 
BFD 2.14.90.0.7 20031029 assertion fail elf.c:3460
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: 
BFD 2.14.90.0.7 20031029 assertion fail elf.c:3460
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: 
BFD 2.14.90.0.7 20031029 assertion fail elf.c:3460
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: 
BFD 2.14.90.0.7 20031029 assertion fail elf.c:3460
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: 
qemu-fast: Not enough room for program headers (allocated 5, need 7)
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: 
final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Error 1
make[1]: Leaving directory `/home/gebner/data/tmp/qemu/i386'
make: *** [all] Error 1

	Gabriel.

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

end of thread, other threads:[~2004-03-23 13:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-23  0:42 [Qemu-devel] Problem in compiling qemu on Gentoo unstable Luca Ferroni
2004-03-23  1:17 ` Kyle Hayes
2004-03-23  8:52   ` vaise
2004-03-23 13:03     ` Gabriel Ebner
2004-03-23 11:57 ` Hetz Ben Hamo

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).