Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Sep 2016 10:08:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 212347] [PATCH] lang/basic256: Add patch (sent upstream) to drop 'using namespace std'
Message-ID:  <bug-212347-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212347

            Bug ID: 212347
           Summary: [PATCH] lang/basic256: Add patch (sent upstream) to
                    drop 'using namespace std'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: rakuco@FreeBSD.org
                CC: fernando.apesteguia@gmail.com
            Blocks: 211916
                CC: fernando.apesteguia@gmail.com
             Flags: maintainer-feedback?(fernando.apesteguia@gmail.com)
          Keywords: patch

The attached patch (a smaller version of one I've sent upstream) removes 'u=
sing
namespace std' from Interpreter.cpp to avoid errors when -std=3Dc++11 or
-std=3Dgnu++11 is passed to the compiler, as a call to bind(2) can end up
becoming a call to std::bind().

This is required to avoid breaking the build with Qt 5.6.1:

> c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -g -std=3Dgnu++11=
 -pthread -D_THREAD_SAFE -Wall -W -fPIC -DLINUX -DESPEAK -DSOUND_QMOBILITY =
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I/usr/local/include/espea=
k -I/usr/local/include/qt5/QtMultimedia -I/usr/local/include/qt5/QtSerialPo=
rt -IQtMobility -IQtMobility -I/usr/local/include/qt5 -I/usr/local/include/=
qt5/QtGui -I/usr/local/include/qt5/QtCore -Itmp/moc -I/usr/local/include -I=
/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o tmp/obj/In=
terpreter.o Interpreter.cpp
> Interpreter.cpp:4282:105: error: invalid operands to binary expression ('=
__bind<int &, sockaddr *, unsigned long>' and 'int')


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211916
[Bug 211916] [exp-run] Update Qt to 5.6.1.
--=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-212347-13>