From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZosMT-0002Uk-Mk for qemu-devel@nongnu.org; Wed, 21 Oct 2015 08:19:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZosMN-0006ap-H2 for qemu-devel@nongnu.org; Wed, 21 Oct 2015 08:19:21 -0400 Received: from mail-vk0-f45.google.com ([209.85.213.45]:35440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZosMN-0006aj-DM for qemu-devel@nongnu.org; Wed, 21 Oct 2015 08:19:15 -0400 Received: by vkfw189 with SMTP id w189so27505876vkf.2 for ; Wed, 21 Oct 2015 05:19:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Wed, 21 Oct 2015 13:18:55 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Statically Compiling including SDL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: sai pavan Cc: Peter Crosthwaite , alistai@xilinx.com, "qemu-devel@nongnu.org Developers" , Markus Armbruster On 21 October 2015 at 11:04, sai pavan wrote: > On Tue, Oct 20, 2015 at 11:52 PM, Peter Maydell > wrote: >> On 20 October 2015 at 18:50, sai pavan wrote: >>> I also tried manually compiling sdl libraries and installing them. >>> Then making a static build, but even that did not help much. The >>> config.log show below error.. >>> >>> cc -m32 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE >>> -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings >>> -Wmissing-prototypes -fno-strict-aliasing -fno-common >>> -DM25P80_ERR_DEBUG=2 -Wendif-labels -Wmissing-include-dirs >>> -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k >>> -Winit-self -Wignored-qualifiers -Wold-style-declaration >>> -Wold-style-definition -Wtype-limits -fstack-protector-strong >>> -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -o >>> config-temp/qemu-conf.exe config-temp/qemu-conf.c -m32 -static -g >>> /tmp/ccYwbqPp.o: In function `main': >>> /home/sai/build/config-temp/qemu-conf.c:3: undefined reference to `SDL_Init' >>> collect2: error: ld returned 1 exit status >> >> This link line isn't even trying to link against the SDL library, >> which suggests that your sdl-config is broken. What does >> 'sdl-config --static-libs' say? > here is the output of sdl-config --static-libs > > -L/usr/lib/i386-linux-gnu -lSDL -lpthread -lm -ldl -lasound -lm -ldl > -lpthread -lpulse-simple -lpulse -lX11 -lXext > -L/usr/lib/i386-linux-gnu -lcaca -lpthread And is there a static version (a .a file) for all those libraries in /usr/lib/i386-linux-gnu/ ? If sdl-config is printing those libraries, I'm confused about why they're not in the command line we're using for the config tests. You may have to start debugging configure by adding suitable 'echo' debug printing in it :-( thanks -- PMM