From owner-freebsd-testing@FreeBSD.ORG Sun Feb 16 07:28:38 2014 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DB79C915; Sun, 16 Feb 2014 07:28:37 +0000 (UTC) Received: from mail-pd0-x22f.google.com (mail-pd0-x22f.google.com [IPv6:2607:f8b0:400e:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9CC6C1635; Sun, 16 Feb 2014 07:28:37 +0000 (UTC) Received: by mail-pd0-f175.google.com with SMTP id w10so13526668pde.6 for ; Sat, 15 Feb 2014 23:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=3XZ27tMkHBBQ2SSDVQRji6fLrp0PH3yg8l4Tlo1GkUE=; b=xnR/2Q8Va32dFxRUn5EvpR8ksKoANsoSTl8Cy+0ll0ToawNLIiMg30HEK+9DFsa/Ys HJkvWgGafAPBpXMUgepRx//4DiUUHh2bIcg+HyOeAcZlQK1Qje8aaDBzRUrWzvObN3Ot u5RP3+L5CnPHCob5IzuwbuPj9YSnQcZ+1f1gYyl5KPsagYRW7M7YrpDDSjhgYjSTSfI1 /fQ/CcpWjwHJsnTdAwwvq6swhTSdZbEuaOuQsckI+znoCelucy65NizYC8HxLqQQyecg LFMoggIDnHQ1PzMj9YGIdQxI3seAhltsjXEBYGjkY3QB6zUkNwrH3SL2AmYkO+fMVfvR W6aw== X-Received: by 10.66.142.132 with SMTP id rw4mr19617797pab.6.1392535717300; Sat, 15 Feb 2014 23:28:37 -0800 (PST) Received: from ?IPv6:2601:8:ab80:7d6:92b:5b4a:998e:fd5d? ([2601:8:ab80:7d6:92b:5b4a:998e:fd5d]) by mx.google.com with ESMTPSA id de1sm33481848pbc.7.2014.02.15.23.28.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 15 Feb 2014 23:28:35 -0800 (PST) Content-Type: multipart/mixed; boundary="Apple-Mail=_C59D78A5-8089-4457-998F-DDABCD9D6BE2" Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: Compile error with gcc From: Garrett Cooper In-Reply-To: <695E42A3-2009-4DD7-B10E-BF8465C89D39@gmail.com> Date: Sat, 15 Feb 2014 23:28:33 -0800 Message-Id: References: <695E42A3-2009-4DD7-B10E-BF8465C89D39@gmail.com> To: Julio Merino X-Mailer: Apple Mail (2.1827) Cc: freebsd-testing@FreeBSD.org, Dimitry Andric X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Feb 2014 07:28:38 -0000 --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 = 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=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--