Discussion:
[MPlayer-users] compile failed
Masaru Nomiya
2017-09-24 03:02:04 UTC
Permalink
Hello,

I got the very latest svn head, then tried to compile.
But, I got errors;

thread -ldl -rdynamic -L/usr/lib64 -L/opt/kde3/lib64 -L/usr/local/lib64 -ldvdnav -lpthread -lm -ltwolame -lfaac -lx264 -lpthread -lmp3lame
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_dec.o): In function `v4l2_receive_frame':
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_dec.c:157: undefined reference to `ff_v4l2_context_dequeue_frame'
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_dec.c:143: undefined reference to `ff_v4l2_context_enqueue_packet'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_dec.o): In function `v4l2_try_start':
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_dec.c:65: undefined reference to `ff_v4l2_format_v4l2_to_avfmt'
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_dec.c:95: undefined reference to `ff_v4l2_context_set_status'
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_dec.c:46: undefined reference to `ff_v4l2_context_set_status'
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_dec.c:87: undefined reference to `ff_v4l2_context_init'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_dec.o): In function `v4l2_decode_init':
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_dec.c:180: undefined reference to `ff_v4l2_m2m_codec_init'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_dec.o):(.data.rel+0xb0): undefined reference to `ff_v4l2_m2m_codec_end'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_dec.o):(.data.rel+0x1b0): undefined reference to `ff_v4l2_m2m_codec_end'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_dec.o):(.data.rel+0x2b0): undefined reference to `ff_v4l2_m2m_codec_end'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_dec.o):(.data.rel+0x3b0): undefined reference to `ff_v4l2_m2m_codec_end'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_dec.o):(.data.rel+0x4b0): undefined reference to `ff_v4l2_m2m_codec_end'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_dec.o):(.data.rel+0x5b0): more undefined references to `ff_v4l2_m2m_codec_end' follow
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_enc.o): In function `v4l2_receive_packet':
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_enc.c:270: undefined reference to `ff_v4l2_context_set_status'
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_enc.c:278: undefined reference to `ff_v4l2_context_set_status'
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_enc.c:286: undefined reference to `ff_v4l2_context_dequeue_packet'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_enc.o): In function `v4l2_send_frame':
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_enc.c:256: undefined reference to `ff_v4l2_context_enqueue_frame'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_enc.o): In function `v4l2_encode_init':
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_enc.c:308: undefined reference to `ff_v4l2_m2m_codec_init'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_enc.o):(.data.rel+0xb0): undefined reference to `ff_v4l2_m2m_codec_end'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_enc.o):(.data.rel+0x1b0): undefined reference to `ff_v4l2_m2m_codec_end'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_enc.o):(.data.rel+0x2b0): undefined reference to `ff_v4l2_m2m_codec_end'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_enc.o):(.data.rel+0x3b0): undefined reference to `ff_v4l2_m2m_codec_end'
ffmpeg/libavcodec/libavcodec.a(v4l2_m2m_enc.o):(.data.rel+0x4b0): undefined reference to `ff_v4l2_m2m_codec_end'
collect2: error: ld returned 1 exit status
make: *** [Makefile:747: mencoder] error 1

Thanks,

---
┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp
┃\/彡
┗━━┛ "Bill! You married with Computers.
Not with Me!"
"No..., with money."
Reimar Döffinger
2017-09-24 22:24:45 UTC
Permalink
Post by Masaru Nomiya
Hello,
I got the very latest svn head, then tried to compile.
But, I got errors;
thread -ldl -rdynamic -L/usr/lib64 -L/opt/kde3/lib64 -L/usr/local/lib64 -ldvdnav -lpthread -lm -ltwolame -lfaac -lx264 -lpthread -lmp3lame
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_dec.c:157: undefined reference to `ff_v4l2_context_dequeue_frame'
Strange, is this on Linux? Either way I expect it is fixed by disabling these files as they caused issues on non-Linux systems, so they are disabled for now.
They won't be interesting for the vast majority of users anyway.
Masaru Nomiya
2017-09-25 08:22:30 UTC
Permalink
Hello,

In the Message;

Subject : Re: [MPlayer-users] compile failed
Message-ID : <579B1780-8317-4D69-A55E-***@gmx.de>
Date & Time: Mon, 25 Sep 2017 00:24:45 +0200
Post by Reimar Döffinger
Post by Masaru Nomiya
Hello,
I got the very latest svn head, then tried to compile.
But, I got errors;
thread -ldl -rdynamic -L/usr/lib64 -L/opt/kde3/lib64 -L/usr/local/lib64 -ldvdnav -lpthread -lm -ltwolame -lfaac -lx264 -lpthread -lmp3lame
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_dec.c:157: undefined reference to `ff_v4l2_context_dequeue_frame'
Strange, is this on Linux?
Yes, on Linux.
Post by Reimar Döffinger
Either way I expect it is fixed by disabling these files as they
caused issues on non-Linux systems, so they are disabled for now.
They won't be interesting for the vast majority of users anyway.
I executed 'svn up', then the configure script was updated.
This solved the problem.

Thanks,

---
┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp
┃\/彡
┗━━┛ "Bill! You married with Computers.
Not with Me!"
"No..., with money."
wm4
2017-09-27 16:28:51 UTC
Permalink
On Mon, 25 Sep 2017 00:24:45 +0200
Post by Reimar Döffinger
Post by Masaru Nomiya
Hello,
I got the very latest svn head, then tried to compile.
But, I got errors;
thread -ldl -rdynamic -L/usr/lib64 -L/opt/kde3/lib64 -L/usr/local/lib64 -ldvdnav -lpthread -lm -ltwolame -lfaac -lx264 -lpthread -lmp3lame
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_dec.c:157: undefined reference to `ff_v4l2_context_dequeue_frame'
Strange, is this on Linux? Either way I expect it is fixed by disabling these files as they caused issues on non-Linux systems, so they are disabled for now.
They won't be interesting for the vast majority of users anyway.
That makes me wonder why MPlayer _still_ uses the frankenstein approach
of an "in-tree" FFmpeg with its build system partially replaced. It
seems to cause regressions every other week.

Wouldn't it be much easier to default to an external FFmpeg?
Reimar Döffinger
2017-09-29 06:02:57 UTC
Permalink
Post by wm4
On Mon, 25 Sep 2017 00:24:45 +0200
Post by Reimar Döffinger
Post by Masaru Nomiya
Hello,
I got the very latest svn head, then tried to compile.
But, I got errors;
thread -ldl -rdynamic -L/usr/lib64 -L/opt/kde3/lib64 -L/usr/local/lib64 -ldvdnav -lpthread -lm -ltwolame -lfaac -lx264 -lpthread -lmp3lame
/tmp/nom/mplayer/ffmpeg/libavcodec/v4l2_m2m_dec.c:157: undefined reference to `ff_v4l2_context_dequeue_frame'
Strange, is this on Linux? Either way I expect it is fixed by disabling these files as they caused issues on non-Linux systems, so they are disabled for now.
They won't be interesting for the vast majority of users anyway.
That makes me wonder why MPlayer _still_ uses the frankenstein approach
of an "in-tree" FFmpeg with its build system partially replaced. It
seems to cause regressions every other week.
Wouldn't it be much easier to default to an external FFmpeg?
Only changing the default would mean it still needs to be fixed, thus not any less effort...
In exchange, it would mean having to do a proper version check and supporting multiple FFmpeg versions, which is quite some effort.
Though that doesn't mean that it might not make sense to change the default anyway.
Loading...