PSA: Failed configure of oss on Fedora 40 [solved]

The place to discuss linux version of MakeMKV
Post Reply
Message
Author
PriamX
Posts: 8
Joined: Fri Mar 11, 2022 9:00 pm

PSA: Failed configure of oss on Fedora 40 [solved]

#1 Post by PriamX » Mon Dec 30, 2024 5:01 pm

A public service announcement for my fellow Fedora folks:

I received the following error when running configure for makemkv-oss-1.17.8 on a Fedora 40 bare metal system.

[snip]

Code: Select all

checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libavcodec libavutil... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether LIBAVCODEC_VERSION_MAJOR is declared... yes
checking LIBAVCODEC_VERSION_MAJOR... failed
configure: error: in `/root/ServerSetup/ARM/MakeMKV/makemkv-oss-1.17.8':
configure: error: LIBAVCODEC_VERSION_MAJOR is not known at compile time in libavcodec.h
See `config.log' for more details
[admin@mediaserv makemkv-oss-1.17.8]#
This was familiar to me, I had received this error on a previous Fedora release ages ago; I just couldn't remember how I'd fixed it.

A small amount of sleuthing led me to discover my libavcodec.h was missing. On Fedora this resides in the 'ffmpeg-devel' rpm. A simple 'dnf install ffmpeg-devel' fixed the issue.

I'm posting this here because my ffmpeg-devel went missing in the upgrade between Fedora 39 and 40, this has not happened in previous version upgrades; my ffmpeg-devel was upgraded along with everything else ever since I'd added that rpm many versions ago. If this happens to you too, perhaps you'll find your way here.

dazraf
Posts: 2
Joined: Fri Jan 31, 2025 12:31 pm

Re: PSA: Failed configure of oss on Fedora 40 [solved]

#2 Post by dazraf » Fri Jan 31, 2025 12:39 pm

I'm getting this

Code: Select all

➜  makemkv-oss-1.17.8 sudo dnf install ffmpeg-devel
[sudo] password for fuzz: 
Updating and loading repositories:
 expressvpn                                                                                                                                         100% |   7.9 KiB/s |   2.4 KiB |  00m00s
Repositories loaded.
Failed to resolve the transaction:
Problem: package ffmpeg-devel-7.0.2-4.fc41.i686 from rpmfusion-free requires ffmpeg-libs(x86-32) = 7.0.2-4.fc41, but none of the providers can be installed
  - conflicting requests
  - ffmpeg-libs-7.0.2-4.fc41.i686 from rpmfusion-free has inferior architecture
  - package ffmpeg-devel-7.0.2-4.fc41.x86_64 from rpmfusion-free requires ffmpeg-libs(x86-64) = 7.0.2-4.fc41, but none of the providers can be installed
  - problem with installed package
  - installed package libswscale-free-7.0.2-7.fc41.x86_64 conflicts with libswscale-free provided by ffmpeg-libs-7.0.2-4.fc41.x86_64 from rpmfusion-free
  - package ffmpeg-libs-7.0.2-4.fc41.x86_64 from rpmfusion-free conflicts with libswscale-free provided by libswscale-free-7.0.2-7.fc41.x86_64 from fedora
You can try to add to command line:
  --allowerasing to allow removing of installed packages to resolve problems
  --skip-broken to skip uninstallable package

Post Reply