Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Sep 2017 15:22:00 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Craig Leres <leres@ee.lbl.gov>, 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:  <1504560120.1337.3.camel@freebsd.org>
In-Reply-To: <e1289401-d920-a753-f1a9-8042dc314eaf@ee.lbl.gov>
References:  <201709021423.v82ENcsI036241@repo.freebsd.org> <CAALwa8=YspdFEiq8s-GRf2XH=hyvh3RpA8Gzd2bH_SgeXfun0w@mail.gmail.com> <e1289401-d920-a753-f1a9-8042dc314eaf@ee.lbl.gov>

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

I ran into this at $work, I think when we first switched from gcc to
clang for our app builds. =A0I worked around it by adding

CFLAGS+=3D -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



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