Audacity-1.3.5 fails to compile because missing include file. Reproducible: Always Steps to Reproduce: 1. USE flags "alsa flac id3tag ladspa mp3 twolame vamp" 2. emerge audacity 3. Actual Results: i686-pc-linux-gnu-g++ -c -O2 -march=pentium2 -pipe -I../lib-src/portmixer/include -I../lib-src/portaudio-v19/include -O2 -march=pentium2 -pipe -I../lib-src/libresample/include -I../lib-src/libnyquist/nyx -I../lib-src/allegro -I../lib-src/FileDialog -fno-strict-aliasing -I./include -I. -DLIBDIR=\"/usr/lib\" -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread export/ExportFLAC.cpp -o export/ExportFLAC.o export/ExportFLAC.cpp:32:30: error: vorbis/vorbisenc.h: Nie ma takiego pliku ani katalogu ( means missing file) make[1]: *** [export/ExportFLAC.o] Błąd 1 make[1]: *** Oczekiwanie na niezakończone zadania.... Portage 2.2_rc4 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r7 i686)
Created attachment 162185 [details, diff] Patch which changes existing include to the conditional include. I prepared proposed patch which changes existing include to the conditional include. ExportFLAC_conditional_vorbisenc_h_include.patch { --- src/export/ExportFLAC.cpp 2008-08-01 01:07:09.000000000 +0200 +++ src/export/ExportFLAC.cpp 2008-08-01 23:48:01.000000000 +0200 @@ -29,7 +29,10 @@ #include <wx/log.h> #include <wx/msgdlg.h> +#ifdef USE_LIBVORBIS #include <vorbis/vorbisenc.h> +#endif // USE_LIBVORBIS + #include "FLAC++/encoder.h" #include "../float_cast.h" } Could someone( from gurus) check it please, it's my first patch.
patch added, thanks a lot! please don't forget to send it to the audacity developers so that it can be fixed for good.
Audacity developers notified. Hi Alexis, I sent email with short description and link to gentoo bugzilla to audacity-devel@lists.sourceforge.net Tangram