Compile error with gcc

Julio Merino jmmv at outlook.com
Sun Feb 16 12:22:15 UTC 2014


On Feb 16, 2014, at 2:28, Garrett Cooper <yanegomi at gmail.com> wrote:

> On Feb 15, 2014, at 9:25 PM, Garrett Cooper <yaneurabeya at gmail.com> wrote:
> 
>> Hi Julio,
>> 	I ran into this error when trying to compile ATF with gcc on code based off of r261958:
>> 
>> --- 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
>> 
>> 	I haven’t dug into why this is occurring yet, but I assume it’s because of the ATF 0.20 upgrade.
>> 	I’m compiling with gcc/g++ of course, and not clang/libcxxrt.
> 
> 	This patch seems to work with gcc and clang/libcxxrt. I didn’t try it without clang/libcxxrt though...

Good finding!  But the workaround should rather go into lib/atf/Makefile.inc along all other configuration options.

Testing a patch and submitting soon.


More information about the freebsd-testing mailing list