[MacPorts] #57887: povray @3.7.0.8: error: no member named 'shared_ptr' in namespace 'std'
MacPorts
noreply at macports.org
Thu Jan 10 21:37:00 UTC 2019
#57887: povray @3.7.0.8: error: no member named 'shared_ptr' in namespace 'std'
-------------------------------------------------+-------------------------
Reporter: ryandesign | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: mountainlion lion snowleopard | Port: povray
leopard tiger |
-------------------------------------------------+-------------------------
povray @3.7.0.8 [https://build.macports.org/builders/ports-10
.8_x86_64_legacy-builder/builds/84336/steps/install-port/logs/stdio fails
to build] on Mountain Lion and earlier with libstdc++:
{{{
/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -I..
-I../source/backend -I../source/base -I../source/frontend -I../unix
-I../vfe -I../vfe/unix -I/opt/local/include/SDL -D_GNU_SOURCE=1
-D_THREAD_SAFE -D_THREAD_SAFE -I/opt/local/include/OpenEXR
-I/opt/local/lib/../include -I/opt/local/lib/../include
-I/opt/local/lib/../include -I/opt/local/lib/../include
-I/opt/local/include -pthread -I/opt/local/include -I/usr/include -pipe
-Wno-multichar -Wno-write-strings -O3 -ffast-math -march=native -pipe -Os
-stdlib=libstdc++ -arch x86_64 -D_THREAD_SAFE -MT backend/colour/colour.o
-MD -MP -MF $depbase.Tpo -c -o backend/colour/colour.o
backend/colour/colour.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from pov_mem.cpp:36:
In file included from ./backend/frame.h:53:
In file included from ./base/configbase.h:40:
In file included from ../vfe/unix/syspovconfigbase.h:35:
../vfe/unix/syspovconfig.h:101:26: error: no member named 'shared_ptr' in
namespace 'std'
using POV_TR1_NAMESPACE::shared_ptr;
~~~~~~~~~~~~~~~~~~~^
}}}
In vfe/unix/syspovconfig.h it says:
{{{
#include <boost/version.hpp>
#if BOOST_VERSION < 106500
// Pulling in smart pointers is easy with Boost versions prior to
1.65.0, with the
// `boost/tr1/*.hpp` set of headers simply pulling in whatever is
available (C++11, TR1 or
// boost's own implementation) and making it available in the
`std::tr1` namespace.
#include <boost/tr1/memory.hpp>
#define POV_TR1_NAMESPACE std::tr1
#else
// With `boost/tr1/*.hpp` unavailable, we're currently blindly relying
on the compiler to
// be compliant with C++11.
#include <memory>
#define POV_TR1_NAMESPACE std
#endif
}}}
MacPorts currently has boost 1.66.0, so I
[changeset:730d52386aec6c7002a6b83a23d232a5f2625378/macports-ports
required a C++11-capable compiler], but the
[https://build.macports.org/builders/ports-10.8_x86_64_legacy-
builder/builds/84337/steps/install-port/logs/stdio build still fails] with
macports-libstdc++ (there are some overlapping lines due to parallel
building):
{{{
/opt/local/bin/clang++-mp-5.0 -DHAVE_CONFIG_H -I. -I.. -I..
-I../source/backend -I../source/base -I../source/frontend -I../unix
-I../vfe -I../vfe/unix -I/opt/local/include/SDL -D_GNU_SOURCE=1
-D_THREAD_SAFE -D_THREAD_SAFE -I/opt/local/include/OpenEXR
-I/opt/local/lib/../include -I/opt/local/lib/../include
-I/opt/local/lib/../include -I/opt/local/lib/../include
-I/opt/local/include -pthread -I/opt/local/include -I/usr/include -pipe
-Wno-multichar -Wno-write-strings -O3 -ffast-math -march=native -pipe -Os
-D_GLIBCXX_USE_CXX11_ABI=0 -stdlib=macports-libstdc++ -arch x86_64
-D_THREAD_SAFE -MT backend/colour/colour.o -MD -MP -MF $depbase.Tpo -c -o
backend/colour/colour.o backend/colour/colour.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from backend/bounding/bsphere.cpp:35:
In file included from ./backend/frame.h:53:
In file included from ./base/configbase.h:40:
In file included from ../vfe/unix/syspovconfigbase.h:In file included from
backend/bounding/bbox.cpp:43:
In file included from ./backend/frame.h:53:
In file included from ./base/configbase.h:40:
In file included from ../vfe/unix/syspovconfigbase.h:35:
../vfe/unix/syspovconfig.h:101:26: error: no member named 'shared_ptr' in
namespace 'std'
using POV_TR1_NAMESPACE::shared_ptr;
~~~~~~~~~~~~~~~~~~~^
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57887>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list