Opened 2 years ago

Closed 2 years ago

#65335 closed defect (fixed)

mplayer-devel build error

Reported by: bunk3m (Bunk3m) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc: mascguy (Christopher Nielsen)
Port: mplayer-devel

Description

I am working through an upgrade outdated and am unable to get mplayer-devel to upgrade. Full log will be attached.

:info:build 4 warnings generated.
:info:build AR	libavformat/libavformat.a
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mplayer-devel/mplayer-devel/work/trunk/ffmpeg'
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mplayer-devel/mplayer-devel/work/trunk'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mplayer-devel/mplayer-devel/work/trunk" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build Failed to build mplayer-devel: command execution failed
:debug:build Error code: CHILDSTATUS 18466 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mplayer-devel/mplayer-devel/main.log for details.

Attachments (1)

mplayer-devel main log.txt (3.4 MB) - added by bunk3m (Bunk3m) 2 years ago.
main.log of the build

Change History (8)

Changed 2 years ago by bunk3m (Bunk3m)

Attachment: mplayer-devel main log.txt added

main.log of the build

comment:1 Changed 2 years ago by jmroot (Joshua Root)

Owner: set to jeremyhu
Status: newassigned

comment:2 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

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

The real errors in the log are:

:info:build libavcodec/libdav1d.c:49:7: error: no member named 'n_tile_threads' in 'struct Dav1dSettings'
:info:build     s.n_tile_threads = dav1d->tile_threads;
:info:build     ~ ^
:info:build libavcodec/libdav1d.c:51:7: error: no member named 'n_frame_threads' in 'struct Dav1dSettings'
:info:build     s.n_frame_threads = FFMIN(c->thread_count ? c->thread_count : av_cpu_count(), DAV1D_MAX_FRAME_THREADS);
:info:build     ~ ^
:info:build CC	libavformat/vivo.o
:info:build CC	libavcodec/libopenjpegdec.o
:info:build 3 warnings generated.
:info:build libavcodec/libdav1d.c:51:83: error: use of undeclared identifier 'DAV1D_MAX_FRAME_THREADS'; did you mean 'DAV1D_OBU_FRAME_HDR'?
:info:build     s.n_frame_threads = FFMIN(c->thread_count ? c->thread_count : av_cpu_count(), DAV1D_MAX_FRAME_THREADS);
:info:build                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~
:info:build                                                                                   DAV1D_OBU_FRAME_HDR
:info:build ./libavutil/common.h:96:28: note: expanded from macro 'FFMIN'
:info:build #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
:info:build                            ^
:info:build /opt/local/include/dav1d/headers.h:48:5: note: 'DAV1D_OBU_FRAME_HDR' declared here
:info:build     DAV1D_OBU_FRAME_HDR = 3,
:info:build     ^
:info:build libavcodec/libdav1d.c:51:83: error: use of undeclared identifier 'DAV1D_MAX_FRAME_THREADS'; did you mean 'DAV1D_OBU_FRAME_HDR'?
:info:build     s.n_frame_threads = FFMIN(c->thread_count ? c->thread_count : av_cpu_count(), DAV1D_MAX_FRAME_THREADS);
:info:build                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~
:info:build                                                                                   DAV1D_OBU_FRAME_HDR
:info:build ./libavutil/common.h:96:34: note: expanded from macro 'FFMIN'
:info:build #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
:info:build                                  ^
:info:build /opt/local/include/dav1d/headers.h:48:5: note: 'DAV1D_OBU_FRAME_HDR' declared here
:info:build     DAV1D_OBU_FRAME_HDR = 3,
:info:build     ^
:info:build libavcodec/libdav1d.c:225:94: error: use of undeclared identifier 'DAV1D_MAX_TILE_THREADS'
:info:build     { "tilethreads", "Tile threads", OFFSET(tile_threads), AV_OPT_TYPE_INT, { .i64 = 1 }, 1, DAV1D_MAX_TILE_THREADS, VD },
:info:build                                                                                              ^

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

I suspect this old version of mplayer-devel is incompatible with dav1d 1.0.0, which was recently released. The mplayer-devel port hasn't been updated in over two years, while the mplayer port is still on the six-year-old 1.3.0 version. Both ports should be updated to newer versions. If the problem remains, report the bug to the developers of mplayer.

comment:5 Changed 2 years ago by adamb2903

No, the mplayer-devel port *has* been updated to reflect mplayer 1.5, which was released on 27/2/22 and it is *that*, which is not building here. Please look again.

comment:6 Changed 2 years ago by kencu (Ken)

you can try this https://github.com/macports/macports-ports/pull/16385 simple mplayer 1.5 install if you want.

I found the current mplayer port unapproachable, and this is what I've been using, so I thought I share it and PR it FWIW.

comment:7 Changed 2 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.