andrew | 4 Aug 2012 07:48
Favicon
Gravatar

MPlayer does not link to x264: undefined reference to `__log2f_finite'

Hi,

I have not built MPlayer with MEncoder for a while but when attempting
to do this with Ubuntu Precise Pangolin with:

andrew <at> mycenae:~/Desktop$ gcc --version | head -n 1
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

./configure fails to link x264 with the following message in
config.log. Thanks for having a look at this,

Andrew.

============ Checking for x264 ============

#include <inttypes.h>
#include <x264.h>
#if !(X264_BUILD >= 118)
#error We do not support old versions of x264. Get the latest from git.
#endif
int main(void) { x264_encoder_open((void*)0); return 0; }

cc -Wundef  -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -std=gnu99 
-I/home/andrew/mplayer_build/mplayer_deps/usr/include -fno-tree-vectorize
/tmp/mplayer-configure--28683/tmp.c -Ilibdvdread4 -I. -Iffmpeg 
-I/home/andrew/mplayer_build/mplayer_deps/usr/include  -D_REENTRANT -I/usr/include/directfb
-I/usr/include/     -D_REENTRANT    -I/usr/include/freetype2  -lm 
-L/home/andrew/mplayer_build/mplayer_deps/usr/lib   -lncurses -lpng -lz -ljpeg -lungif -lasound
-ldl -lpthread -lbluray -lcdda_interface -lcdda_paranoia -L/usr/lib/i386-linux-gnu -lfreetype
(Continue reading)

andrew | 5 Aug 2012 00:06
Favicon
Gravatar

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

On Sat, Aug 04, 2012 at 03:48:16PM +1000, andrew wrote:

> ./configure fails to link x264 with the following message in
> config.log. Thanks for having a look at this,

[...]

> set.c:(.text+0x2564): undefined reference to `__pow_finite'
> set.c:(.text+0x4833): undefined reference to `__pow_finite'
> set.c:(.text+0x5a2a): undefined reference to `__pow_finite'

Is there more information I can provide on this exasperating error?

Thanks,

Andrew
--

-- 
You think that's air you're breathing now?
Mark Guptill | 5 Aug 2012 04:32
Picon
Favicon

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'


On Aug 4, 2012, at 6:06 PM, andrew wrote:

