Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 2013 02:26:31 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        freebsd-stable@freebsd.org, freebsd-ports@freebsd.org
Subject:   Fail to build shells/zsh on 10.0-BETA1 due to conflict of 'bool' definition between rpcsvc/yp_prot.h and stdbool.h
Message-ID:  <20131020.022631.399663240.yasu@utahime.org>

next in thread | raw e-mail | index | archive | help
On 10.0-BETA1 amd64, build of shells/zsh fails as following:

===>  License ZSH accepted by the user
===>  Found saved configuration for zsh-5.0.2_1
===>   zsh-5.0.2_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by zsh-5.0.2_1 for building
===>  Extracting for zsh-5.0.2_1
=> SHA256 Checksum OK for zsh-5.0.2.tar.bz2.
=> SHA256 Checksum OK for zsh-5.0.2-doc.tar.bz2.
===>  Patching for zsh-5.0.2_1
===>  Applying extra patch /am/eastasia/usr0/freebsd/ports/ports/shells/zsh/files/extra-patch-bsdtar
===>  Applying FreeBSD patches for zsh-5.0.2_1
===>  Configuring for zsh-5.0.2_1

(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.
make[4]: stopped in /usr0/freebsd/ports/work/am/eastasia/usr0/freebsd/ports/ports/shells/zsh/work/zsh-5.0.2/Src
*** Error code 1

Stop.
make[3]: stopped in /usr0/freebsd/ports/work/am/eastasia/usr0/freebsd/ports/ports/shells/zsh/work/zsh-5.0.2/Src
*** Error code 1

Stop.
make[2]: stopped in /usr0/freebsd/ports/work/am/eastasia/usr0/freebsd/ports/ports/shells/zsh/work/zsh-5.0.2
*** Error code 1

Stop.
make[1]: stopped in /am/eastasia/usr0/freebsd/ports/ports/shells/zsh
*** Error code 1

Stop.
make: stopped in /am/eastasia/usr0/freebsd/ports/ports/shells/zsh

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?

---
Yasuhiro KIMURA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131020.022631.399663240.yasu>