Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#54073 closed defect (fixed)

'dirac' fails to build

Reported by: khink (Kees Hink) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: Xof (Christophe Pettus), macdeport, basmac, udbraumann, cbean, MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), Gord-Butler, ballapete (Peter "Pete" Dyballa)
Port: dirac

Description

Installing dirac fails:

$ sudo port install dirac
--->  Computing dependencies for dirac
--->  Building dirac
Error: Failed to build dirac: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_dirac/dirac/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port dirac failed

These are the errors reported by the log:

$ grep error /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_dirac/dirac/main.log
:info:build /opt/local/include/cppunit/TestCaller.h:121:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:121:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:121:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:138:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:138:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:138:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:155:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:155:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:155:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build 3 errors generated.
:info:build /opt/local/include/cppunit/TestCaller.h:155:23: error: no matching function for call to 'find'
:info:build 4 errors generated.
:info:build /opt/local/include/cppunit/TestCaller.h:155:23: error: no matching function for call to 'find'
:info:build /opt/local/include/cppunit/TestCaller.h:155:23: error: no matching function for call to 'find'
:info:build 5 errors generated.
:error:build Failed to build dirac: command execution failed
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_dirac/dirac/main.log for details.
:info:build 121In file included from :121:2828::  ./frames_test.herror:: errorno member named 'bind' in namespace 'std'; did you mean 'find'?28
:info:build ::  errorno member named 'bind' in namespace 'std'; did you mean 'find'?:
:info:build /opt/local/include/cppunit/TestCaller.h:121:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:138:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:138:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:138:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:138:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:155:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:155:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:155:28: error: In file included from no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build /opt/local/include/cppunit/TestCaller.h:155:28: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
:info:build 3 errors generated.
:info:build /opt/local/include/cppunit/TestCaller.h:155:23: error: no matching function for call to 'find'
:info:build 4 errors generated.
:info:build /opt/local/include/cppunit/TestCaller.h:155:23: error: no matching function for call to 'find'
:info:build /opt/local/include/cppunit/TestCaller.h:155:23: error: no matching function for call to 'find'
:info:build /opt/local/include/cppunit/TestCaller.h:155:23: error: no matching function for call to 'find'
:info:build /opt/local/include/cppunit/TestCaller.h:155:23: error: no matching function for call to 'find'
:info:build 5 errors generated.
:info:build 5 errors generated.
:error:build Failed to build dirac: command execution failed
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_dirac/dirac/main.log for details.

Full log attached. MacPorts 2.4.1 on OSX Sierra (10.12.4).

Googling for the 'find' header error shows i need to include the header functional, but how does one tell ports to do that?

Attachments (3)

main.log (275.0 KB) - added by khink (Kees Hink) 6 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_dirac/dirac/main.log
Portfile.diff (922 bytes) - added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) 6 years ago.
patch-no_cppunit.diff (653 bytes) - added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) 6 years ago.

Download all attachments as: .zip

Change History (23)

Changed 6 years ago by khink (Kees Hink)

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_dirac/dirac/main.log

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Owner: set to dbevans
Port: dirac added
Status: newassigned

In the future, please fill in the Port field and Cc the port maintainers (port info --maintainers dirac), if any.

comment:2 Changed 6 years ago by ryandesign (Ryan Schmidt)

cppunit was just updated to a new version. Maybe dirac is not compatible with this version.

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

Yes, this looks like #54078.

comment:4 Changed 6 years ago by mf2k (Frank Schima)

Cc: Xof added

has duplicate #54095.

comment:5 Changed 6 years ago by macdeport

Cc: macdeport added

comment:6 Changed 6 years ago by basmac

Cc: basmac added

comment:7 Changed 6 years ago by udbraumann

Cc: udbraumann added

comment:8 Changed 6 years ago by mliker

Cc: mliker added

comment:9 Changed 6 years ago by cbean

Cc: cbean added

comment:10 Changed 6 years ago by jmroot (Joshua Root)

Does anyone actually need dirac, as opposed to schroedinger? Looks like the only dependent is gstreamer010-gst-plugins-bad, which also depends on schroedinger. Deleting dirac (or marking it replaced_by schroedinger) and configuring gstreamer010-gst-plugins-bad not to use it may be the simplest fix.

