make gcc -c -I. -I/usr/include/ffmpeg -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"6036\" -DXS_VERSION=\"6036\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" -O FFmpeg.c In file included from /usr/include/ffmpeg/avutil.h:40, from /usr/include/ffmpeg/avcodec.h:30, from /usr/include/ffmpeg/avformat.h:32, from ./ffmpeg-6036.c:21, from ffmpeg.h:2, from FFmpeg.xs:16: /usr/include/ffmpeg/common.h:61:26: error: internal.h: No such file or directory In file included from ffmpeg.h:2, from FFmpeg.xs:16: ./ffmpeg-6036.c:23:23: error: framehook.h: No such file or directory ./ffmpeg-6036.c:24:21: error: dsputil.h: No such file or directory ./ffmpeg-6036.c:44:21: error: version.h: No such file or directory ./ffmpeg-6036.c:45:22: error: cmdutils.h: No such file or directory In file included from ffmpeg.h:2, from FFmpeg.xs:16: ./ffmpeg-6036.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘options’ ./ffmpeg-6036.c:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token ./ffmpeg-6036.c:295: error: expected specifier-qualifier-list before ‘FifoBuffer’ ./ffmpeg-6036.c: In function ‘do_audio_out’: ./ffmpeg-6036.c:499: warning: implicit declaration of function ‘fifo_size’ ./ffmpeg-6036.c:499: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c:499: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c:532: warning: implicit declaration of function ‘clip’ ./ffmpeg-6036.c:542: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c:542: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c:558: warning: implicit declaration of function ‘fifo_write’ ./ffmpeg-6036.c:558: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c:559: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c:563: warning: implicit declaration of function ‘fifo_read’ ./ffmpeg-6036.c:563: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c:564: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c: In function ‘pre_process_video_frame’: ./ffmpeg-6036.c:656: warning: ‘img_copy’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2928) ./ffmpeg-6036.c:662: warning: implicit declaration of function ‘frame_hook_process’ ./ffmpeg-6036.c: In function ‘do_video_out’: ./ffmpeg-6036.c:776: warning: ‘img_crop’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2934) ./ffmpeg-6036.c:791: warning: ‘img_crop’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2934) ./ffmpeg-6036.c:807: warning: ‘img_pad’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2940) ./ffmpeg-6036.c:883: error: ‘AVOutputStream’ has no member named ‘logfile’ ./ffmpeg-6036.c:884: error: ‘AVOutputStream’ has no member named ‘logfile’ ./ffmpeg-6036.c: In function ‘do_video_stats’: ./ffmpeg-6036.c:926: error: ‘MAXINT64’ undeclared (first use in this function) ./ffmpeg-6036.c:926: error: (Each undeclared identifier is reported only once ./ffmpeg-6036.c:926: error: for each function it appears in.) ./ffmpeg-6036.c: In function ‘print_report’: ./ffmpeg-6036.c:978: warning: passing argument 1 of ‘url_ftell’ from incompatible pointer type ./ffmpeg-6036.c: In function ‘output_packet’: ./ffmpeg-6036.c:1113: warning: ‘avcodec_decode_audio’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2613) ./ffmpeg-6036.c:1165: warning: enumeration value ‘CODEC_TYPE_UNKNOWN’ not handled in switch ./ffmpeg-6036.c:1165: warning: enumeration value ‘CODEC_TYPE_DATA’ not handled in switch ./ffmpeg-6036.c:1165: warning: enumeration value ‘CODEC_TYPE_SUBTITLE’ not handled in switch ./ffmpeg-6036.c:1165: warning: enumeration value ‘CODEC_TYPE_ATTACHMENT’ not handled in switch ./ffmpeg-6036.c:1165: warning: enumeration value ‘CODEC_TYPE_NB’ not handled in switch ./ffmpeg-6036.c:1262: warning: implicit declaration of function ‘av_abort’ ./ffmpeg-6036.c:1348: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c:1354: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c:1355: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c:1371: error: ‘AVOutputStream’ has no member named ‘logfile’ ./ffmpeg-6036.c:1372: error: ‘AVOutputStream’ has no member named ‘logfile’ ./ffmpeg-6036.c: In function ‘av_encode’: ./ffmpeg-6036.c:1594: warning: implicit declaration of function ‘fifo_init’ ./ffmpeg-6036.c:1594: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c:1705: error: ‘AVOutputStream’ has no member named ‘logfile’ ./ffmpeg-6036.c:1931: warning: passing argument 1 of ‘url_ftell’ from incompatible pointer type ./ffmpeg-6036.c:1961: warning: implicit declaration of function ‘ABS’ ./ffmpeg-6036.c:2045: error: ‘AVOutputStream’ has no member named ‘logfile’ ./ffmpeg-6036.c:2046: error: ‘AVOutputStream’ has no member named ‘logfile’ ./ffmpeg-6036.c:2047: error: ‘AVOutputStream’ has no member named ‘logfile’ ./ffmpeg-6036.c:2049: warning: implicit declaration of function ‘fifo_free’ ./ffmpeg-6036.c:2049: error: ‘AVOutputStream’ has no member named ‘fifo’ ./ffmpeg-6036.c: In function ‘opt_image_format’: ./ffmpeg-6036.c:2091: error: ‘AVImageFormat’ undeclared (first use in this function) ./ffmpeg-6036.c:2091: error: ‘f’ undeclared (first use in this function) ./ffmpeg-6036.c:2093: error: ‘first_image_format’ undeclared (first use in this function) ./ffmpeg-6036.c:2101: error: ‘image_format’ undeclared (first use in this function) ./ffmpeg-6036.c: In function ‘opt_frame_rate’: ./ffmpeg-6036.c:2180: warning: ‘parse_frame_rate’ is deprecated (declared at /usr/include/ffmpeg/avformat.h:876) ./ffmpeg-6036.c: In function ‘opt_frame_size’: ./ffmpeg-6036.c:2260: warning: ‘parse_image_size’ is deprecated (declared at /usr/include/ffmpeg/avformat.h:870) ./ffmpeg-6036.c: In function ‘add_frame_hooker’: ./ffmpeg-6036.c:2665: warning: implicit declaration of function ‘frame_hook_add’ ./ffmpeg-6036.c: In function ‘opt_input_file’: ./ffmpeg-6036.c:2793: error: ‘AVFormatParameters’ has no member named ‘image_format’ ./ffmpeg-6036.c:2793: error: ‘image_format’ undeclared (first use in this function) ./ffmpeg-6036.c:2795: error: ‘AVFormatParameters’ has no member named ‘device’ ./ffmpeg-6036.c:2806: warning: implicit declaration of function ‘print_error’ ./ffmpeg-6036.c:2852: warning: passing argument 3 of ‘av_get_double’ from incompatible pointer type ./ffmpeg-6036.c:2865: warning: passing argument 3 of ‘av_get_double’ from incompatible pointer type ./ffmpeg-6036.c: In function ‘new_video_stream’: ./ffmpeg-6036.c:3014: warning: passing argument 3 of ‘av_get_double’ from incompatible pointer type ./ffmpeg-6036.c: In function ‘new_audio_stream’: ./ffmpeg-6036.c:3203: warning: passing argument 3 of ‘av_get_double’ from incompatible pointer type ./ffmpeg-6036.c:3230: warning: implicit declaration of function ‘pstrcpy’ ./ffmpeg-6036.c: In function ‘opt_new_subtitle_stream’: ./ffmpeg-6036.c:3267: warning: passing argument 3 of ‘av_get_double’ from incompatible pointer type ./ffmpeg-6036.c: In function ‘opt_output_file’: ./ffmpeg-6036.c:3330: warning: implicit declaration of function ‘strstart’ ./ffmpeg-6036.c:3388: warning: implicit declaration of function ‘filename_number_test’ ./ffmpeg-6036.c:3426: error: ‘AVFormatParameters’ has no member named ‘image_format’ ./ffmpeg-6036.c:3426: error: ‘image_format’ undeclared (first use in this function) ./ffmpeg-6036.c: In function ‘prepare_grab’: ./ffmpeg-6036.c:3501: error: ‘AVFormatParameters’ has no member named ‘device’ ./ffmpeg-6036.c:3528: error: ‘AVFormatParameters’ has no member named ‘device’ ./ffmpeg-6036.c: In function ‘show_formats’: ./ffmpeg-6036.c:3575: error: ‘AVImageFormat’ undeclared (first use in this function) ./ffmpeg-6036.c:3575: error: ‘image_fmt’ undeclared (first use in this function) ./ffmpeg-6036.c:3576: warning: ISO C90 forbids mixed declarations and code ./ffmpeg-6036.c:3620: error: ‘first_image_format’ undeclared (first use in this function) ./ffmpeg-6036.c: In function ‘show_version’: ./ffmpeg-6036.c:3924: error: expected ‘)’ before ‘FFMPEG_VERSION’ ./ffmpeg-6036.c: In function ‘opt_default’: ./ffmpeg-6036.c:3933: warning: initialization discards qualifiers from pointer target type ./ffmpeg-6036.c: At top level: ./ffmpeg-6036.c:3952: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘options’ ./ffmpeg-6036.c: In function ‘show_banner’: ./ffmpeg-6036.c:4115: error: expected ‘)’ before ‘FFMPEG_VERSION’ ./ffmpeg-6036.c: In function ‘show_help’: ./ffmpeg-6036.c:4173: warning: implicit declaration of function ‘show_help_options’ ./ffmpeg-6036.c:4173: error: ‘options’ undeclared (first use in this function) ./ffmpeg-6036.c:4174: error: ‘OPT_EXPERT’ undeclared (first use in this function) ./ffmpeg-6036.c:4174: error: ‘OPT_AUDIO’ undeclared (first use in this function) ./ffmpeg-6036.c:4174: error: ‘OPT_VIDEO’ undeclared (first use in this function) ./ffmpeg-6036.c:4176: error: ‘OPT_GRAB’ undeclared (first use in this function) ./ffmpeg-6036.c:4188: error: ‘OPT_SUBTITLE’ undeclared (first use in this function) ./ffmpeg-6036.c: In function ‘main’: ./ffmpeg-6036.c:4221: warning: implicit declaration of function ‘parse_options’ ./ffmpeg-6036.c:4221: error: ‘options’ undeclared (first use in this function) ./ffmpeg-6036.c:4248: warning: passing argument 1 of ‘url_fclose’ from incompatible pointer type ./ffmpeg-6036.c:4256: warning: ‘av_free_static’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2891) FFmpeg.xs: At top level: FFmpeg.xs:19: warning: type defaults to ‘int’ in declaration of ‘OptionDef’ FFmpeg.xs:19: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token FFmpeg.xs:20: warning: conflicting types for ‘print_error’ ./ffmpeg-6036.c:2806: warning: previous implicit declaration of ‘print_error’ was here FFmpeg.xs:21: warning: type defaults to ‘int’ in declaration of ‘OptionDef’ FFmpeg.xs:21: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token FFmpeg.c: In function ‘XS_FFmpeg_foo’: FFmpeg.c:44: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__init_ffmpeg’: FFmpeg.c:64: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__run_ffmpeg’: FFmpeg.c:80: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__cleanup’: FFmpeg.c:96: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_format’: FFmpeg.c:119: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_image_format’: FFmpeg.c:136: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_input_file’: FFmpeg.c:153: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_overwrite’: FFmpeg.c:170: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_recording_time’: FFmpeg.c:187: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_start_time’: FFmpeg.c:204: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_verbose’: FFmpeg.c:221: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_video_bitrate’: FFmpeg.c:238: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_video_rate’: FFmpeg.c:255: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_video_geometry’: FFmpeg.c:272: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_video_codec’: FFmpeg.c:289: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_audio_bitrate’: FFmpeg.c:306: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_audio_rate’: FFmpeg.c:323: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_audio_codec’: FFmpeg.c:340: warning: unused variable ‘self’ FFmpeg.c: In function ‘XS_FFmpeg__set_output_file’: FFmpeg.c:357: warning: unused variable ‘self’ FFmpeg.xs: In function ‘XS_FFmpeg__image_formats’: FFmpeg.xs:357: error: ‘AVImageFormat’ undeclared (first use in this function) FFmpeg.xs:357: error: ‘image_fmt’ undeclared (first use in this function) FFmpeg.xs:358: warning: ISO C90 forbids mixed declarations and code FFmpeg.xs:364: error: ‘first_image_format’ undeclared (first use in this function) FFmpeg.xs:360: warning: unused variable ‘pp’ FFmpeg.xs:359: warning: unused variable ‘p2’ FFmpeg.xs:359: warning: unused variable ‘p’ FFmpeg.xs:358: warning: unused variable ‘up’ FFmpeg.xs:356: warning: unused variable ‘ofmt’ FFmpeg.xs:355: warning: unused variable ‘ifmt’ FFmpeg.c:374: warning: unused variable ‘self’ FFmpeg.xs: In function ‘XS_FFmpeg__file_formats’: FFmpeg.xs:390: error: ‘AVImageFormat’ undeclared (first use in this function) FFmpeg.xs:390: error: ‘image_fmt’ undeclared (first use in this function) FFmpeg.xs:391: warning: ISO C90 forbids mixed declarations and code FFmpeg.xs:439: warning: ISO C90 forbids mixed declarations and code FFmpeg.xs:393: warning: unused variable ‘pp’ FFmpeg.xs:392: warning: unused variable ‘p2’ FFmpeg.xs:392: warning: unused variable ‘p’ FFmpeg.xs:391: warning: unused variable ‘up’ FFmpeg.c:418: warning: unused variable ‘self’ FFmpeg.xs: In function ‘XS_FFmpeg__init_AVFormatContext’: FFmpeg.xs:470: warning: cast from pointer to integer of different size FFmpeg.c:514: warning: unused variable ‘self’ FFmpeg.xs: In function ‘XS_FFmpeg__free_AVFormatContext’: FFmpeg.xs:483: warning: cast to pointer from integer of different size FFmpeg.c:534: warning: unused variable ‘self’ FFmpeg.xs: In function ‘XS_FFmpeg__init_streamgroup’: FFmpeg.xs:501: warning: cast to pointer from integer of different size FFmpeg.xs:501: warning: ISO C90 forbids mixed declarations and code FFmpeg.xs:506: error: ‘AVFormatParameters’ has no member named ‘image_format’ FFmpeg.xs:506: error: ‘image_format’ undeclared (first use in this function) FFmpeg.xs:575: warning: ISO C90 forbids mixed declarations and code FFmpeg.xs:576: warning: unused variable ‘codec’ FFmpeg.xs:504: warning: unused variable ‘buf’ FFmpeg.xs:503: warning: unused variable ‘flags’ FFmpeg.c:556: warning: unused variable ‘self’ FFmpeg.xs: In function ‘XS_FFmpeg__codecs’: FFmpeg.xs:633: error: ‘AVImageFormat’ undeclared (first use in this function) FFmpeg.xs:633: error: ‘image_fmt’ undeclared (first use in this function) FFmpeg.xs:634: warning: ISO C90 forbids mixed declarations and code FFmpeg.xs:636: warning: unused variable ‘pp’ FFmpeg.xs:634: warning: unused variable ‘up’ FFmpeg.xs:632: warning: unused variable ‘ofmt’ FFmpeg.xs:631: warning: unused variable ‘ifmt’ FFmpeg.c:700: warning: unused variable ‘self’ make: *** [FFmpeg.o] Error 1