Date: Tue, 28 Mar 2017 08:08:56 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 218178] devel/jsoncpp: sparc64: snprintf is not a member of std Message-ID: <bug-218178-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218178 Bug ID: 218178 Summary: devel/jsoncpp: sparc64: snprintf is not a member of std Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: phoe@openmailbox.org CC: yuri@rawbw.com CC: yuri@rawbw.com Flags: maintainer-feedback?(yuri@rawbw.com) Requires patches to build on 11.0-RELEASE on sparc64. For making it compile, I needed to comment out the preprocessor lines which "#define snprintf std::snprintf" in the following files: src/lib_json/json_writer.cpp src/lib_json/json_reader.cpp The errors generated are like: src/lib_json/json_writer.cpp: In function 'std::__cxx11::string Json::valueToString(double, bool, unsigned int)': src/lib_json/json_writer.cpp:61:18: error: 'snprintf' is not a member of 's= td' #define snprintf std::snprintf=20 ^=20=20=20=20=20=20=20=20=20=20 src/lib_json/json_writer.cpp:151:11: note: in expansion of macro 'snprintf' len =3D snprintf(buffer, sizeof(buffer), formatString, value);=20=20 ^=20 src/lib_json/json_writer.cpp:61:18: note: suggested alternative:=20 #define snprintf --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218178-13>