Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JF8JZ-0005di-Iv for qemu-devel@nongnu.org; Wed, 16 Jan 2008 08:28:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JF8JW-0005ag-ON for qemu-devel@nongnu.org; Wed, 16 Jan 2008 08:28:21 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JF8JW-0005aH-FY for qemu-devel@nongnu.org; Wed, 16 Jan 2008 08:28:18 -0500 Received: from wx-out-0506.google.com ([66.249.82.236]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JF8JW-0003rn-8K for qemu-devel@nongnu.org; Wed, 16 Jan 2008 08:28:18 -0500 Received: by wx-out-0506.google.com with SMTP id h31so76784wxd.4 for ; Wed, 16 Jan 2008 05:28:17 -0800 (PST) Message-ID: <7f7951300801160528tb93dc64s3a1443bd09ba687f@mail.gmail.com> Date: Wed, 16 Jan 2008 18:58:16 +0530 From: "Salil Bijur" Subject: Re: [Qemu-devel] QEMU static build In-Reply-To: <478E0497.6060108@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7f7951300801160220i6852c881of112cfd259d67476@mail.gmail.com> <7f7951300801160348h4d07d8et2984e6940ebef96c@mail.gmail.com> <478DF896.3040208@linux.vnet.ibm.com> <7f7951300801160459m734eff80n32d902a0e1608872@mail.gmail.com> <478E0497.6060108@linux.vnet.ibm.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Jan 16, 2008 6:50 PM, Christian Ehrhardt wrote: > > Salil Bijur wrote: > > On Jan 16, 2008 5:59 PM, Christian Ehrhardt wrote: > >> Salil Bijur wrote: > >>> On Jan 16, 2008 4:48 PM, Mulyadi Santosa wrote: > >>>> Hi > >>>> > >>>> > >>>> On Jan 16, 2008 5:20 PM, Salil Bijur wrote: > >>>>> Hello, > >>>>> > >>>>> I've been trying to build QEMU statically by first configuring it > >>>>> using the --static option. The compiling gives me the same linker > >>>>> errors as mentioned here: > >>>>> http://www.mail-archive.com/qemu-devel@nongnu.org/msg10721.html > >>>>> > >>>>> I know this has been asked before but it hasn't been followed up. Any > >>>>> ideas on how to fix this? > >>>> What do you want to do? to debug it? if yes, maybe you just want the > >>>> unstripped binary? dig qemu-devel and qemu-forum.... or at least try > >>>> the binary in target-i386..i believe it's unstripped. Can check it > >>>> here, because my box use gcc 4.x > >>>> > >>> I'm trying to build qemu-system-arm so my configure command is > >>> "./configure --target-list=arm-softmmu --static". I need a static > >>> build to overcome dynamic library dependency issues. Doing a 'make' > >>> with the above configure command breaks. I haven't found a solution on > >>> the forums. > >>> > >>> Thanks, > >>> Salil > >> I sometimes use a static build for the same reasons on ppc. > >> I did not have the same issue but I usually set LDFLAGS="$LDFLAGS -pthread" before doing configure&make. > >> Maybe it's worth a try if this helps your linker to find the pthread functions. > >> > > > > Thanks - I did 'export LDFLAGS="$LDFLAGS -pthread"' before configure > > and it compiles further. > > > > But there are further linker errors with respect to libasound (for > > ALSA) and libSDL. This can be solved by adding -ldl, -lartsc, etc. for > > every dependency of these libs but would be very tedious, especially > > for libSDL. Any better solution? > > > > The question is if you really need SDL for your environment - if not you can just add "--disable-sdl" and do the same with everything else e.g. alsa that is missing but not really needed. > I do need both alsa and SDL. Currently I'm getting the libraries from apt-get. Is it a good idea to rebuild them from sources?