[MPlayer-users] mplayer build issues on Linux -- autodection not working correctly and workaround causes make to fail

David Wadler dwadler at gmail.com
Tue Jul 26 23:23:51 CEST 2011


> On Jul 19, 8:38 am, Carl Eugen Hoyos <ceho... at ag.or.at> wrote:
> > David Wadler <dwadler <at> gmail.com> writes:
> >
> > > However, I ran into some issues where autodetect wasn't picking up some
> > > libraries that I had built and installed, notably: libtheora,
> libmpg123, and
> > > libvpx.
> >
> > You will have to provide the relevant parts of config.log.
> >
> > Carl Eugen
>
> Thanks for the reply. I reverted my configure script to the one in svn and
> ran it again. As the issue appears to be connected to linker errors, I've
> include the cc command lines below:
>
> ============ Checking for OggTheora support ============
>
> cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
> -Wredundant-decls -Werror-implicit-function-declaration -Wstrict-prototypes
> -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign
> -Wdeclaration-after-statement -std=gnu99  -O4 -march=i486 -mtune=generic
> -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
> /tmp/mplayer-configure-11474-32729/tmp.c -Ilibdvdread4 -I. -Iffmpeg
> -D_REENTRANT  -static  -ffast-math   -lncurses -lpng -lz -ljpeg -lopenjpeg
> -lgif -lz -lbz2 -lmad -lspeex -lgsm   -o
> /tmp/mplayer-configure-11474-32729/tmp
> /tmp/ccEW9xbz.o: In function `main':
> tmp.c:(.text+0x19): undefined reference to `theora_info_init'
> tmp.c:(.text+0x25): undefined reference to `theora_comment_init'
> collect2: ld returned 1 exit status
>
> cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
> -Wredundant-decls -Werror-implicit-function-declaration -Wstrict-prototypes
> -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign
> -Wdeclaration-after-statement -std=gnu99  -O4 -march=i486 -mtune=generic
> -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
> /tmp/mplayer-configure-11474-32729/tmp.c -Ilibdvdread4 -I. -Iffmpeg
> -D_REENTRANT  -static  -ffast-math   -lncurses -lpng -lz -ljpeg -lopenjpeg
> -lgif -lz -lbz2 -lmad -lspeex -lgsm   -o
> /tmp/mplayer-configure-11474-32729/tmp tremor/bitwise.c
> /tmp/cc8h8u0N.o: In function `main':
> tmp.c:(.text+0x19): undefined reference to `theora_info_init'
> tmp.c:(.text+0x25): undefined reference to `theora_comment_init'
> collect2: ld returned 1 exit status
>
> Result is: no
>
> ============ Checking for mpg123 support ============
>
> cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
> -Wredundant-decls -Werror-implicit-function-declaration -Wstrict-prototypes
> -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign
> -Wdeclaration-after-statement -std=gnu99  -O4 -march=i486 -mtune=generic
> -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
> /tmp/mplayer-configure-11474-32729/tmp.c -Ilibdvdread4 -I. -Iffmpeg
> -D_REENTRANT  -static  -ffast-math   -lncurses -lpng -lz -ljpeg -lopenjpeg
> -lgif -lz -lbz2 -lmad -lspeex -lgsm   -o
> /tmp/mplayer-configure-11474-32729/tmp -lmpg123
> /usr/local/lib/libmpg123.a(layer2.o): In function
> `INT123_init_layer12_table_mmx':
> /home/twist/ffmpeg_latest/mpg123-1.13.3/src/libmpg123/layer2.c:100:
> undefined reference to `pow'
> /home/twist/ffmpeg_latest/mpg123-1.13.3/src/libmpg123/layer2.c:100:
> undefined reference to `pow'
> /home/twist/ffmpeg_latest/mpg123-1.13.3/src/libmpg123/layer2.c:100:
> undefined reference to `pow'
> /home/twist/ffmpeg_latest/mpg123-1.13.3/src/libmpg123/layer2.c:100:
> undefined reference to `pow'
> /home/twist/ffmpeg_latest/mpg123-1.13.3/src/libmpg123/layer2.c:100:
> undefined reference to `pow'
>
> /usr/local/lib/libmpg123.a(layer2.o):/home/twist/ffmpeg_latest/mpg123-1.13.3/src
> /libmpg123/layer2.c:100: more undefined references to `pow' follow
> collect2: ld returned 1 exit status
>
> Result is: no
>
> ============ Checking for libvpx ============
>
> cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
> -Wredundant-decls -Werror-implicit-function-declaration -Wstrict-prototypes
> -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign
> -Wdeclaration-after-statement -std=gnu99  -O4 -march=i486 -mtune=generic
> -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
> /tmp/mplayer-configure-11474-32729/tmp.c -Ilibdvdread4 -I. -Iffmpeg
> -D_REENTRANT  -DFF_API_MAX_STREAMS=0 -static -ffast-math   -lncurses -lpng
> -lz -ljpeg -lopenjpeg -lgif -lz -lbz2 -lmad -lspeex -lgsm -lopencore-amrnb
> -lopencore-amrwb -ldv -lxvidcore -lm -lpthread  -lfaac -lx264 -lpthread -lm
> -lfaac -lx264 -lpthread -lm -o /tmp/mplayer-configure-11474-32729/tmp -lvpx
> /usr/local/lib/libvpx.a(threading.c.o): In function
> `vp8_decoder_remove_threads':
> (.text+0x28f): undefined reference to `sem_post'
> /usr/local/lib/libvpx.a(threading.c.o): In function
> `vp8_decoder_remove_threads':
> (.text+0x2ab): undefined reference to `pthread_join'
> /usr/local/lib/libvpx.a(threading.c.o): In function
> `vp8_decoder_remove_threads':
> (.text+0x2d5): undefined reference to `sem_destroy'
> /usr/local/lib/libvpx.a(threading.c.o): In function
> `vp8_decoder_remove_threads':
> (.text+0x2eb): undefined reference to `sem_destroy'
> /usr/local/lib/libvpx.a(threading.c.o): In function
> `vp8_decoder_create_threads':
> (.text+0xcd5): undefined reference to `sem_init'
> /usr/local/lib/libvpx.a(threading.c.o): In function
> `vp8_decoder_create_threads':
> (.text+0xd26): undefined reference to `pthread_create'
> /usr/local/lib/libvpx.a(threading.c.o): In function
> `vp8_decoder_create_threads':
> (.text+0xd57): undefined reference to `sem_init'
> /usr/local/lib/libvpx.a(threading.c.o): In function
> `vp8_thread_decoding_proc':
> (.text+0x12d0): undefined reference to `sem_wait'
> /usr/local/lib/libvpx.a(threading.c.o): In function
> `vp8_thread_decoding_proc':
> (.text+0x1f58): undefined reference to `sem_post'
> /usr/local/lib/libvpx.a(threading.c.o): In function `vp8mt_decode_mb_rows':
> (.text+0x23d4): undefined reference to `sem_post'
> /usr/local/lib/libvpx.a(threading.c.o): In function `vp8mt_decode_mb_rows':
> (.text+0x2ffd): undefined reference to `sem_wait'
> /usr/local/lib/libvpx.a(postproc.c.o): In function `vp8_gaussian':
> (.text+0x16b4): undefined reference to `exp'
> /usr/local/lib/libvpx.a(postproc.c.o): In function `vp8_post_proc_frame':
> (.text+0x19c6): undefined reference to `exp'
> collect2: ld returned 1 exit status
>
> Result is: no
>
> Let me know if you need more information.
>
> Thanks,
> David
>

Anyone have any ideas on this?

Thanks,
David


More information about the MPlayer-users mailing list