[MPlayer-users] MPlayer Required GCC Version

Kevan Hashemi hashemi at opensourceinstruments.com
Wed May 15 18:39:29 EEST 2019


Greetings,

I'm working on a 64-bit Scientific Linux 6.1 machine, with gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23). I downalod the MPlayer sources using this link:

http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.4.tar.xz

And binary codecs with this link:

http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2

I note that the binary codec shared library "cook.so" was last modified on 15th February 2005.

I configure with:

[mplayer]$ ./configure --codecsdir="../codecs"

That goes fine. Now I start the build with:

[mplayer]$ make

After a few lines, I get:

WARNING: libavdevice/alldevices.c libavfilter/allfilters.c libavformat/allformats.c libavcodec/allcodecs.c libavcodec/bitstream_filters.c libavcodec/parsers.c libavformat/protocols.c newer than config.h, rerun configure

and later:

CC	libavcodec/diracdec.o
In file included from ./libavcodec/mpegvideo.h:35,
                  from libavcodec/diracdec.c:39:
./libavcodec/error_resilience.h:23:23: warning: stdatomic.h: No such file or directory
In file included from ./libavcodec/mpegvideo.h:35,
                  from libavcodec/diracdec.c:39:
./libavcodec/error_resilience.h:64: error: expected specifier-qualifier-list before 'atomic_int'
make[1]: *** [libavcodec/diracdec.o] Error 1
make[1]: Leaving directory `/media/sf_Scratch/ALT/mplayer/mplayer/ffmpeg'
make: *** [ffmpeg/libavcodec/libavcodec.a] Error 2

I re-run configure but the above error persists. I note that there are several copies of stdatomic.h in the distribution:

[mplayer]$ find ./ -name stdatomic.h
./ffmpeg/compat/atomics/dummy/stdatomic.h
./ffmpeg/compat/atomics/gcc/stdatomic.h
./ffmpeg/compat/atomics/pthread/stdatomic.h
./ffmpeg/compat/atomics/suncc/stdatomic.h
./ffmpeg/compat/atomics/win32/stdatomic.h

This looks like an effort to compile C11 language usage on a GCC that pre-dates GCC 4.7+. Is it possible to compile MPlayer with GCC 4.4.7?

Best, Kevan

-- 
Kevan Hashemi, President
Open Source Instruments Inc.
www.opensourceinstruments.com


More information about the MPlayer-users mailing list