svn commit: r449138 - in head: cad/freecad devel/libkolab graphics/qgis security/shibboleth2-sp sysutils/passwordsafe textproc/xerces-c3

Ian Lepore ian at freebsd.org
Mon Sep 4 21:22:23 UTC 2017


On Mon, 2017-09-04 at 13:12 -0700, Craig Leres wrote:
> On 09/03/17 02:35, Antoine Brodin wrote:
> > 
> > This fails to build,  29 ports are skipped including x11/kde4
> One of my 10.3-RELEASE-p21 build servers hasn't been able to build 
> 3.2.0. The error is:
> 
>      xercesc/util/Base64.cpp:149:14: error: use of undeclared
> identifier 
> 'SIZE_MAX'
> 
> Apparently this is a known problem with 3.2.0:
> 
>      https://issues.apache.org/jira/browse/XERCESC-2113
> 
>      Base64.cpp missing config.h include
> 
>      "I think this is because of a missing stdint.h include. This is
>      provided by config.h, but there's no config.h include in
>      Base64.cpp. Other platforms must be getting this via an indirect
>      include."
> 
> But I don't think this is correct; I don't see any includes in
> config.h 
> and even adding:
> 
>      #include <stdint.h>
> 
> to Base64.cpp doesn't fix the error.
> 
> 		Craig
> 
> steel 25 # uname -a
> FreeBSD steel.lbl.gov 10.3-RELEASE-p21 FreeBSD 10.3-RELEASE-p21 #10
> r18: 
> Thu Aug 10 16:50:50 PDT 2017 
> leres at steel.lbl.gov:/usr/src/sys/amd64/compile/LBLNET  amd64

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.

-- Ian


More information about the svn-ports-all mailing list