3

I'm running a Ubuntu 64-bit system in a VM. I wanted to fuzz the VLC media player, so I grabbed the tar file, and built the dependencies and tried configuring it using this line:

./configure CC="afl-gcc" CXX="afl-g++" --disable-shared; make 

However, this runs into an error:

requested libavcodec >= 57.37.100 but version of libavcodec is 56.60.100

Is there a workaround for this, other than building a new one from contrib?

0

3 Answers 3

4

You have a number of options:

  • rebuild a recent ffmpeg source package to get libavcodec57 & co.;
  • upgrade to Ubuntu 16.10 which has libavcodec57;
  • follow the VLC package approach, which is to embed the appropriate version of fmmpeg and use that instead.

The latter approach is the one I'd recommend; to get started:

sudo apt-get install devscripts dget http://httpredir.debian.org/debian/pool/main/v/vlc/vlc_2.2.4-8.dsc cd vlc-2.2.4 CC=afl-gcc CXX=afl-g++ dpkg-buildpackage -us -uc 

This will tell you which other packages you need to install (if any). If you don't want to use dpkg-buildpackage, see at least debian/rules for the relevant configuration options.

2
  • @StephenKitt I have installed a fresh Ubuntu 16.10 (Desktop) and applied all pending updates. But if I try to compile VLC I still get the same error. So what have you done to get libavcoded57 integrated in v16.10? Commented Nov 30, 2016 at 15:02
  • @PeterCo I didn't do anything, it's in universe (so perhaps you need to enable the universe repository). Commented Nov 30, 2016 at 15:13
0

I have the same problem with you. Finally i found it's wrong version of vlc source code. Take care of your git checkout command. Is it really on vlc version 2.2.0? In my case, i checkout with default (the latest) version and it is 3.0.0 which is still under developing and depends on libavcodec 57.

-2

rebuild a recent ffmpeg source package to get libavcodec57 and so forth

this is probably the fastest way (see below) to get going. apt install nasm yasm if needed.

3
  • 3
    this seems to be a sloppy abbreviation of Stephen's answer, with an afterthought "apt install nasm yasm". Could you elaborate on how your answer is different from Stephen's? Commented Jun 22, 2018 at 10:57
  • it shows the imho the fastest way, which many people want to opt for. Btw, even faster is to build vlc-nightly-git from AUR in Mamjaro Distro, 100% hassle free. Commented Jun 22, 2018 at 18:27
  • keep in mind that people will read this if they have related questions too, some some will find it useful, even when the original Q. is touched lightly only. Commented Jun 22, 2018 at 18:44

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.