From owner-svn-ports-head@freebsd.org Mon Sep 4 23:18:42 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13A77E0169E; Mon, 4 Sep 2017 23:18:42 +0000 (UTC) (envelope-from leres@ee.lbl.gov) Received: from fun.ee.lbl.gov (fun.ee.lbl.gov [IPv6:2620:83:8000:102::ca]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "fun.ee.lbl.gov", Issuer "ACS 3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EF37865BBB; Mon, 4 Sep 2017 23:18:41 +0000 (UTC) (envelope-from leres@ee.lbl.gov) Received: from ice.ee.lbl.gov (ice.ee.lbl.gov [IPv6:2620:83:8000:102:0:0:0:d5]) (authenticated bits=0) by fun.ee.lbl.gov (8.15.2/8.15.2) with ESMTPSA id v84NIenw096148 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 4 Sep 2017 16:18:42 -0700 (PDT) (envelope-from leres@ee.lbl.gov) Subject: Re: svn commit: r449138 - in head: cad/freecad devel/libkolab graphics/qgis security/shibboleth2-sp sysutils/passwordsafe textproc/xerces-c3 To: Ian Lepore , Antoine Brodin , Sunpoet Po-Chuan Hsieh References: <201709021423.v82ENcsI036241@repo.freebsd.org> <1504560120.1337.3.camel@freebsd.org> Cc: "svn-ports-head@freebsd.org" , "svn-ports-all@freebsd.org" , "ports-committers@freebsd.org" From: Craig Leres Message-ID: <24a21e8c-21eb-9241-d6b3-3259cd554ca4@ee.lbl.gov> Date: Mon, 4 Sep 2017 16:18:39 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1504560120.1337.3.camel@freebsd.org> Content-Type: multipart/mixed; boundary="------------F5E97000165659175E08C2B9" Content-Language: en-US X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Sep 2017 23:18:42 -0000 This is a multi-part message in MIME format. --------------F5E97000165659175E08C2B9 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 09/04/17 14:22, Ian Lepore wrote: > I ran into this at $work, I think when we first switched from gcc to > clang for our app builds.  I worked around it by adding > > CFLAGS+= -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS > > Basically, defining those symbols before #including stdint.h is what > made SIZE_TYPE (and a few others) visible to a c++ compile. Good suggestion. Defining __STDC_LIMIT_MACROS before the first include in src/xercesc/util/Base64.cpp allows it to compile. I'm not sure if this is helpful but attached is a patch to the port Makefile that adds -D__STDC_LIMIT_MACROS to DEFS in src/Makefile.in which seems to do the trick. Craig --------------F5E97000165659175E08C2B9 Content-Type: text/plain; charset=UTF-8; name="patch.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch.txt" SW5kZXg6IHRleHRwcm9jL3hlcmNlcy1jMy9NYWtlZmlsZQo9PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSB0 ZXh0cHJvYy94ZXJjZXMtYzMvTWFrZWZpbGUJKHJldmlzaW9uIDQ0OTI1MikKKysrIHRleHRw cm9jL3hlcmNlcy1jMy9NYWtlZmlsZQkod29ya2luZyBjb3B5KQpAQCAtMjgsNiArMjgsMTAg QEAKIENQRV9QUk9EVUNUPQl4ZXJjZXMtYysrCiBDUEVfVkVORE9SPQlhcGFjaGUKIAorcG9z dC1wYXRjaDoKKwkke1JFSU5QTEFDRV9DTUR9IC1lICJzLEBERUZTQCwmIC1EX19TVERDX0xJ TUlUX01BQ1JPUywiIFwKKwkgICAgJHtXUktTUkN9L3NyYy9NYWtlZmlsZS5pbgorCiBwb3N0 LWluc3RhbGw6CiAJJHtMTn0gLXMgbGlieGVyY2VzLWMtJHtQT1JUVkVSU0lPTjpSfS5zbyAk e1NUQUdFRElSfSR7UFJFRklYfS9saWIvbGlieGVyY2VzLWMuc28uJHtQT1JUVkVSU0lPTjpS OlJ9CiAK --------------F5E97000165659175E08C2B9--