From patchwork Mon Aug 31 21:50:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Agate X-Patchwork-Id: 512603 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 0C21B14012C for ; Tue, 1 Sep 2015 07:50:56 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 366B295FA0; Mon, 31 Aug 2015 21:50:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v9pC2MxrVoYb; Mon, 31 Aug 2015 21:50:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C884D95DA5; Mon, 31 Aug 2015 21:50:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 049DA1C1F51 for ; Mon, 31 Aug 2015 21:50:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 009F6917C2 for ; Mon, 31 Aug 2015 21:50:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ubak-1hcYIk0 for ; Mon, 31 Aug 2015 21:50:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp-out-6.talktalk.net (smtp-out-6.talktalk.net [62.24.128.251]) by whitealder.osuosl.org (Postfix) with ESMTP id 16D94917BE for ; Mon, 31 Aug 2015 21:50:50 +0000 (UTC) Received: from i7laptop.localdomain ([62.64.226.251]) by c4 with smtp.talktalk.net id BZqq1r0025S4PZJ01Zqqg0; Mon, 31 Aug 2015 22:50:50 +0100 X-Originating-IP: [62.64.226.251] X-Spam: 0 X-Authority: v=2.1 cv=BZIlqeZ2 c=1 sm=1 tr=0 a=U85VMj2DK/r5rMSadlhfIQ==:117 a=U85VMj2DK/r5rMSadlhfIQ==:17 a=nN7BH9HXAAAA:8 a=TSbVqHtbAAAA:8 a=2odHAeIAgNFL5sWheyEA:9 From: Stephen Agate To: buildroot@busybox.net Date: Mon, 31 Aug 2015 22:50:47 +0100 Message-Id: <1441057847-18193-1-git-send-email-stephen.agate@talktalk.net> X-Mailer: git-send-email 2.5.1 Cc: Stephen Agate Subject: [Buildroot] [PATCH 1/1] host-localdef fails under gcc5 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Building host-localdef fails under gcc5.1 reporting multiple definitions and undefined references: argp-help.o: In function `argp_fmtstream_write': argp-help.c:(.text+0x1dc0): multiple definition of `argp_fmtstream_write' argp-fmtstream.o:argp-fmtstream.c:(.text+0x750): first defined here argp-help.o: In function `argp_fmtstream_puts': argp-help.c:(.text+0x1e10): multiple definition of `argp_fmtstream_puts' argp-fmtstream.o:argp-fmtstream.c:(.text+0x810): first defined here argp-help.o: In function `argp_fmtstream_putc': argp-help.c:(.text+0x1e80): multiple definition of `argp_fmtstream_putc' argp-fmtstream.o:argp-fmtstream.c:(.text+0x7b0): first defined here argp-help.o: In function `argp_fmtstream_set_lmargin': argp-help.c:(.text+0x1ed0): multiple definition of `argp_fmtstream_set_lmargin' argp-fmtstream.o:argp-fmtstream.c:(.text+0x590): first defined here argp-help.o: In function `argp_fmtstream_set_rmargin': argp-help.c:(.text+0x1f00): multiple definition of `argp_fmtstream_set_rmargin' argp-fmtstream.o:argp-fmtstream.c:(.text+0x5c0): first defined here argp-help.o: In function `argp_fmtstream_set_wmargin': argp-help.c:(.text+0x1f30): multiple definition of `argp_fmtstream_set_wmargin' argp-fmtstream.o:argp-fmtstream.c:(.text+0x5f0): first defined here argp-help.o: In function `argp_fmtstream_point': argp-help.c:(.text+0x1f60): multiple definition of `argp_fmtstream_point' argp-fmtstream.o:argp-fmtstream.c:(.text+0x620): first defined here charmap.o: In function `cmlr_open.constprop.2': charmap.c:(.text+0x230a): undefined reference to `charmap_hash' charmap.o: In function `charmap_read': charmap.c:(.text+0x2397): undefined reference to `charmap_hash' locfile.o: In function `locfile_read': locfile.c:(.text+0x2e4): undefined reference to `locfile_hash' locfile.c:(.text+0x8f4): undefined reference to `locfile_hash' locfile.c:(.text+0x9b3): undefined reference to `locfile_hash' locfile.c:(.text+0xa36): undefined reference to `locfile_hash' collect2: error: ld returned 1 exit status Makefile:58: recipe for target 'localedef' failed Ref: http://permalink.gmane.org/gmane.comp.embedded.ptxdist.devel/12950 Signed-off-by: Stephen Agate Reviewed-by: Romain Naour Tested-by: Romain Naour --- package/localedef/localedef.mk | 2 ++ 1 file changed, 2 insertions(+) -- 2.5.1 diff --git a/package/localedef/localedef.mk b/package/localedef/localedef.mk index 4762e64..1fe431a 100644 --- a/package/localedef/localedef.mk +++ b/package/localedef/localedef.mk @@ -12,6 +12,8 @@ HOST_LOCALEDEF_CONF_OPTS += \ --prefix=/usr \ --with-glibc=./eglibc +HOST_LOCALEDEF_CONF_ENV = CFLAGS="$(HOST_CFLAGS) -fgnu89-inline" + # The makefile does not implement an install target define HOST_LOCALEDEF_INSTALL_CMDS $(INSTALL) -D -m 0755 $(@D)/localedef $(HOST_DIR)/usr/bin/localedef