Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Feb 2014 23:28:33 -0800
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Julio Merino <julio@meroh.net>
Cc:        freebsd-testing@FreeBSD.org, Dimitry Andric <dim@FreeBSD.org>
Subject:   Re: Compile error with gcc
Message-ID:  <A8EF2DCC-5F11-4405-88D1-05A193AB7BAF@gmail.com>
In-Reply-To: <695E42A3-2009-4DD7-B10E-BF8465C89D39@gmail.com>
References:  <695E42A3-2009-4DD7-B10E-BF8465C89D39@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_C59D78A5-8089-4457-998F-DDABCD9D6BE2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

On Feb 15, 2014, at 9:25 PM, Garrett Cooper <yaneurabeya@gmail.com> =
wrote:

> Hi Julio,
> 	I ran into this error when trying to compile ATF with gcc on =
code based off of r261958:
>=20
> --- application.So ---
> /usr/src/contrib/atf/atf-c++/detail/application.cpp: In constructor =
'atf::application::usage_error::usage_error(const char*, ...)':
> /usr/src/contrib/atf/atf-c++/detail/application.cpp:71: error: =
'vsnprintf' is not a member of 'std'
> *** [application.So] Error code 1
>=20
> 	I haven=92t dug into why this is occurring yet, but I assume =
it=92s because of the ATF 0.20 upgrade.
> 	I=92m compiling with gcc/g++ of course, and not clang/libcxxrt.

	This patch seems to work with gcc and clang/libcxxrt. I didn=92t =
try it without clang/libcxxrt though...
Thanks!
-Garrett


--Apple-Mail=_C59D78A5-8089-4457-998F-DDABCD9D6BE2
Content-Disposition: attachment;
	filename=0001-Unbreak-compiling-ATF-after-the-0.20-upgrade-with-gc.patch
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="0001-Unbreak-compiling-ATF-after-the-0.20-upgrade-with-gc.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=2040e316948a2e9c01f972ce8bae8580191bfd6163=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Garrett=20Cooper=20<yanegomi@gmail.com>=0A=
Date:=20Sat,=2015=20Feb=202014=2006:45:48=20-0800=0ASubject:=20[PATCH]=20=
Unbreak=20compiling=20ATF=20after=20the=200.20=20upgrade=20with=20gcc=0A=0A=
---=0A=20contrib/atf/bconfig.h=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20|=202=20+-=0A=20lib/atf/libatf-c++/tests/detail/Makefile=20=
|=204=20++++=0A=202=20files=20changed,=205=20insertions(+),=201=20=
deletion(-)=0A=0Adiff=20--git=20a/contrib/atf/bconfig.h=20=
b/contrib/atf/bconfig.h=0Aindex=202993f22..822d934=20100644=0A---=20=
a/contrib/atf/bconfig.h=0A+++=20b/contrib/atf/bconfig.h=0A@@=20-56,7=20=
+56,7=20@@=0A=20#define=20HAVE_UNSETENV=201=0A=20=0A=20/*=20Define=20to=20=
1=20if=20vsnprintf=20is=20in=20std=20*/=0A-#define=20=
HAVE_VSNPRINTF_IN_STD=201=0A+/*=20#undef=20HAVE_VSNPRINTF_IN_STD=20*/=0A=20=
=0A=20/*=20Define=20to=20the=20sub-directory=20in=20which=20libtool=20=
stores=20uninstalled=20libraries.=0A=20=20=20=20*/=0Adiff=20--git=20=
a/lib/atf/libatf-c++/tests/detail/Makefile=20=
b/lib/atf/libatf-c++/tests/detail/Makefile=0Aindex=204e2e9cf..55576fe=20=
100644=0A---=20a/lib/atf/libatf-c++/tests/detail/Makefile=0A+++=20=
b/lib/atf/libatf-c++/tests/detail/Makefile=0A@@=20-9,6=20+9,10=20@@=20=
ATF=3D=09=09${.CURDIR:H:H:H:H:H}/contrib/atf=0A=20=0A=20CFLAGS+=3D=09=
-I${ATF}=0A=20=0A+.if=20${MK_LIBCPLUSPLUS}=20=3D=3D=20"yes"=0A+CFLAGS+=3D=09=
-DHAVE_VSNPRINTF_IN_STD=0A+.endif=0A+=0A=20.for=20_T=20in=09=
application_test=20\=0A=20=09=09env_test=20\=0A=20=09=09exceptions_test=20=
\=0A--=20=0A1.8.5.2=0A=0A=

--Apple-Mail=_C59D78A5-8089-4457-998F-DDABCD9D6BE2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A8EF2DCC-5F11-4405-88D1-05A193AB7BAF>