> On Sat, Aug 04, 2012 at 03:48:16PM +1000, andrew wrote:
> 
>> ./configure fails to link x264 with the following message in
>> config.log. Thanks for having a look at this,
> 
> [...]
> 
>> set.c:(.text+0x2564): undefined reference to `__pow_finite'
>> set.c:(.text+0x4833): undefined reference to `__pow_finite'
>> set.c:(.text+0x5a2a): undefined reference to `__pow_finite'
> 
> Is there more information I can provide on this exasperating error?

Compiles just fine for me using x264 from git. You didn't say what version of x264 you are trying to use.
andrew | 5 Aug 2012 05:40
Favicon
Gravatar

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

On Sat, Aug 04, 2012 at 10:32:04PM -0400, Mark Guptill wrote:

> Compiles just fine for me using x264 from git. You didn't say what
> version of x264 you are trying to use.

Using the latest git x264. Looks like MPlayer only works when x264 is
compiled as:

--enable-shared

It fails on my system when x264 is built with --enable-static.

Andrew
--

-- 
You think that's air you're breathing now?
Carl Eugen Hoyos | 5 Aug 2012 10:38
Picon

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

andrew <andrew <at> andrews-corner.org> writes:

> Using the latest git x264. Looks like MPlayer only works when x264 is
> compiled as:
> 
> --enable-shared
> 
> It fails on my system when x264 is built with --enable-static.

Does specifying -lm as --extra-ldflags help?

Carl Eugen
Carl Eugen Hoyos | 5 Aug 2012 10:58
Picon

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

andrew <andrew <at> andrews-corner.org> writes:

> ./configure fails to link x264 with the following message in
> config.log.

Could you test the following?
Look at line 6958 of configure, you will find the string 
"-lx264 $ld_pthread" twice. Edit the second string and make it
"-lx264 $ld_pthread -lm".

Please report back, Carl Eugen
andrew | 5 Aug 2012 11:36
Favicon
Gravatar

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

On Sun, Aug 05, 2012 at 08:58:31AM +0000, Carl Eugen Hoyos wrote:
> andrew <andrew <at> andrews-corner.org> writes:
> 
> > ./configure fails to link x264 with the following message in
> > config.log.
> 
> Could you test the following?
> Look at line 6958 of configure, you will find the string 
> "-lx264 $ld_pthread" twice. Edit the second string and make it
> "-lx264 $ld_pthread -lm".
> 
> Please report back, Carl Eugen

The suggestion in your other email (adding --extra-ldflags=-lm) did
not work but your suggestion above worked perfectly with a static
x264. Thanks for that!

I attach the relevant section of config.log just to confirm.

Thanks again,

Andrew

============ Checking for x264 ============

#include <inttypes.h>
#include <x264.h>
#if !(X264_BUILD >= 118)
#error We do not support old versions of x264. Get the latest from git.
#endif
(Continue reading)

Carl Eugen Hoyos | 5 Aug 2012 18:53
Picon

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

andrew <andrew <at> andrews-corner.org> writes:

> The suggestion in your other email (adding --extra-ldflags=-lm) did
> not work but your suggestion above worked perfectly with a static
> x264.

I committed another change, please test if current svn (without 
any additional changes) work for you.

Thank you, Carl Eugen
andrew | 6 Aug 2012 09:01
Favicon
Gravatar

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

On Sun, Aug 05, 2012 at 04:53:09PM +0000, Carl Eugen Hoyos wrote:
> andrew <andrew <at> andrews-corner.org> writes:
> 
> > The suggestion in your other email (adding --extra-ldflags=-lm) did
> > not work but your suggestion above worked perfectly with a static
> > x264.
> 
> I committed another change, please test if current svn (without 
> any additional changes) work for you.

Unfortunately the new changes did not allow the static x264 to be
picked up.

Andrew
--

-- 
You think that's air you're breathing now?
Carl Eugen Hoyos | 6 Aug 2012 10:48
Picon

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

andrew <andrew <at> andrews-corner.org> writes:

> > I committed another change, please test if current svn (without 
> > any additional changes) work for you.
> 
> Unfortunately the new changes did not allow the static x264 to be
> picked up.

Please provide the relevant part of config.log 
(as in your original mail).

Thank you for testing, Carl Eugen
andrew | 6 Aug 2012 11:25
Favicon
Gravatar

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

On Mon, Aug 06, 2012 at 08:48:03AM +0000, Carl Eugen Hoyos wrote:
> andrew <andrew <at> andrews-corner.org> writes:
> 
> > > I committed another change, please test if current svn (without 
> > > any additional changes) work for you.
> > 
> > Unfortunately the new changes did not allow the static x264 to be
> > picked up.
> 
> Please provide the relevant part of config.log 
> (as in your original mail).
> 
> Thank you for testing, Carl Eugen

No, thank you for looking at this :). I attach the relevant section of
config.log.

Andrew

============ Checking for x264 ============

#include <inttypes.h>
#include <x264.h>
#if !(X264_BUILD >= 118)
#error We do not support old versions of x264. Get the latest from git.
#endif
int main(void) { x264_encoder_open((void*)0); return 0; }

gcc-4.7 -Wundef  -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization
-Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 
(Continue reading)

Carl Eugen Hoyos | 6 Aug 2012 17:40
Picon

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

andrew <andrew <at> andrews-corner.org> writes:

> > I committed another change, please test if current svn (without 
> > any additional changes) work for you.
> 
> Unfortunately the new changes did not allow the static x264 to be
> picked up.

New try committed.

Please test, Carl Eugen
andrew | 7 Aug 2012 10:04
Favicon
Gravatar

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

On Mon, Aug 06, 2012 at 03:40:05PM +0000, Carl Eugen Hoyos wrote:
> andrew <andrew <at> andrews-corner.org> writes:
> 
> > > I committed another change, please test if current svn (without 
> > > any additional changes) work for you.
> > 
> > Unfortunately the new changes did not allow the static x264 to be
> > picked up.
> 
> New try committed.
> 
> Please test, Carl Eugen

Oddly enough with the latest changes:

andrew <at> corinth:~$ mplayer | head -n 1
MPlayer SVN-r35061-4.6 (C) 2000-2012 MPlayer Team

static x264 cannot be found at all. I attach the relevant part of
config.log. I am hoping that my build method is not contributing to
this problem? Details temporarily here:

http://www.andrews-corner.org/mplayer.html

No spamming / advertising intended, just don't want to unnecessarily
waste your time...

Thanks again,

Andrew
(Continue reading)

andrew | 7 Aug 2012 13:39
Favicon
Gravatar

Re: MPlayer does not link to x264: undefined reference to `__log2f_finite'

On Tue, Aug 07, 2012 at 06:04:23PM +1000, andrew wrote:

> Oddly enough with the latest changes:
> 
> andrew <at> corinth:~$ mplayer | head -n 1
> MPlayer SVN-r35061-4.6 (C) 2000-2012 MPlayer Team
> 
> static x264 cannot be found at all. 

Oops, that was a result of a clumsy typo with --extra-ldflags, my
apologies for my stupidity. Looks like in fact the current svn has
located the static x264 and all is now well. Thank you very much for
all of your work with this issue :).

Andrew

============ Checking for x264 ============

#include <inttypes.h>
#include <x264.h>
#if !(X264_BUILD >= 118)
#error We do not support old versions of x264. Get the latest from git.
#endif
int main(void) { x264_encoder_open((void*)0); return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls
-Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -O4
-march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
/tmp/mplayer-configure--19712/tmp.c -Ilibdvdread4 -I. -Iffmpeg
(Continue reading)


Gmane