Received: from eggs.gnu.org ([140.186.70.92]:60647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTYOF-0001Se-5z for qemu-devel@nongnu.org; Thu, 24 Nov 2011 07:27:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTYO8-0001Al-Mc for qemu-devel@nongnu.org; Thu, 24 Nov 2011 07:26:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTYO8-0001Ad-Fa for qemu-devel@nongnu.org; Thu, 24 Nov 2011 07:26:48 -0500 Date: Thu, 24 Nov 2011 14:26:39 +0200 From: Alon Levy Message-ID: <20111124122639.GD6646@garlic.tlv.redhat.com> References: <4ECD34BD.4010803@redhat.com> <4ECD3C93.7010307@googlemail.com> <4ECD3E9D.4090001@googlemail.com> <4ECD432A.4000008@googlemail.com> <4ECD47DD.90701@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] cannot build qemu with "--static" configure option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Mr Dash Four , qemu-devel@nongnu.org On Wed, Nov 23, 2011 at 07:33:48PM +0000, Peter Maydell wrote: > On 23 November 2011 19:22, Mr Dash Four w= rote: > > > >> OK. We don't explicitly try to link with ssl3 ourselves, so this onl= y > >> ever ends up in LDFLAGS because of some other library that has claim= ed > >> it needs it as a dependency via pkg-config. Try adding > >> =A0--disable-sdl --disable-vnc --disable-bluez --disable-check-utest= s > >> --disable-smartcard --disable-usb-redir Just FYI, It's the --disable-smartcard that fixed this: smartcard requires nss, and: $ pkg-config --libs nss -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl =20 > >> > >> to your configure argument. That turns off a lot of stuff that's irr= elevant > >> for linux-user and which might be pulling in this library. If that w= orks > >> then you can identify which particular switch is needed by process o= f > >> elimination. > > Different error this time: >=20 > Good, we've got rid of the ssl3 link attempt. >=20 > > /usr/bin/ld: cannot find -lgthread-2.0 >=20 > Do you have a static libgthread-2.0? (ie /usr/lib/libgthread-2.0.a or > equivalent). If not you need to install it. Similarly you'll need > a static libglib-2.0. >=20 > -- PMM >=20