comment:11 Changed 6 years ago by mliker

Cc: mliker removed

comment:12 Changed 6 years ago by bunk3m (Bunk3m)

@jmroot I ran port upgrade outdated today and got a similar dirac error.

--->  Scanning binaries for linking errors
--->  Found 1 broken file, matching files to ports       
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: dirac @1.0.2
Continue? [Y/n]: Y
--->  Computing dependencies for dirac
--->  Cleaning dirac
--->  Scanning binaries for linking errors
--->  Found 1 broken file, matching files to ports
--->  Found 1 broken port, determining rebuild order
--->  Rebuilding in order
     dirac @1.0.2 
--->  Computing dependencies for dirac
--->  Fetching distfiles for dirac
--->  Verifying checksums for dirac
--->  Extracting dirac
--->  Applying patches to dirac
--->  Configuring dirac
--->  Building dirac
Error: Failed to build dirac: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_dirac/dirac/main.log for details.
Error: rev-upgrade failed: Error rebuilding dirac
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

I don't know how to figure out what port is dependent on dirac and why it needs to be rebuild. My update craps out at that point so I don't know which other ports should be updated but can't.

If possible it would be helpful to know how to do this schroedinger or gstreamer010 instead of dirac.

comment:13 Changed 6 years ago by jpmelko

MPlayer has a dirac variant. same problem building it with this variant

comment:14 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added

Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Attachment: Portfile.diff added

Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Attachment: patch-no_cppunit.diff added

comment:15 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Attached is a proposed solution that attempts to turn off the dependency on cppunit.

comment:16 Changed 6 years ago by ryandesign (Ryan Schmidt)

Cc: Gord-Butler added

Has duplicate #54405.

comment:17 Changed 6 years ago by ballapete (Peter "Pete" Dyballa)

This also happens on Snow Leopard, Mac OS X 10.6.8, with cxx_stdlib = libc++.

comment:18 Changed 6 years ago by ballapete (Peter "Pete" Dyballa)

Cc: ballapete added

comment:19 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In a68ffde0da7203d0f28d1d7eb892092290aaaf19/macports-ports:

dirac: create variant to build unit tests

New variant requires C++11.
Fixes #54073
Maintainer timeout.

comment:20 in reply to:  19 Changed 6 years ago by cbean

Replying to MarcusCalhoun-Lopez:

In a68ffde0da7203d0f28d1d7eb892092290aaaf19/macports-ports:

dirac: create variant to build unit tests

New variant requires C++11.
Fixes #54073
Maintainer timeout.

G O O D   C A T C H !!!

Just tested the version containing your fixes. Works as estimated, see below. Had to put it into local overlay since it is not in the official tree, yet.

# port -sf install mplayer-devel +a52+dirac+mencoder_extras+noappleremote+speex
--->  Computing dependencies for mplayer-devel
The following dependencies will be installed:  dirac
Continue? [Y/n]: y
--->  Fetching distfiles for dirac
--->  Verifying checksums for dirac
--->  Extracting dirac
--->  Applying patches to dirac
--->  Configuring dirac
--->  Building dirac
--->  Staging dirac into destroot
--->  Installing dirac @1.0.2_4
--->  Activating dirac @1.0.2_4
--->  Cleaning dirac
--->  Fetching distfiles for mplayer-devel
--->  Verifying checksums for mplayer-devel
--->  Extracting mplayer-devel
--->  Applying patches to mplayer-devel
--->  Configuring mplayer-devel
Warning: reinplace s|-I/usr/X11/include||g didn't change anything in /usr/local/var/macports/build/_usr_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mplayer-devel/mplayer-devel/work/trunk/config.mak
--->  Building mplayer-devel
--->  Staging mplayer-devel into destroot
--->  Installing mplayer-devel @37869_2+a52+dirac+mencoder_extras+noappleremote+speex
--->  Activating mplayer-devel @37869_2+a52+dirac+mencoder_extras+noappleremote+speex
--->  Cleaning mplayer-devel
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.                             

Last edited 6 years ago by cbean (previous) (diff)
Note: See TracTickets for help on using tickets.