Date: Thu, 6 Feb 2014 15:57:08 -0500 (EST) From: Diane Bruce <db@db.net> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/186521: swig20 generated wrappers incompatibility with clang Message-ID: <20140206205708.BD32F1CC0B@night.db.net> Resent-Message-ID: <201402062100.s16L00fb072076@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 186521 >Category: ports >Synopsis: swig20 generated wrappers incompatibility with clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 06 21:00:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Diane Bruce >Release: FreeBSD 9.1-STABLE amd64 >Organization: You must be joking. >Environment: System: FreeBSD night.db.net 9.1-STABLE FreeBSD 9.1-STABLE #17 r249713: Sat Apr 20 18:27:18 EST 2013 root@night.db.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: discovered in building gnuradio 3.7.2 ... [ 48%] Building CXX object gr-vocoder/lib/CMakeFiles/gnuradio-vocoder.dir/g721_d ecode_bs_impl.cc.o /home/db/ports/gnuradio/work/.build/gr-fec/swig/fec_swigPYTHON_wrap.cxx:3267:51: error: implicit instantiation of undefined template 'std::__1::basic_string<cha r, std::__1::char_traits<char>, std::__1::allocator<char> >' static swig_type_info *type_query(std::string name) { /usr/include/c++/v1/iosfwd:188:33: note: template is declared here class _LIBCPP_TYPE_VIS_ONLY basic_string; ^ ... Old style #include <string.h> would work with c++ std:: but is deprecated This bug should affect OSX as well and although I spotted several similar bugs on SF bug tracker I did not spot this exact one. It may still be a probem worth reporting upstream. I am not sure if this will require a [exp-run]. swig template fails to include c++ <string> >How-To-Repeat: Build gnuradio 3.7.2 >Fix: Index: swig20/files/patch-Lib_swigrun.swg =================================================================== --- swig20/files/patch-Lib_swigrun.swg (revision 0) +++ swig20/files/patch-Lib_swigrun.swg (working copy) @@ -0,0 +1,10 @@ +--- Lib/swigrun.swg.orig 2013-09-15 09:11:43.000000000 -0500 ++++ Lib/swigrun.swg 2014-02-06 14:04:08.000000000 -0500 +@@ -176,6 +176,7 @@ + #include <string.h> + + #ifdef __cplusplus ++#include <string> + extern "C" { + #endif + Property changes on: swig20/files/patch-Lib_swigrun.swg ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140206205708.BD32F1CC0B>