Received: from eggs.gnu.org ([2001:4830:134:3::10]:40969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkYPi-0003LN-DK for qemu-devel@nongnu.org; Wed, 14 May 2014 08:36:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkYPZ-0006Mu-DM for qemu-devel@nongnu.org; Wed, 14 May 2014 08:36:02 -0400 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:35262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkYPZ-0006Md-6S for qemu-devel@nongnu.org; Wed, 14 May 2014 08:35:53 -0400 Received: by mail-wi0-f174.google.com with SMTP id r20so7922027wiv.13 for ; Wed, 14 May 2014 05:35:52 -0700 (PDT) Date: Wed, 14 May 2014 14:35:48 +0200 From: Stefan Hajnoczi Message-ID: <20140514123548.GB16683@stefanha-thinkpad.redhat.com> References: <1399662217-31148-1-git-send-email-stefanha@redhat.com> <1399662217-31148-4-git-send-email-stefanha@redhat.com> <20140513161849.08628e6c.cornelia.huck@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PULL 03/17] qemu-img: sort block formats in help message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mike Day Cc: Cornelia Huck , Peter Maydell , Jeff Cody , "qemu-devel@nongnu.org" , Stefan Hajnoczi On Tue, May 13, 2014 at 11:40:47AM -0400, Mike Day wrote: > On Tue, May 13, 2014 at 10:18 AM, Cornelia Huck > wrote: > > > > qemu-img.o: In function `add_format_to_seq': > > /home/cohuck/git/qemu/qemu-img.c:73: undefined reference to `g_sequence_lookup' > > collect2: ld returned 1 exit status > > > > g_sequence_lookup has been added with glib 2.28, and this box has > > 2.22.5. configure looks for glib >= 2.12 (2.20 for mingw). > > g_sequence_lookup is there because I was getting duplicate formats in > the format list, as in "vfat vfat vfat qcow." That was a temporary > situation. the lookup serves to guarantee each format is unique in the > list. It may not be needed. Jeff Cody recently wanted to eliminate duplicate entries in the list. I thought part of your intention was to address the duplicates with your patch. We can back out the sequence API if it's not supported on older glib but it would be nice to eliminate duplicates later, too. Stefan