Hello,

 

I followed steps given at link https://freeswitch.org/confluence/display/FREESWITCH/CentOS+7+and+RHEL+7 to compile FreeSWITCH v1.10.3 code.

 

But getting following errors on make :

 

  CC       libavmod_la-mod_av.lo

  CC       libavmod_la-avformat.lo

In file included from /usr/include/ffmpeg/libavutil/imgutils.h:31:0,

                 from avformat.c:39:

/usr/include/ffmpeg/libavutil/pixdesc.h:34:5: error: type of bit-field 'plane' is a GCC extension [-Werror=pedantic]

     uint16_t plane        : 2;

     ^

/usr/include/ffmpeg/libavutil/pixdesc.h:40:5: error: type of bit-field 'step_minus1' is a GCC extension [-Werror=pedantic]

     uint16_t step_minus1  : 3;

     ^

/usr/include/ffmpeg/libavutil/pixdesc.h:46:5: error: type of bit-field 'offset_plus1' is a GCC extension [-Werror=pedantic]

     uint16_t offset_plus1 : 3;

     ^

/usr/include/ffmpeg/libavutil/pixdesc.h:52:5: error: type of bit-field 'shift' is a GCC extension [-Werror=pedantic]

     uint16_t shift        : 3;

     ^

/usr/include/ffmpeg/libavutil/pixdesc.h:57:5: error: type of bit-field 'depth_minus1' is a GCC extension [-Werror=pedantic]

     uint16_t depth_minus1 : 4;

     ^

avformat.c:44:38: fatal error: libavresample/avresample.h: No such file or directory

#include <libavresample/avresample.h>

                                      ^

cc1: all warnings being treated as errors

compilation terminated.

 

Am I missing something?

 

Thanks,

Puneet