[Slackbuilds-users] Is the chromaprint SlackBuild failing for anyone else?

Matteo Bernardini matteo.bernardini at gmail.com
Sat Jul 8 04:57:09 UTC 2023


someone reported a similar error and it was because he was on Slackware
15.0 but he, for some reason, was using a repository of SlackBuild scripts
for Slackware current.
make sure you are using a repository of scripts for your version of
Slackware (that includes checking the settings of any third party automated
build tool you are using).

Matteo

Il giorno sab 8 lug 2023 alle ore 04:52 yabobay <yabobayyabobay at gmail.com>
ha scritto:

> On slackware64 15, it fails for me. I don't know if i should include
> output, but here it is:
>
> /tmp/SBo/chromaprint-1.5.1/src/utils/base64.cpp: In function ‘void
> chromaprint::Base64Encode(const string&, std::string&)’:
> /tmp/SBo/chromaprint-1.5.1/src/utils/base64.cpp:12:20: warning: variable
> ‘end’ set but not used [-Wunused-but-set-variable]
>     12 |         const auto end = Base64Encode(src.cbegin(), src.cend(),
> dest.begin());
>        |                    ^~~
> /tmp/SBo/chromaprint-1.5.1/src/utils/base64.cpp: In function ‘void
> chromaprint::Base64Decode(const string&, std::string&)’:
> /tmp/SBo/chromaprint-1.5.1/src/utils/base64.cpp:26:20: warning: variable
> ‘end’ set but not used [-Wunused-but-set-variable]
>     26 |         const auto end = Base64Decode(src.cbegin(), src.cend(),
> dest.begin());
>        |                    ^~~
> [ 36%] Building C object
> src/CMakeFiles/chromaprint_objs.dir/avresample/resample2.c.o
> [ 36%] Built target chromaprint_objs
> [ 38%] Building CXX object src/CMakeFiles/chromaprint.dir/chromaprint.cpp.o
> [ 40%] Linking CXX shared library libchromaprint.so
> [ 40%] Built target chromaprint
> [ 42%] Building CXX object src/cmd/CMakeFiles/fpcalc.dir/fpcalc.cpp.o
> In file included from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h: In
> constructor ‘chromaprint::FFmpegAudioReader::FFmpegAudioReader()’:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:102:23:
> warning: ‘void av_init_packet(AVPacket*)’ is deprecated
> [-Wdeprecated-declarations]
>    102 |         av_init_packet(&m_packet);
>        |         ~~~~~~~~~~~~~~^~~~~~~~~~~
> In file included from /usr/include/libavcodec/bsf.h:30,
>                   from /usr/include/libavcodec/avcodec.h:44,
>                   from
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:18,
>                   from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /usr/include/libavcodec/packet.h:488:6: note: declared here
>    488 | void av_init_packet(AVPacket *pkt);
>        |      ^~~~~~~~~~~~~~
> In file included from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h: In member
> function ‘bool chromaprint::FFmpegAudioReader::Open(const string&)’:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:138:19:
> warning: ‘void av_init_packet(AVPacket*)’ is deprecated
> [-Wdeprecated-declarations]
>    138 |     av_init_packet(&m_packet);
>        |     ~~~~~~~~~~~~~~^~~~~~~~~~~
> In file included from /usr/include/libavcodec/bsf.h:30,
>                   from /usr/include/libavcodec/avcodec.h:44,
>                   from
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:18,
>                   from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /usr/include/libavcodec/packet.h:488:6: note: declared here
>    488 | void av_init_packet(AVPacket *pkt);
>        |      ^~~~~~~~~~~~~~
> In file included from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:144:69:
> error: invalid conversion from ‘const AVInputFormat*’ to
> ‘AVInputFormat*’ [-fpermissive]
>    144 |         ret = avformat_open_input(&m_format_ctx,
> file_name.c_str(), m_input_fmt, &m_input_opts);
> | ^~~~~~~~~~~
> | |
> | const AVInputFormat*
> In file included from
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:19,
>                   from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /usr/include/libavformat/avformat.h:2226:90: note:   initializing
> argument 3 of ‘int avformat_open_input(AVFormatContext**, const char*,
> AVInputFormat*, AVDictionary**)’
>   2226 | int avformat_open_input(AVFormatContext **ps, const char *url,
> ff_const59 AVInputFormat *fmt, AVDictionary **options);
> | ~~~~~~~~~~~~~~~^~~
> In file included from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:157:77:
> error: invalid conversion from ‘const AVCodec**’ to ‘AVCodec**’
> [-fpermissive]
>    157 |         ret = av_find_best_stream(m_format_ctx,
> AVMEDIA_TYPE_AUDIO, -1, -1, &codec, 0);
> | ^~~~~~
> | |
> | const AVCodec**
> In file included from
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:19,
>                   from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /usr/include/libavformat/avformat.h:2301:35: note:   initializing
> argument 5 of ‘int av_find_best_stream(AVFormatContext*, AVMediaType,
> int, int, AVCodec**, int)’
>   2301 |                         AVCodec **decoder_ret,
>        |                         ~~~~~~~~~~^~~~~~~~~~~
> In file included from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:169:62:
> warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
>    169 |         m_codec_ctx =
> m_format_ctx->streams[m_stream_index]->codec;
> | ^~~~~
> In file included from
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:19,
>                   from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /usr/include/libavformat/avformat.h:888:21: note: declared here
>    888 |     AVCodecContext *codec;
>        |                     ^~~~~
> In file included from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:169:62:
> warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
>    169 |         m_codec_ctx =
> m_format_ctx->streams[m_stream_index]->codec;
> | ^~~~~
> In file included from
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:19,
>                   from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /usr/include/libavformat/avformat.h:888:21: note: declared here
>    888 |     AVCodecContext *codec;
>        |                     ^~~~~
> In file included from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:169:62:
> warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
>    169 |         m_codec_ctx =
> m_format_ctx->streams[m_stream_index]->codec;
> | ^~~~~
> In file included from
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:19,
>                   from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /usr/include/libavformat/avformat.h:888:21: note: declared here
>    888 |     AVCodecContext *codec;
>        |                     ^~~~~
> In file included from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h: In member
> function ‘bool chromaprint::FFmpegAudioReader::Read(const int16_t**,
> size_t*)’:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:265:39:
> warning: ‘void av_init_packet(AVPacket*)’ is deprecated
> [-Wdeprecated-declarations]
>    265 |                         av_init_packet(&m_packet);
>        |                         ~~~~~~~~~~~~~~^~~~~~~~~~~
> In file included from /usr/include/libavcodec/bsf.h:30,
>                   from /usr/include/libavcodec/avcodec.h:44,
>                   from
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:18,
>                   from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /usr/include/libavcodec/packet.h:488:6: note: declared here
>    488 | void av_init_packet(AVPacket *pkt);
>        |      ^~~~~~~~~~~~~~
> In file included from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:288:44:
> warning: ‘int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*,
> const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
>    288 |                 ret = avcodec_decode_audio4(m_codec_ctx,
> m_frame, &m_got_frame, &m_packet);
>        |
> ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from
> /tmp/SBo/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:18,
>                   from /tmp/SBo/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7:
> /usr/include/libavcodec/avcodec.h:3047:5: note: declared here
>   3047 | int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
>        |     ^~~~~~~~~~~~~~~~~~~~~
> make[2]: *** [src/cmd/CMakeFiles/fpcalc.dir/build.make:76:
> src/cmd/CMakeFiles/fpcalc.dir/fpcalc.cpp.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:244:
> src/cmd/CMakeFiles/fpcalc.dir/all] Error 2
> make: *** [Makefile:136: all] Error 2
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20230708/9d7385be/attachment-0001.htm>


More information about the SlackBuilds-users mailing list