From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OpKUJ-0002j0-5c for mharc-grub-devel@gnu.org; Sat, 28 Aug 2010 08:26:23 -0400 Received: from [140.186.70.92] (port=55400 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpKUG-0002iI-JP for grub-devel@gnu.org; Sat, 28 Aug 2010 08:26:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OpKUF-0004Y3-A8 for grub-devel@gnu.org; Sat, 28 Aug 2010 08:26:20 -0400 Received: from mailout11.t-online.de ([194.25.134.85]:46946) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpKUF-0004E0-5A for grub-devel@gnu.org; Sat, 28 Aug 2010 08:26:19 -0400 Received: from fwd05.aul.t-online.de (fwd05.aul.t-online.de ) by mailout11.t-online.de with smtp id 1OpKRE-00011M-MM; Sat, 28 Aug 2010 14:23:12 +0200 Received: from [192.168.2.100] (r1i6gEZrohg3XvMQbGMOHroxSeaWRsL8ERHCvXDvJavtGxdtLu0oisMdHZZ0VJtwIC@[79.224.113.220]) by fwd05.aul.t-online.de with esmtp id 1OpKR8-1xc12W0; Sat, 28 Aug 2010 14:23:06 +0200 Message-ID: <4C78FFAB.1000906@t-online.de> Date: Sat, 28 Aug 2010 14:23:07 +0200 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100504 SeaMonkey/2.0.5 MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: r1i6gEZrohg3XvMQbGMOHroxSeaWRsL8ERHCvXDvJavtGxdtLu0oisMdHZZ0VJtwIC X-TOI-MSGID: e2f777bf-a4b0-4243-b23f-b012109250af X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Build fails due to wrong placement of -llibrary options X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2010 12:26:21 -0000 I'm trying to fix the build on Cygwin after the recent move to the new autogen/automake build system. There is one Cygwin independent issue found so far: $ make [...] gcc [...] -lintl -o grub-bin2h.exe util/grub_bin2h-bin2h.o libgrub.a libgrub.a(...): undefined reference to `_libintl_gettext' [...] Workaround: $ make LIBS=-lintl [...] gcc [...] -lintl -o grub-bin2h.exe util/grub_bin2h-bin2h.o libgrub.a -lintl The placement of -llibrary options matter because the linker searches libraries and objects in the order specified. $ grep ^grub_bin2h_LD Makefile grub_bin2h_LDADD = libgrub.a grub_bin2h_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_PROGRAM) $(LIBINTL) $(LIBDEVMAPPER) The above should be: grub_bin2h_LDADD = libgrub.a $(LIBINTL) $(LIBDEVMAPPER) grub_bin2h_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_PROGRAM) Same for all other utils. This likely needs to be fixed in gentpl.py. -- Regards, Christian Franke