From owner-freebsd-stable@FreeBSD.ORG Sun Oct 20 09:15:55 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B3587B09; Sun, 20 Oct 2013 09:15:55 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from gate.utahime.jp (ipq210.utahime.jp [183.180.29.210]) by mx1.freebsd.org (Postfix) with ESMTP id 7F4B32E34; Sun, 20 Oct 2013 09:15:55 +0000 (UTC) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) by gate.utahime.jp (Postfix) with ESMTP id 4B74561F9D; Sun, 20 Oct 2013 18:15:54 +0900 (JST) Received: from eastasia.home.utahime.org (localhost [127.0.0.1]) by localhost-backdoor.home.utahime.org (Postfix) with ESMTP id 1CBF24E630; Sun, 20 Oct 2013 18:15:54 +0900 (JST) Received: from localhost (rolling-vm-freebsd2.home.utahime.org [192.168.174.54]) by eastasia.home.utahime.org (Postfix) with ESMTP id EB7844E62F; Sun, 20 Oct 2013 18:15:53 +0900 (JST) Date: Sun, 20 Oct 2013 18:15:11 +0900 (JST) Message-Id: <20131020.181511.1975126245725344090.yasu@utahime.org> To: freebsd-stable@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Fail to build shells/zsh on 10.0-BETA1 due to conflict of 'bool' definition between rpcsvc/yp_prot.h and stdbool.h From: Yasuhiro KIMURA In-Reply-To: <20131020.022631.399663240.yasu@utahime.org> References: <20131020.022631.399663240.yasu@utahime.org> X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sun_Oct_20_18_15_11_2013_849)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Oct 2013 09:15:55 -0000 ----Next_Part(Sun_Oct_20_18_15_11_2013_849)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Yasuhiro KIMURA Subject: Fail to build shells/zsh on 10.0-BETA1 due to conflict of 'bool' definition between rpcsvc/yp_prot.h and stdbool.h Date: Sun, 20 Oct 2013 02:26:31 +0900 (JST) > On 10.0-BETA1 amd64, build of shells/zsh fails as following: > (snip) > cc -c -I. -I../Src -I../Src -I../Src/Zle -I. -I/usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -o hashnameddir.o hashnameddir.c > In file included from hashnameddir.c:52: > /usr/include/rpcsvc/yp_prot.h:71:15: error: cannot combine with previous 'type-name' declaration specifier > typedef u_int bool; > ^ > /usr/include/stdbool.h:37:14: note: expanded from macro 'bool' > #define bool _Bool > ^ > 1 error generated. > *** Error code 1 > > Stop. > > Accoding to the error message, there seems to be conflict about > definition of 'bool' between /usr/include/rpcsvc/yp_prot.h and > /usr/include/stdbool.h. > > Then how to fix this issue? Applying attached patch to port tree is tentative workaround, but I blieve this issue should be fixed by base system. Removing line 70-73 of yp_prot.h is simple idea but I am not certain it is really solution. --- Yasuhiro KIMURA ----Next_Part(Sun_Oct_20_18_15_11_2013_849)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=patch-zsh Index: shells/zsh/Makefile =================================================================== --- shells/zsh/Makefile (revision 330965) +++ shells/zsh/Makefile (working copy) @@ -25,7 +25,7 @@ USES= iconv ncurses GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include +CPPFLAGS+= -I${LOCALBASE}/include -DBOOL_DEFINED LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS= --with-term-lib="ncursesw ncurses" --with-tcsetpgrp \ --enable-function-subdirs ----Next_Part(Sun_Oct_20_18_15_11_2013_849)----