Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 741969 - media-sound/audacity-2.4.2-r1[-flac] - ld: src/CMakeFiles/Audacity.dir/ondemand/ODDecodeFlacTask.cpp.o: in function `ODFlacDecoder::ReadHeader()': ODDecodeFlacTask.cpp:(.text+0x768): undefined reference to `FLAC::Decoder::File::File()'
Summary: media-sound/audacity-2.4.2-r1[-flac] - ld: src/CMakeFiles/Audacity.dir/ondema...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Professional Audio Applications Maintainers
Depends on:
Reported: 2020-09-12 19:32 UTC by ernsteiswuerfel
Modified: 2020-10-28 15:50 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---

emerge --info (file_741969.txt,5.91 KB, text/plain)
2020-09-12 19:32 UTC, ernsteiswuerfel
build.log.xz (audacity-2.4.2-r1:20200912-191053.log.xz,25.16 KB, application/x-xz)
2020-09-12 19:33 UTC, ernsteiswuerfel

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel 2020-09-12 19:32:36 UTC
Encountered at tatt-testing bug #740054.

All builds with USE='-flac' fail:
USE='-alsa -doc -ffmpeg flac id3tag jack -ladspa -lv2 -mad -ogg oss -portmidi portmixer portsmf -sbsms -twolame -vamp -vorbis -vst' succeeded for =media-sound/audacity-2.4.2-r1
USE='-alsa -doc -ffmpeg -flac id3tag jack -ladspa lv2 mad -ogg oss -portmidi -portmixer portsmf sbsms -twolame -vamp -vorbis -vst' failed for =media-sound/audacity-2.4.2-r1
USE='alsa doc -ffmpeg flac -id3tag -jack ladspa -lv2 mad ogg oss -portmidi portmixer -portsmf -sbsms twolame -vamp -vorbis -vst' succeeded for =media-sound/audacity-2.4.2-r1
USE='-alsa doc -ffmpeg -flac id3tag jack ladspa -lv2 -mad ogg oss -portmidi portmixer -portsmf sbsms -twolame vamp -vorbis -vst' failed for =media-sound/audacity-2.4.2-r1
USE='alsa -doc -ffmpeg flac -id3tag jack ladspa -lv2 -mad -ogg -oss -portmidi -portmixer -portsmf -sbsms twolame vamp -vorbis -vst' succeeded for =media-sound/audacity-2.4.2-r1
USE='alsa -doc ffmpeg flac id3tag -jack ladspa lv2 mad -ogg oss portmidi -portmixer portsmf sbsms twolame vamp vorbis -vst' succeeded for =media-sound/audacity-2.4.2-r1
USE='-alsa doc -ffmpeg -flac id3tag -jack ladspa lv2 mad ogg oss -portmidi portmixer portsmf sbsms twolame -vamp -vorbis vst' failed for =media-sound/audacity-2.4.2-r1
USE='alsa doc ffmpeg flac id3tag jack ladspa -lv2 -mad ogg oss portmidi portmixer portsmf sbsms -twolame -vamp vorbis vst' succeeded for =media-sound/audacity-2.4.2-r1
USE='alsa -doc -ffmpeg -flac id3tag jack ladspa lv2 mad -ogg -oss -portmidi portmixer portsmf -sbsms twolame -vamp vorbis vst' failed for =media-sound/audacity-2.4.2-r1
USE='-alsa -doc -ffmpeg -flac id3tag jack ladspa lv2 mad -ogg oss -portmidi portmixer -portsmf sbsms twolame -vamp vorbis vst' failed for =media-sound/audacity-2.4.2-r1
USE='alsa doc -ffmpeg -flac id3tag -jack ladspa lv2 -mad -ogg -oss -portmidi portmixer portsmf sbsms -twolame vamp vorbis vst' failed for =media-sound/audacity-2.4.2-r1
USE='-alsa doc -ffmpeg -flac -id3tag jack ladspa lv2 mad ogg -oss portmidi -portmixer portsmf sbsms twolame vamp vorbis vst' failed for =media-sound/audacity-2.4.2-r1

/usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: src/CMakeFiles/Audacity.dir/ondemand/ODDecodeFlacTask.cpp.o:([_ZTV10ODFLACFile]+0xa0): undefined reference to `FLAC::Decoder::File::init(char const*)'
/usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: src/CMakeFiles/Audacity.dir/ondemand/ODDecodeFlacTask.cpp.o:([_ZTV10ODFLACFile]+0xa4): undefined reference to `FLAC::Decoder::File::init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: src/CMakeFiles/Audacity.dir/ondemand/ODDecodeFlacTask.cpp.o:([_ZTV10ODFLACFile]+0xa8): undefined reference to `FLAC::Decoder::File::init_ogg(_IO_FILE*)'
/usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: src/CMakeFiles/Audacity.dir/ondemand/ODDecodeFlacTask.cpp.o:([_ZTV10ODFLACFile]+0xac): undefined reference to `FLAC::Decoder::File::init_ogg(char const*)'
/usr/lib/gcc/powerpc-unknown-linux-gnu/9.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: src/CMakeFiles/Audacity.dir/ondemand/ODDecodeFlacTask.cpp.o:([_ZTV10ODFLACFile]+0xb0): undefined reference to `FLAC::Decoder::File::init_ogg(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: media-sound/audacity-2.4.2-r1::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
 * Call stack:
 *, line  125:  Called src_compile
 *   environment, line 2077:  Called cmake_src_compile
 *   environment, line  737:  Called cmake_build
 *   environment, line  706:  Called eninja
 *   environment, line 1161:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
Comment 1 ernsteiswuerfel 2020-09-12 19:32:58 UTC
Created attachment 659871 [details]
emerge --info
Comment 2 ernsteiswuerfel 2020-09-12 19:33:37 UTC
Created attachment 659874 [details]
Comment 3 Miroslav Šulc gentoo-dev 2020-09-13 09:47:13 UTC
it fails when linking on-demand feature of audacity which is claimed to be withdrawn from audacity in 2.3.3+:

anyway, flac use flag is the only use flag that has to be enabled to compile it successfully so it seems it's not optional as of now.

atm i'm not 100% sure making flac lib mandatory is the correct solution, maybe it's an upstream issue.

anyway, thank you for the report. will try to find the appropriate solution to fix it.