DeaDBeeF-Player / deadbeef

DeaDBeeF Player
https://deadbeef.sourceforge.io/
Other
1.62k stars 176 forks source link

compilation problem on fedora 18 alpha #779

Closed Oleksiy-Yakovenko closed 9 years ago

Oleksiy-Yakovenko commented 9 years ago

Original issue 877 created by Alexey-Yakovenko on 2012-09-06T13:23:46.000Z:

compilation on fedora 18 alpha fails with the following error messages:

/usr/include/alsa/pcm.h:621:5: note: expected 'unsigned int _' but argument is of type 'int *' alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_UNKNOWN' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U8' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U16_LE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U16_BE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_S24_LE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_S24_BE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U24_LE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U24_BE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U32_LE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U32_BE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_FLOAT64_LE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_FLOAT64_BE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_IEC958_SUBFRAME_LE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_IEC958_SUBFRAME_BE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_MU_LAW' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_A_LAW' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_IMA_ADPCM' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_MPEG' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_GSM' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_SPECIAL' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U24_3LE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U24_3BE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_S20_3LE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_S20_3BE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U20_3LE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U20_3BE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_S18_3LE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_S18_3BE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U18_3LE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U18_3BE' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_LAST' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U16' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_S24' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U24' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_U32' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_FLOAT64' not handled in switch [-Wswitch] alsa.c:262:5: warning: enumeration value 'SND_PCM_FORMAT_IEC958_SUBFRAME' not handled in switch [-Wswitch] alsa.c:108:1: warning: label 'retry' defined but not used [-Wunused-label] alsa.c: At top level: alsa.c:86:1: warning: 'palsa_get_channels' declared 'static' but never defined [-Wunused-function] alsa.c:89:1: warning: 'palsa_get_endianness' declared 'static' but never defined [-Wunused-function] CCLD alsa.la make[2]: Leaving directory /root/rpmbuild/BUILD/deadbeef-0.5.5/plugins/alsa' Making all in plugins/ffmpeg make[2]: Entering directory/root/rpmbuild/BUILD/deadbeef-0.5.5/plugins/ffmpeg' CC ffmpeg.lo ffmpeg.c: In function 'ffmpeg_init': ffmpeg.c:142:5: warning: implicit declaration of function 'av_open_input_file' [-Wimplicit-function-declaration] ffmpeg.c:154:5: warning: 'av_find_stream_info' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1357) [-Wdeprecated-declarations] ffmpeg.c:181:5: warning: 'avcodec_open' is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations] ffmpeg.c:188:5: warning: implicit declaration of function 'av_get_bits_per_sample_format' [-Wimplicit-function-declaration] ffmpeg.c:217:20: warning: left-hand operand of comma expression has no effect [-Wunused-value] ffmpeg.c:190:11: warning: unused variable 'duration' [-Wunused-variable] ffmpeg.c: In function 'ffmpeg_free': ffmpeg.c:256:13: warning: 'av_close_input_file' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1533) [-Wdeprecated-declarations] ffmpeg.c: In function 'ffmpeg_read': ffmpeg.c:303:13: warning: 'avcodec_decode_audio3' is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3658) [-Wdeprecated-declarations] ffmpeg.c: In function 'ffmpeg_seek': ffmpeg.c:412:20: warning: unused variable 'info' [-Wunused-variable] ffmpeg.c: In function 'ffmpeg_read_metadata_internal': ffmpeg.c:464:5: error: unknown type name 'AVMetadata' ffmpeg.c:464:22: warning: initialization from incompatible pointer type [enabled by default] ffmpeg.c:467:9: error: unknown type name 'AVMetadataTag' ffmpeg.c:469:13: warning: implicit declaration of function 'av_metadata_get' [-Wimplicit-function-declaration] ffmpeg.c:469:53: error: 'AV_METADATA_DONT_STRDUP_KEY' undeclared (first use in this function) ffmpeg.c:469:53: note: each undeclared identifier is reported only once for each function it appears in ffmpeg.c:469:83: error: 'AV_METADATA_DONT_STRDUP_VAL' undeclared (first use in this function) ffmpeg.c:471:60: error: request for member 'value' in something not a structure or union ffmpeg.c: In function 'ffmpeg_insert': ffmpeg.c:511:5: warning: 'av_find_stream_info' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1357) [-Wdeprecated-declarations] ffmpeg.c:533:9: warning: 'av_close_input_file' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1533) [-Wdeprecated-declarations] ffmpeg.c:539:5: warning: 'avcodec_open' is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations] ffmpeg.c:541:9: warning: 'av_close_input_file' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1533) [-Wdeprecated-declarations] ffmpeg.c:580:9: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'int64_t' [-Wformat] ffmpeg.c:580:9: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'int64_t' [-Wformat] ffmpeg.c:595:5: warning: 'av_close_input_file' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1533) [-Wdeprecated-declarations] ffmpeg.c:545:9: warning: unused variable 'bps' [-Wunused-variable] ffmpeg.c: At top level: ffmpeg.c:612:17: error: unknown type name 'URLContext' ffmpeg.c:637:17: error: unknown type name 'URLContext' ffmpeg.c:645:18: error: unknown type name 'URLContext' ffmpeg.c:651:17: error: unknown type name 'URLContext' ffmpeg.c:669:18: error: unknown type name 'URLContext' ffmpeg.c:676:1: error: unknown type name 'URLProtocol' ffmpeg.c:677:5: error: field name not in record or union initializer ffmpeg.c:677:5: error: (near initialization for 'vfswrapper') ffmpeg.c:677:5: warning: initialization makes integer from pointer without a cast [enabled by default] ffmpeg.c:677:5: warning: (near initialization for 'vfswrapper') [enabled by default] ffmpeg.c:677:5: error: initializer element is not computable at load time ffmpeg.c:677:5: error: (near initialization for 'vfswrapper') ffmpeg.c:678:5: error: field name not in record or union initializer ffmpeg.c:678:5: error: (near initialization for 'vfswrapper') ffmpeg.c:678:17: error: 'ffmpeg_vfs_open' undeclared here (not in a function) ffmpeg.c:678:5: warning: excess elements in scalar initializer [enabled by default] ffmpeg.c:678:5: warning: (near initialization for 'vfswrapper') [enabled by default] ffmpeg.c:679:5: error: field name not in record or union initializer ffmpeg.c:679:5: error: (near initialization for 'vfswrapper') ffmpeg.c:679:17: error: 'ffmpeg_vfs_read' undeclared here (not in a function) ffmpeg.c:679:5: warning: excess elements in scalar initializer [enabled by default] ffmpeg.c:679:5: warning: (near initialization for 'vfswrapper') [enabled by default] ffmpeg.c:680:5: error: field name not in record or union initializer ffmpeg.c:680:5: error: (near initialization for 'vfswrapper') ffmpeg.c:680:18: error: 'ffmpeg_vfs_write' undeclared here (not in a function) ffmpeg.c:680:5: warning: excess elements in scalar initializer [enabled by default] ffmpeg.c:680:5: warning: (near initialization for 'vfswrapper') [enabled by default] ffmpeg.c:681:5: error: field name not in record or union initializer ffmpeg.c:681:5: error: (near initialization for 'vfswrapper') ffmpeg.c:681:17: error: 'ffmpeg_vfs_seek' undeclared here (not in a function) ffmpeg.c:681:5: warning: excess elements in scalar initializer [enabled by default] ffmpeg.c:681:5: warning: (near initialization for 'vfswrapper') [enabled by default] ffmpeg.c:682:5: error: field name not in record or union initializer ffmpeg.c:682:5: error: (near initialization for 'vfswrapper') ffmpeg.c:682:18: error: 'ffmpeg_vfs_close' undeclared here (not in a function) ffmpeg.c:682:5: warning: excess elements in scalar initializer [enabled by default] ffmpeg.c:682:5: warning: (near initialization for 'vfswrapper') [enabled by default] ffmpeg.c: In function 'ffmpeg_start': ffmpeg.c:732:5: warning: implicit declaration of function 'avcodec_init' [-Wimplicit-function-declaration] ffmpeg.c:735:5: warning: implicit declaration of function 'av_register_protocol2' [-Wimplicit-function-declaration] ffmpeg.c: In function 'ffmpeg_read_metadata': ffmpeg.c:763:23: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] ffmpeg.c:782:5: warning: 'av_find_stream_info' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1357) [-Wdeprecated-declarations] ffmpeg.c:801:9: warning: 'av_close_input_file' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1533) [-Wdeprecated-declarations] ffmpeg.c:804:5: warning: 'avcodec_open' is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations] ffmpeg.c:806:9: warning: 'av_close_input_file' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1533) [-Wdeprecated-declarations] ffmpeg.c:813:5: warning: 'av_close_inputfile' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1533) [-Wdeprecated-declarations] make[2]: ** [ffmpeg.lo] Error 1 make[2]: Leaving directory /root/rpmbuild/BUILD/deadbeef-0.5.5/plugins/ffmpeg' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/root/rpmbuild/BUILD/deadbeef-0.5.5' make: *\ [all] Error 2

additional infos:

installed packages: ffmpeg-devel-0.11.1-2.fc18.x86_64 ffmpeg-libs-0.11.1-2.fc18.x86_64 ffmpeg-0.11.1-2.fc18.x86_64 gcc (GCC) 4.7.1 20120720 (Red Hat 4.7.1-5)

Oleksiy-Yakovenko commented 9 years ago

Comment #1 originally posted by Alexey-Yakovenko on 2012-09-06T13:31:10.000Z:

ffmpeg is not supported anymore, they have proven to be unreliable to work with, as they are not providing any API compatibility between releases. please build with --disable-ffmpeg (this option is default in git already).