Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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)

main.log (179.3 KB) - added by ballapete (Peter "Pete" Dyballa) 7 years ago.
From libcaca-devel
main.2.log (235.2 KB) - added by ballapete (Peter "Pete" Dyballa) 7 years ago.
From libcaca

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

From libcaca-devel

Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.2.log added

From libcaca

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)

In fd96fbcd6861e6bca2bb6233cdd7291a4f2aeb87/macports-ports:

libcaca*: require C++11 because using CppUnit.

Addresses ticket #54406 .

comment:3 Changed 7 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

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++

Version 0, edited 7 years ago by kencu (Ken) (next)

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.