Opened 7 years ago

Closed 2 years ago

#54285 closed defect (fixed)

podofo @0.9.5: error: no member named 'bind' in namespace 'std'; did you mean 'find'?

Reported by: MrB74 Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: podofo

Description (last modified by mf2k (Frank Schima))

I get this error when attempting to build podofo 0.9.5 in the log output:

:info:build /opt/local/include/cppunit/TestCaller.h:121:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build             m_test_function( std::bind(test, m_fixture) )
:info:build                              ~~~~~^~~~
:info:build                                   find
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:862:1: note: 'find' declared here
:info:build find(_InputIterator __first, _InputIterator __last, const _Tp& __value_)
:info:build ^

Attachments (2)

main.log (430.4 KB) - added by MrB74 7 years ago.
build log file
podofo-Portfile.diff (510 bytes) - added by grumpybozo (Bill Cole) 7 years ago.
diff -uw output for Portfile change workaround.

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by MrB74

Attachment: main.log added

build log file

comment:1 Changed 7 years ago by MrB74

My xcode is 8.3.2 btw, standard compiler set up

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Owner: set to dbevans
Status: newassigned

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers podofo), if any.

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:4 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: podofo 0.9.5 fails to build (tested on 10.10 and 10.12.5, running fully up to date macports)podofo @0.9.5: error: no member named 'bind' in namespace 'std'; did you mean 'find'?

comment:5 Changed 7 years ago by grumpybozo (Bill Cole)

This also is a problem on El Cap w/XCode 8.2.1. It seems to have the same root cause as #54073. I'm not conversant with the arcana of C++ versions and compilers, but it seems like the issue is that the compiler isn't seeing the right (C++11) libstdc++

Changed 7 years ago by grumpybozo (Bill Cole)

Attachment: podofo-Portfile.diff added

diff -uw output for Portfile change workaround.

comment:6 Changed 7 years ago by grumpybozo (Bill Cole)

WORKAROUND:

port deactivate cppunit

Edit the Portfile to remove these lines:

# cppunit required as a build dependency to enable build of podofo command line tools

depends_build-append \
                    port:cppunit

NOTE: The initial comment is not currently true. The podofo config phase checks for cppunit but builds the command line tools anyway (and some tests) if cppunit is absent.

Patch for podofo Portfile attached.

Root cause seems to be in cppunit or its Portfile. The configure script checks for "-std=c++11'" support in clang, but then never uses that option in the build phase.

comment:7 Changed 2 years ago by MrB74

This can be closed as 0.964 is in ports and 0.97 has been released

Last edited 2 years ago by MrB74 (previous) (diff)

comment:8 Changed 2 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

In 072aa3510987e6768505a7b7217c3f9efccd851b/macports-ports (master):

podofo: update to 0.9.7

  • patch for update by Craig Bradney

Closes: #54285
Closes: #64566

Note: See TracTickets for help on using tickets.