You are not logged in.

#1 2022-05-09 10:42:43

Archttila
Member
From: Hungary
Registered: 2021-11-16
Posts: 15

[SOLVED] makepkg fails while compiling the moc-unstable

I am trying to install moc-unstable 1:2.6_alpha3-1 but I get the following error message:

make[3]: *** [Makefile:412: libffmpeg_decoder_la-ffmpeg.lo] Error 1
make[3]: Leaving directory '/home/alucard/.cache/yay/moc-unstable/src/moc-2.6-alpha3/decoder_plugins/ffmpeg'
make[2]: *** [Makefile:365: all-recursive] Error 1
make[2]: Leaving directory '/home/alucard/.cache/yay/moc-unstable/src/moc-2.6-alpha3/decoder_plugins'
make[1]: *** [Makefile:715: all-recursive] Error 1
make[1]: Leaving directory '/home/alucard/.cache/yay/moc-unstable/src/moc-2.6-alpha3'
make: *** [Makefile:472: all] Error 2

Last edited by Archttila (2022-05-09 17:20:03)


Sway WM

Offline

#2 2022-05-09 10:54:01

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] makepkg fails while compiling the moc-unstable

https://bbs.archlinux.org/viewtopic.php?id=57855 The cause of the error is before the output you posted.
You need to replace ffmpeg with ffmpeg4.4.

Offline

#3 2022-05-09 13:26:40

Archttila
Member
From: Hungary
Registered: 2021-11-16
Posts: 15

Re: [SOLVED] makepkg fails while compiling the moc-unstable

loqs wrote:

The cause of the error is before the output you posted.

https://pastebin.com/5RSiMjaS

You need to replace ffmpeg with ffmpeg4.4.

Unfortunately, this did not help...


Sway WM

Offline

#4 2022-05-09 13:59:19

a821
Member
Registered: 2012-10-31
Posts: 381

Re: [SOLVED] makepkg fails while compiling the moc-unstable

Again, do not trim the output, post the full logs.

...

Edit: See post #6 below.

It builds for me in a clean chroot after changing to ffmpeg4.4

$ git diff
diff --git a/PKGBUILD b/PKGBUILD
index c97b2b5..f46fb3a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,9 +11,9 @@ arch=('x86_64')
 url="https://moc.daper.net/"
 license=('GPL')
 depends=('libmad' 'libid3tag' 'jack' 'curl' 'libltdl' 'file')
-makedepends=('speex' 'ffmpeg' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug' 'faad2')
+makedepends=('speex' 'ffmpeg4.4' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug' 'faad2')
 optdepends=('speex: for using the speex plugin'
-           'ffmpeg: for using the ffmpeg plugin'
+           'ffmpeg4.4: for using the ffmpeg plugin'
            'taglib: for using the musepack plugin'
            'libmpcdec: for using the musepack plugin'
             'wavpack: for using the wavpack plugin'

The build-log for reference: https://0x0.st/ommV.txt

Last edited by a821 (2022-05-09 14:56:53)

Offline

#5 2022-05-09 14:16:05

Archttila
Member
From: Hungary
Registered: 2021-11-16
Posts: 15

Re: [SOLVED] makepkg fails while compiling the moc-unstable


Sway WM

Offline

#6 2022-05-09 14:55:52

a821
Member
Registered: 2012-10-31
Posts: 381

Re: [SOLVED] makepkg fails while compiling the moc-unstable

I realized that my previous compilation did not link against ffmpeg becase I forgot to add the line

export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'

in `build()` before `./configure` (this is based in the official PKGBUILD). Did you do that when you changed ffmpeg to ffmpeg4.4?

Edit: git diff

diff --git a/PKGBUILD b/PKGBUILD
index c97b2b5..474b0ad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,9 +11,9 @@ arch=('x86_64')
 url="https://moc.daper.net/"
 license=('GPL')
 depends=('libmad' 'libid3tag' 'jack' 'curl' 'libltdl' 'file')
-makedepends=('speex' 'ffmpeg' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug' 'faad2')
+makedepends=('speex' 'ffmpeg4.4' 'taglib' 'libmpcdec' 'wavpack' 'libmodplug' 'faad2')
 optdepends=('speex: for using the speex plugin'
-           'ffmpeg: for using the ffmpeg plugin'
+           'ffmpeg4.4: for using the ffmpeg plugin'
            'taglib: for using the musepack plugin'
            'libmpcdec: for using the musepack plugin'
             'wavpack: for using the wavpack plugin'
@@ -38,6 +38,7 @@ prepare() {
 
 build() {
   cd ${_pkgname}-${_pkgver}
+  export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
   ./configure --prefix=/usr --without-rcc \
     --with-oss --with-alsa --with-jack --with-aac --with-mp3 \
     --with-musepack --with-vorbis --with-flac --with-wavpack \

Last edited by a821 (2022-05-09 14:58:53)

Offline

#7 2022-05-09 16:41:52

Archttila
Member
From: Hungary
Registered: 2021-11-16
Posts: 15

Re: [SOLVED] makepkg fails while compiling the moc-unstable

a821

Thank you very much, compiled! smile

make[2]: Leaving directory '/home/alucard/.cache/yay/moc-unstable/src/moc-2.6-alpha3'
make[1]: Leaving directory '/home/alucard/.cache/yay/moc-unstable/src/moc-2.6-alpha3'
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "moc-unstable"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: moc-unstable 1:2.6_alpha3-1 (Mon 09 May 2022 06:35:49 PM CEST)
==> Installing package moc-unstable with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...
:: moc-unstable and moc are in conflict. Remove moc? [y/N] y

Packages (2) moc-1:2.5.2-4 [removal]  moc-unstable-1:2.6_alpha3-1

Total Installed Size:   0.58 MiB
Net Upgrade Size:      -0.03 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                             [##########################################] 100%
(1/1) checking package integrity                                           [##########################################] 100%
(1/1) loading package files                                                [##########################################] 100%
(1/1) checking for file conflicts                                          [##########################################] 100%
:: Processing package changes...
(1/1) removing moc                                                         [##########################################] 100%
(1/1) installing moc-unstable                                              [##########################################] 100%
Optional dependencies for moc-unstable
    speex: for using the speex plugin [installed]
    ffmpeg: for using the ffmpeg plugin [installed]
    taglib: for using the musepack plugin [installed]
    libmpcdec: for using the musepack plugin [installed]
    wavpack: for using the wavpack plugin [installed]
    faad2: for using the aac plugin [installed]
    libmodplug: for using the modplug plugin [installed]
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

Unfortunately, the buffer overflow issue is also present in this version.

*** buffer overflow detected ***: terminated
                                            zsh: IOT instruction (core dumped)  mocp
                                                                                    %

Last edited by Archttila (2022-05-09 16:42:21)


Sway WM

Offline

#8 2022-05-09 17:15:49

Archttila
Member
From: Hungary
Registered: 2021-11-16
Posts: 15

Re: [SOLVED] makepkg fails while compiling the moc-unstable

The patch is Working!! smile https://bugs.archlinux.org/task/74041

moc 2.6 finally plays DSD files!! yeaahhh!

https://i.imgur.com/oXGO3xJ.png


Thanks for your help guys! smile

Last edited by V1del (2022-05-09 18:12:22)


Sway WM

Offline

#9 2022-05-09 18:12:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] makepkg fails while compiling the moc-unstable

Glad to hear but please don't embed huge images directly in your post.

Offline

Board footer

Powered by FluxBB