#54406 closed defect (fixed)
libcaca-devel @20161007 and libcaca @0.99.beta19_5 won't build on Snow Leopard, Mac OS X 10.6.8, because of faulty /opt/local/include/cppunit/TestCaller.h file?
Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.1 |
Keywords: | snowleopard | Cc: | michaelld@… |
Port: | libcaca |
Description
libtool: link: /opt/local/bin/clang-mp-3.9 -pipe -Os -arch x86_64 -g -O2 -fno-strength-reduce -fomit-frame-pointer -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wl,-headerpad_max_install_names -arch x86_64 -o .libs/bench bench.o -L/opt/local/lib ../.libs/libcaca.dylib -lncursesw -lz In file included from dirty.cpp:15: In file included from /opt/local/include/cppunit/extensions/HelperMacros.h:9: /opt/local/include/cppunit/TestCaller.h:121:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'? m_test_function( std::bind(test, m_fixture) ) ~~~~~^~~~ find /opt/local/libexec/llvm-3.9/bin/../include/c++/v1/algorithm:868:1: note: 'find' declared here find(_InputIterator __first, _InputIterator __last, const _Tp& __value_) ^
This is the error.
Attachments (2)
Change History (8)
Changed 7 years ago by ballapete (Peter "Pete" Dyballa)
comment:1 Changed 7 years ago by michaelld (Michael Dickens)
OK. What this means is that libcaca has to be built using C++11, since CppUnit API now requires it.
comment:2 Changed 7 years ago by michaelld (Michael Dickens)
comment:3 Changed 7 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 7 years ago by kencu (Ken)
I also note that this is one of those ports that doesn't put the -stdlib=libc++ on the build line. I think Peter has upgraded to LibcxxOnOlderSystems now, and clang will default to adding the wrong stdlib if it is not specified.
If so, and if this still doesn't build, it might needed to be added with a configure addition.
configure.cxxflags-append -stdlib=libc++
and possibly also configure.ldflags-append -stdlib=libc++
comment:5 Changed 7 years ago by mf2k (Frank Schima)
Port: | libcaca added |
---|
comment:6 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)
libcaca
and libcaca-devel
built for me on Snow Leopard with cxx_stdlib = libc++.
Note: See
TracTickets for help on using
tickets.
From libcaca-devel