qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] linking problem
@ 2004-08-28 17:24 Lonnie Cumberland
  2004-08-28 20:24 ` Joe Menola
  0 siblings, 1 reply; 3+ messages in thread
From: Lonnie Cumberland @ 2004-08-28 17:24 UTC (permalink / raw)
  To: qemu-devel

Hello All,

I am running Mandrake 10.0 and am trying to compile the qemu-0.6.0 
version but keep getting this error:


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  -static -Wl,-T,/home/lonnie/QEMU/qemu-0.6.0/i386-vl.ld  -o 
qemu-fast vl.o osdep.o block.o monitor.o pci.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 cirrus_vga.o gdbstub.o sdl.o slirp/cksum.o slirp/if.o 
slirp/ip_icmp.o slirp/ip_input.o slirp/ip_output.o slirp/slirp.o 
slirp/mbuf.o slirp/misc.o slirp/sbuf.o slirp/socket.o slirp/tcp_input.o 
slirp/tcp_output.o slirp/tcp_subr.o slirp/tcp_timer.o slirp/udp.o 
slirp/bootp.o slirp/debug.o libqemu.a  -lm -L/usr/lib -lSDL -lpthread 
-lm -ldl -lasound -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext -lutil
/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Error 1
make[1]: Leaving directory `/home/lonnie/QEMU/qemu-0.6.0/i386'
make: *** [all] Error 1

what is the "-lm" library?

thanks,
Lonnie

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

* Re: [Qemu-devel] linking problem
  2004-08-28 17:24 [Qemu-devel] linking problem Lonnie Cumberland
@ 2004-08-28 20:24 ` Joe Menola
  2004-08-28 20:29   ` Paul Brook
  0 siblings, 1 reply; 3+ messages in thread
From: Joe Menola @ 2004-08-28 20:24 UTC (permalink / raw)
  To: qemu-devel

On Sat August 28 2004 12:24 pm, Lonnie Cumberland wrote:
> Hello All,
>
> I am running Mandrake 10.0 and am trying to compile the qemu-0.6.0
> version but keep getting this error:
>
>
> 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  -static -Wl,-T,/home/lonnie/QEMU/qemu-0.6.0/i386-vl.ld  -o
> qemu-fast vl.o osdep.o block.o monitor.o pci.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 cirrus_vga.o gdbstub.o sdl.o slirp/cksum.o slirp/if.o
> slirp/ip_icmp.o slirp/ip_input.o slirp/ip_output.o slirp/slirp.o
> slirp/mbuf.o slirp/misc.o slirp/sbuf.o slirp/socket.o slirp/tcp_input.o
> slirp/tcp_output.o slirp/tcp_subr.o slirp/tcp_timer.o slirp/udp.o
> slirp/bootp.o slirp/debug.o libqemu.a  -lm -L/usr/lib -lSDL -lpthread
> -lm -ldl -lasound -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext -lutil
> /usr/bin/ld: cannot find -lm
> collect2: ld returned 1 exit status
> make[1]: *** [qemu-fast] Error 1
> make[1]: Leaving directory `/home/lonnie/QEMU/qemu-0.6.0/i386'
> make: *** [all] Error 1
>
> what is the "-lm" library?
>

I forget exactly what -lm is, but it's in one of theses packages..

glibc-static-devel
libSDL1.2-devel
libalsa2-static-devel
libnas2-static-devel
libxorg-x11-static-devel
tetex-texi2html.

You'll need them all to compile Qemu.

-jm

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

* Re: [Qemu-devel] linking problem
  2004-08-28 20:24 ` Joe Menola
@ 2004-08-28 20:29   ` Paul Brook
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Brook @ 2004-08-28 20:29 UTC (permalink / raw)
  To: qemu-devel

On Saturday 28 August 2004 21:24, Joe Menola wrote:
> On Sat August 28 2004 12:24 pm, Lonnie Cumberland wrote:
> > Hello All,
> >
> > I am running Mandrake 10.0 and am trying to compile the qemu-0.6.0
> > version but keep getting this error:
> >
> >
> > 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  -static -Wl,-T,/home/lonnie/QEMU/qemu-0.6.0/i386-vl.ld  -o
> > qemu-fast vl.o osdep.o block.o monitor.o pci.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 cirrus_vga.o gdbstub.o sdl.o slirp/cksum.o slirp/if.o
> > slirp/ip_icmp.o slirp/ip_input.o slirp/ip_output.o slirp/slirp.o
> > slirp/mbuf.o slirp/misc.o slirp/sbuf.o slirp/socket.o slirp/tcp_input.o
> > slirp/tcp_output.o slirp/tcp_subr.o slirp/tcp_timer.o slirp/udp.o
> > slirp/bootp.o slirp/debug.o libqemu.a  -lm -L/usr/lib -lSDL -lpthread
> > -lm -ldl -lasound -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext -lutil
> > /usr/bin/ld: cannot find -lm
> > collect2: ld returned 1 exit status
> > make[1]: *** [qemu-fast] Error 1
> > make[1]: Leaving directory `/home/lonnie/QEMU/qemu-0.6.0/i386'
> > make: *** [all] Error 1
> >
> > what is the "-lm" library?

-lfoo means link with libfoo.

libm is the C math library.

> I forget exactly what -lm is, but it's in one of theses packages..
>
> glibc-static-devel

Probably this one.

The exact package names vary, but make sure you have the glibc development 
packages installed.

Paul

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

end of thread, other threads:[~2004-08-28 20:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-28 17:24 [Qemu-devel] linking problem Lonnie Cumberland
2004-08-28 20:24 ` Joe Menola
2004-08-28 20:29   ` Paul Brook

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