Opened 3 years ago
Last modified 2 years ago
#64503 assigned defect
chromaprint @1.5.1 does not build again on macOS High Sierra, Version 10.13.6
Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | kurthindenburg (Kurt Hindenburg) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | highsierra | Cc: | |
Port: | chromaprint |
Description
ffmpeg-devel
was upgraded to @5.0_0+gpl2+gpl3+nonfree+x11
and so chromaprint
needed to be rebuilt. This fails with:
[ 44%] Building CXX object src/cmd/CMakeFiles/fpcalc.dir/fpcalc.cpp.o cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/build/src/cmd && /usr/bin/clang++ -DHAVE_CONFIG_H -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src -I/opt/local/include -pipe -Os -stdlib=libc++ -DNDEBUG -arch x86_64 -mmacosx-version-min=10.13 -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT src/cmd/CMakeFiles/fpcalc.dir/fpcalc.cpp.o -MF CMakeFiles/fpcalc.dir/fpcalc.cpp.o.d -o CMakeFiles/fpcalc.dir/fpcalc.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/cmd/fpcalc.cpp In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:102:2: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations] av_init_packet(&m_packet); ^ /opt/local/include/libavcodec/packet.h:505:1: note: 'av_init_packet' has been explicitly marked deprecated here attribute_deprecated ^ /opt/local/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated' # define attribute_deprecated __attribute__((deprecated)) ^ In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:117:16: error: assigning to 'AVInputFormat *' from incompatible type 'const AVInputFormat *' m_input_fmt = av_find_input_format(name); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:138:5: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations] av_init_packet(&m_packet); ^ /opt/local/include/libavcodec/packet.h:505:1: note: 'av_init_packet' has been explicitly marked deprecated here attribute_deprecated ^ /opt/local/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated' # define attribute_deprecated __attribute__((deprecated)) ^ In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:157:8: error: no matching function for call to 'av_find_best_stream' ret = av_find_best_stream(m_format_ctx, AVMEDIA_TYPE_AUDIO, -1, -1, &codec, 0); ^~~~~~~~~~~~~~~~~~~ /opt/local/include/libavformat/avformat.h:2157:5: note: candidate function not viable: no known conversion from 'AVCodec **' to 'const AVCodec **' for 5th argument int av_find_best_stream(AVFormatContext *ic, ^ In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:164:55: error: no member named 'codec' in 'AVStream' m_codec_ctx = m_format_ctx->streams[m_stream_index]->codec; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:259:4: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations] av_init_packet(&m_packet); ^ /opt/local/include/libavcodec/packet.h:505:1: note: 'av_init_packet' has been explicitly marked deprecated here attribute_deprecated ^ /opt/local/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated' # define attribute_deprecated __attribute__((deprecated)) ^ In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:281:9: error: use of undeclared identifier 'avcodec_decode_audio4'; did you mean 'avcodec_decode_subtitle2'? ret = avcodec_decode_audio4(m_codec_ctx, m_frame, &m_got_frame, &m_packet); ^~~~~~~~~~~~~~~~~~~~~ avcodec_decode_subtitle2 /opt/local/include/libavcodec/avcodec.h:2531:5: note: 'avcodec_decode_subtitle2' declared here int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, ^ In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/cmd/fpcalc.cpp:7: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/chromaprint-1.5.1/src/audio/ffmpeg_audio_reader.h:281:44: error: cannot initialize a parameter of type 'AVSubtitle *' with an lvalue of type 'AVFrame *' ret = avcodec_decode_audio4(m_codec_ctx, m_frame, &m_got_frame, &m_packet); ^~~~~~~ /opt/local/include/libavcodec/avcodec.h:2531:65: note: passing argument to parameter 'sub' here int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, ^ 3 warnings and 5 errors generated. make[2]: *** [src/cmd/CMakeFiles/fpcalc.dir/fpcalc.cpp.o] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/build' make[1]: *** [src/cmd/CMakeFiles/fpcalc.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 46%] Linking CXX static library libgtest.a cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/build/tests && /opt/local/bin/cmake -P CMakeFiles/gtest.dir/cmake_clean_target.cmake cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/build/tests && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/gtest.dir/link.txt --verbose=ON /usr/bin/ar qc libgtest.a CMakeFiles/gtest.dir/__/src/3rdparty/googletest/googletest/src/gtest-all.cc.o /usr/bin/ranlib libgtest.a make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/build' [ 46%] Built target gtest
Attachments (1)
Change History (3)
Changed 3 years ago by ballapete (Peter "Pete" Dyballa)
comment:1 Changed 3 years ago by jmroot (Joshua Root)
Cc: | khindenburg@… removed |
---|---|
Keywords: | highsierra added; hoghsierra removed |
Owner: | set to kurthindenburg |
Status: | new → assigned |
comment:2 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)
It just built! with AppleClang 10.0.0.10001044
. (But I forgot what I wanted to do with it… Something with CDpedia?) The ticket can be closed now.
Note: See
TracTickets for help on using
tickets.
Main.log from High Sierra 10.13.6