You are not logged in.

#1 2012-03-18 23:39:12

Goffredo
Member
Registered: 2012-03-18
Posts: 7

[SOLVED] FFMPEG ABS Compile Error

Trying to build ffmpeg to enable aac support, gives me this error after modifying the abs PKGBUILD:

ERROR: libpulse-simple not found

Searching in the configure.log I see this:

BEGIN /tmp/ffconf.muZ9nNmZ.c
    1	#include <pulse/simple.h>
    2	long check_pa_simple_new(void) { return (long) pa_simple_new; }
    3	int main(void) { return 0; }
END /tmp/ffconf.muZ9nNmZ.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -std=c99 -fomit-frame-pointer -fPIC -pthread -D_REENTRANT -c -o /tmp/ffconf.NPn4LGjZ.o /tmp/ffconf.muZ9nNmZ.c
gcc -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -Wl,--as-needed -D_REENTRANT -o /tmp/ffconf.U05jemlx /tmp/ffconf.NPn4LGjZ.o -lpulse-simple -lpulse -lopenjpeg -lopencore-amrwb -lopencore-amrnb -lmp3lame -lgsm -lm -pthread -lbz2 -lz
/usr/lib/libsndfile.so.1: undefined reference to `vorbis_version_string'
collect2: ld returned 1 exit status
ERROR: libpulse-simple not found

What could the problem be? All my packages are up to date with the arch repos.

EDIT: formatting

Last edited by Goffredo (2012-03-19 14:46:02)

Offline

#2 2012-03-18 23:44:30

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [SOLVED] FFMPEG ABS Compile Error

Welcome to the Arch forums. Please remember to use code blocks where appropriate.

Could you please provide a diff to show the precise way you modified the PKGBUILD?

Offline

#3 2012-03-19 00:02:15

Goffredo
Member
Registered: 2012-03-18
Posts: 7

Re: [SOLVED] FFMPEG ABS Compile Error

Hi and thanks for the quickest reply ever!

This is the plain diff.

27a28
>     --enable-libvo-aacenc \

As you can see I only added aac support. (Actually copying the library from the windows build here (http://ffmpeg.zeranoe.com/builds/readme … readme.txt))

EDIT: grammar

Last edited by Goffredo (2012-03-19 00:04:53)

Offline

#4 2012-03-19 00:36:32

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [SOLVED] FFMPEG ABS Compile Error

Okay, it worked for me. Looking closer at your error message, I see it's complaining about a missing libpulse-simple. On my system, I ran:

pacman -Qoq $(pacman -Qqs pulse | pacman -Qql | grep libpulse-simple) | uniq

and obtained:

libpulse

Therefore, I suggest you install libpulse first, even though it's not explicitly listed as a dependency.

If you can reproduce the problem when not trying to enable libvo-aacenc, this would imply the dependency list in the PKGBUILD is out of date, and a bug should be submitted.

Offline

#5 2012-03-19 00:53:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] FFMPEG ABS Compile Error

/dev/zero wrote:

Therefore, I suggest you install libpulse first, even though it's not explicitly listed as a dependency.

libpulse *is* a dependency of ffmpeg and it's listed in the PKGBUILD.

Offline

#6 2012-03-19 01:00:47

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [SOLVED] FFMPEG ABS Compile Error

karol wrote:
/dev/zero wrote:

Therefore, I suggest you install libpulse first, even though it's not explicitly listed as a dependency.

libpulse *is* a dependency of ffmpeg and it's listed in the PKGBUILD.

So it is! Need more coffee, stat!

Goffredo, did you not get a warning about the missing dependency?

Offline

#7 2012-03-19 01:09:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] FFMPEG ABS Compile Error

/dev/zero wrote:

Goffredo, did you not get a warning about the missing dependency?

'makepkg -s' won't run

==> ERROR: Could not resolve all dependencies.

w/o all the deps and makedeps in place.

Offline

#8 2012-03-19 07:10:09

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] FFMPEG ABS Compile Error

Goffredo wrote:

T
/usr/lib/libsndfile.so.1: undefined reference to `vorbis_version_string'

i still don't get it how you guys ended up to libpulse,

pacman -Qo /usr/lib/libsndfile.so.1
/usr/lib/libsndfile.so.1 is owned by libsndfile 1.0.25-2

Now recompile this package using abs and retry ffmpeg. If it works, report on our tracker to fix it.


Give what you have. To someone, it may be better than you dare to think.

Offline

#9 2012-03-19 07:17:05

Goffredo
Member
Registered: 2012-03-18
Posts: 7

Re: [SOLVED] FFMPEG ABS Compile Error

Yes, as some of you noticed, libpulse is indeed already installed (otherwise I could not even launch the build as it is required as a dependency). I tried recompiling libsndfile and libvorbis yesterday, but libsndfile fails with the same error as far I can remember. I will try to recompile once I get in uni, and report any problems. Thanks for the help guys.

Offline

#10 2012-03-19 08:47:41

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] FFMPEG ABS Compile Error

Goffredo wrote:

Yes, as some of you noticed, libpulse is indeed already installed (otherwise I could not even launch the build as it is required as a dependency). I tried recompiling libsndfile and libvorbis yesterday, but libsndfile fails with the same error as far I can remember. I will try to recompile once I get in uni, and report any problems. Thanks for the help guys.

you should report this issue with libsndfile in our tracker because is a legit bug.


Give what you have. To someone, it may be better than you dare to think.

Offline

#11 2012-03-19 08:59:58

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [SOLVED] FFMPEG ABS Compile Error

I'm confused. The error reported had something to do with a missing libpulse-simple. I didn't get any errors when I compiled ffmpeg with libvo-aacenc enabled, and I have that file.

Doesn't this mean that there is no bug, instead there was a missing libpulse file?

Offline

#12 2012-03-19 09:41:34

Goffredo
Member
Registered: 2012-03-18
Posts: 7

Re: [SOLVED] FFMPEG ABS Compile Error

Ok, compiling libsndfile from ABS gives me the same error:

Making all in examples
make[1]: Entering directory `/home/Goffredo/abs/libsndfile/src/libsndfile-1.0.25/examples'
  CC     make_sine.o
  CCLD   make_sine
../src/.libs/libsndfile.so: undefined reference to `vorbis_version_string'
collect2: ld returned 1 exit status
make[1]: *** [make_sine] Error 1
make[1]: Leaving directory `/home/Goffredo/abs/libsndfile/src/libsndfile-1.0.25/examples'
make: *** [all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Should I report it on the bug tracker?

@/dev/zero: the error compiling ffmpeg was the one you say, but it isn't as simple to solve. As I said, I already have libpulse properly installed from the repos through pacman.

Offline

#13 2012-03-19 14:45:01

Goffredo
Member
Registered: 2012-03-18
Posts: 7

Re: [SOLVED] FFMPEG ABS Compile Error

Reported on arch bug tracker. https://bugs.archlinux.org/task/29005

EDIT: Reported too soon it seems...I had some miscompiled libraries in usr/local/. Removing all of the contents of /usr/local solved the problem (and I don't even want to think how many more it has generated smile)

Thanks for the help guys, closing as solved.

Offline

Board footer

Powered by FluxBB