Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Sep 2017 16:18:39 -0700
From:      Craig Leres <leres@ee.lbl.gov>
To:        Ian Lepore <ian@freebsd.org>, Antoine Brodin <antoine@freebsd.org>, Sunpoet Po-Chuan Hsieh <sunpoet@freebsd.org>
Cc:        "svn-ports-head@freebsd.org" <svn-ports-head@freebsd.org>, "svn-ports-all@freebsd.org" <svn-ports-all@freebsd.org>, "ports-committers@freebsd.org" <ports-committers@freebsd.org>
Subject:   Re: svn commit: r449138 - in head: cad/freecad devel/libkolab graphics/qgis security/shibboleth2-sp sysutils/passwordsafe textproc/xerces-c3
Message-ID:  <24a21e8c-21eb-9241-d6b3-3259cd554ca4@ee.lbl.gov>
In-Reply-To: <1504560120.1337.3.camel@freebsd.org>
References:  <201709021423.v82ENcsI036241@repo.freebsd.org> <CAALwa8=YspdFEiq8s-GRf2XH=hyvh3RpA8Gzd2bH_SgeXfun0w@mail.gmail.com> <e1289401-d920-a753-f1a9-8042dc314eaf@ee.lbl.gov> <1504560120.1337.3.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?24a21e8c-21eb-9241-d6b3-3259cd554ca4>