Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285567 - media-sound/audacity-1.3.9 fails to compile due to undefined reference to FLAC::Decoder
Summary: media-sound/audacity-1.3.9 fails to compile due to undefined reference to FLA...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-19 13:28 UTC by David Pyke
Modified: 2009-09-23 18:54 UTC (History)
1 user (show)

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


Attachments
complete build log (gzipped due to size) (1253363784-install-media-sound_audacity-1.3.9:0::gentoo.out.gz,54.77 KB, text/plain)
2009-09-19 13:30 UTC, David Pyke
Details
Patch to build without libflac (audacity-09-flac-v2.diff,1.94 KB, patch)
2009-09-22 08:05 UTC, Richard Ash
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Pyke 2009-09-19 13:28:17 UTC
I get this error every time.  I'm not sure how to fix it.  I've re-installed libflac but it keeps happening.  1.3.8 installs clean:

x86_64-pc-linux-gnu-g++ -o ../audacity AColor.o AboutDialog.o AudacityApp.o AudioIO.o AutoRecovery.o BatchCommandDialog.o BatchCommands.o Bat
chProcessDialog.o Benchmark.o Dependencies.o Envelope.o FFmpeg.o FFT.o FileIO.o FileNames.o FreqWindow.o HelpText.o HistoryWindow.o ImageMani
pulation.o InterpolateAudio.o LabelDialog.o LabelTrack.o Languages.o LangChoice.o Legacy.o LoadModules.o Lyrics.o LyricsWindow.o Matrix.o Men
us.o Mix.o MixerBoard.o PitchName.o PlatformCompatibility.o PluginManager.o Printing.o Profiler.o Project.o RealFFTf.o Resample.o RingBuffer.
o Screenshot.o Shuttle.o ShuttleGui.o ShuttlePrefs.o Snap.o Spectrum.o SplashDialog.o SoundActivatedRecord.o Tags.o Theme.o TimeDialog.o Time
Track.o TimerRecordDialog.o Track.o TrackArtist.o TrackPanel.o TrackPanelAx.o UndoManager.o UploadDialog.o VoiceKey.o WaveClip.o WaveTrack.o 
WrappedType.o commands/AppCommandEvent.o commands/BatchEvalCommand.o commands/Command.o commands/CompareAudioCommand.o commands/CommandBuilde
r.o commands/CommandDirectory.o commands/CommandHandler.o commands/CommandManager.o commands/CommandSignature.o commands/CommandType.o comman
ds/ExecMenuCommand.o commands/GetAllMenuCommands.o commands/GetTrackInfoCommand.o commands/HelpCommand.o commands/ImportExportCommands.o comm
ands/Keyboard.o commands/MessageCommand.o commands/PreferenceCommands.o commands/ResponseQueue.o commands/ScreenshotCommand.o commands/Script
CommandRelay.o commands/SelectCommand.o commands/SetTrackInfoCommand.o effects/Effect.o effects/Generator.o effects/EffectCategory.o effects/
EffectManager.o effects/SimpleMono.o effects/SimplePairedTwoTrack.o effects/SBSMSEffect.o effects/TimeScale.o effects/SoundTouchEffect.o effe
cts/LoadEffects.o effects/Amplify.o effects/AutoDuck.o effects/BassBoost.o effects/ChangePitch.o effects/ChangeSpeed.o effects/ChangeTempo.o 
effects/ClickRemoval.o effects/Compressor.o effects/Contrast.o effects/DtmfGen.o effects/Echo.o effects/Equalization.o effects/Fade.o effects
/FindClipping.o effects/Invert.o effects/Leveller.o effects/Noise.o effects/NoiseRemoval.o effects/Normalize.o effects/Phaser.o effects/Repai
r.o effects/Repeat.o effects/Reverse.o effects/Silence.o effects/SpikeCleaner.o effects/StereoToMono.o effects/TimeWarper.o effects/ToneGen.o
 effects/TruncSilence.o effects/TwoPassSimpleMono.o effects/VST/VSTEffect.o effects/Wahwah.o export/Export.o export/ExportMultiple.o export/E
xportMP2.o export/ExportMP3.o export/ExportOGG.o export/ExportFLAC.o export/ExportPCM.o export/ExportCL.o import/Import.o import/ImportFLAC.o
 import/ImportLOF.o import/ImportMP3.o import/ImportOGG.o import/ImportPCM.o import/ImportRaw.o import/RawAudioGuess.o ondemand/ODComputeSumm
aryTask.o ondemand/ODDecodeFlacTask.o ondemand/ODDecodeTask.o ondemand/ODManager.o ondemand/ODTask.o ondemand/ODTaskThread.o ondemand/ODWaveT
rackTaskQueue.o prefs/BatchPrefs.o prefs/DevicePrefs.o prefs/DirectoriesPrefs.o prefs/EffectsPrefs.o prefs/GUIPrefs.o prefs/ImportExportPrefs
.o prefs/KeyConfigPrefs.o prefs/LibraryPrefs.o prefs/MidiIOPrefs.o prefs/MousePrefs.o prefs/PlaybackPrefs.o prefs/PrefsDialog.o prefs/Project
sPrefs.o prefs/QualityPrefs.o prefs/RecordingPrefs.o prefs/SpectrumPrefs.o prefs/ThemePrefs.o prefs/TracksPrefs.o prefs/WarningsPrefs.o toolb
ars/ControlToolBar.o toolbars/DeviceToolBar.o toolbars/EditToolBar.o toolbars/MeterToolBar.o toolbars/MixerToolBar.o toolbars/SelectionBar.o
toolbars/ToolBar.o toolbars/ToolDock.o toolbars/ToolManager.o toolbars/ToolsToolBar.o toolbars/TranscriptionToolBar.o widgets/AButton.o widge
ts/ASlider.o widgets/AttachableScrollBar.o widgets/ErrorDialog.o widgets/ExpandingToolBar.o widgets/FileHistory.o widgets/Grabber.o widgets/G
rid.o widgets/HtmlWindow.o widgets/ImageRoll.o widgets/LinkingHtmlWindow.o widgets/Meter.o widgets/MultiDialog.o widgets/ProgressDialog.o wid
gets/Ruler.o widgets/TimeTextCtrl.o widgets/Warning.o xml/XMLFileReader.o xml/XMLWriter.o effects/nyquist/Nyquist.o effects/nyquist/LoadNyqui
st.o import/ImportFFmpeg.o export/ExportFFmpeg.o export/ExportFFmpegDialogs.o  -Wl,-O1 -Wl,--sort-common -Wl,-O1 -Wl,--sort-common  -rdynamic
  -pthread -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -L/var/tmp/paludis/media-sound-audacity-1.3.9/work/audacity-src-1.3.9/lib-src/lib-widget
-extra -L/usr/X11R6/lib64 -lwidgetextra -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -
lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8     ../lib-src/FileDialog.a ../lib-src/libsbsms.a
../lib-src/libnyquist.a ../lib-src/portaudio-v19/lib/libportaudio.a ../lib-src/portmixer/libportmixer.a ../lib-src/portaudio-v19/lib/libporta
udio.a libaudacity.a -L/usr/lib64 -pthread -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -L/usr/X11R6/lib64 -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_au
i-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -
lwx_baseu-2.8 -lvorbisenc -lvorbisfile -lvorbis -logg -lmad -lm -lsndfile -lsamplerate -lexpat -ltag   -lasound -lrt     -lasound -lm -lpthre
ad
ondemand/ODDecodeFlacTask.o: In function `ODFLACFile::~ODFLACFile()':
ODDecodeFlacTask.cpp:(.text._ZN10ODFLACFileD0Ev[ODFLACFile::~ODFLACFile()]+0x1c): undefined reference to `FLAC::Decoder::File::~File()'
ODDecodeFlacTask.cpp:(.text._ZN10ODFLACFileD0Ev[ODFLACFile::~ODFLACFile()]+0x36): undefined reference to `FLAC::Decoder::File::~File()'
ondemand/ODDecodeFlacTask.o: In function `ODFLACFile::~ODFLACFile()':
ODDecodeFlacTask.cpp:(.text._ZN10ODFLACFileD1Ev[ODFLACFile::~ODFLACFile()]+0x2e): undefined reference to `FLAC::Decoder::File::~File()'
ODDecodeFlacTask.cpp:(.text._ZN10ODFLACFileD1Ev[ODFLACFile::~ODFLACFile()]+0x21): undefined reference to `FLAC::Decoder::File::~File()'
ondemand/ODDecodeFlacTask.o:(.rodata._ZTV10ODFLACFile[vtable for ODFLACFile]+0x20): undefined reference to `FLAC::Decoder::Stream::is_valid()
 const'
ondemand/ODDecodeFlacTask.o:(.rodata._ZTV10ODFLACFile[vtable for ODFLACFile]+0x28): undefined reference to `FLAC::Decoder::Stream::set_ogg_se
rial_number(long)'
ondemand/ODDecodeFlacTask.o:(.rodata._ZTV10ODFLACFile[vtable for ODFLACFile]+0x30): undefined reference to `FLAC::Decoder::Stream::set_md5_ch
ecking(bool)'
ondemand/ODDecodeFlacTask.o:(.rodata._ZTV10ODFLACFile[vtable for ODFLACFile]+0x38): undefined reference to `FLAC::Decoder::Stream::set_metada
ta_respond(FLAC__MetadataType)'
--More--(99%)ondemand/ODDecodeFlacTask.o: In function `ODFLACFile::~ODFLACFile()':
ODDecodeFlacTask.cpp:(.text._ZN10ODFLACFileD0Ev[ODFLACFile::~ODFLACFile()]+0x1c): undefined reference to `FLAC::Decoder::File::~File()'
ODDecodeFlacTask.cpp:(.text._ZN10ODFLACFileD0Ev[ODFLACFile::~ODFLACFile()]+0x36): undefined reference to `FLAC::Decoder::File::~File()'
ondemand/ODDecodeFlacTask.o: In function `ODFLACFile::~ODFLACFile()':
ODDecodeFlacTask.cpp:(.text._ZN10ODFLACFileD1Ev[ODFLACFile::~ODFLACFile()]+0x2e): undefined reference to `FLAC::Decoder::File::~File()'
ODDecodeFlacTask.cpp:(.text._ZN10ODFLACFileD1Ev[ODFLACFile::~ODFLACFile()]+0x21): undefined reference to `FLAC::Decoder::File::~File()'
ondemand/ODDecodeFlacTask.o:(.rodata._ZTV10ODFLACFile[vtable for ODFLACFile]+0x20): undefined reference to `FLAC::Decoder::Stream::is_valid()
 const'
ondemand/ODDecodeFlacTask.o:(.rodata._ZTV10ODFLACFile[vtable for ODFLACFile]+0x28): undefined reference to `FLAC::Decoder::Stream::set_ogg_se
rial_number(long)'
ondemand/ODDecodeFlacTask.o:(.rodata._ZTV10ODFLACFile[vtable for ODFLACFile]+0x30): undefined reference to `FLAC::Decoder::Stream::set_md5_ch
ecking(bool)'
ondemand/ODDecodeFlacTask.o:(.rodata._ZTV10ODFLACFile[vtable for ODFLACFile]+0x38): undefined reference to `FLAC::Decoder::Stream::set_metada
ta_respond(FLAC__MetadataType)'
(it continues many times)


Reproducible: Always




p
aludis 0.40.1                                   
Paludis build information:                       
    Compiler:                                    
        CXX:                   x86_64-pc-linux-gnu-g++ 4.4.1
        CXXFLAGS:               -O2 -march=native -pipe -floop-interchange -floop-strip-mine -floop-block -pedantic
        LDFLAGS:               -Wl,-O1 -Wl,--sort-common -Wl,--as-needed                                           
        DATE:                  2009-09-18T08:37:36-0400                                                            

    Libraries:
        C++ Library:           GNU libstdc++ 20090722

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc        
        PYTHONINSTALLDIR:      /usr/lib64/python2.6/site-packages
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

System:
    Linux www 2.6.30-gentoo-r6 #3 SMP Sun Sep 13 15:21:47 EDT 2009 x86_64 AMD Phenom(tm) 9850 Quad-Core Processor AuthenticAMD GNU/Linux

Reduced Privs:
    reduced_uid:               107
    reduced_uid->name:         paludisbuild
    reduced_uid->dir:          /var/tmp/paludis
    reduced_gid:               1001            
    reduced_gid->name:         paludisbuild    

Environment:
    Format:                    paludis
    Config dir:                /etc/paludis
    World file:                /var/db/pkg/world


Package media-sound/audacity-1.3.9:0::gentoo:

        >>> Running ebuild phase killold as paludisbuild:paludisbuild...
        >>> Starting builtin_killold                                    
        >>> Done builtin_killold                                        
        >>> Completed ebuild phase killold                              
        >>> Running ebuild phases initmisc infovars as paludisbuild:paludisbuild...
        >>> Starting builtin_initmisc                                              
        >>> Done builtin_initmisc                                                  
        >>> Starting builtin_infovars                                              
        ACCEPT_KEYWORDS=amd64                                                      
        CBUILD=x86_64-pc-linux-gnu                                                 
        CFLAGS=-O2 -march=native -pipe -floop-interchange -floop-strip-mine -floop-block
        CHOST=x86_64-pc-linux-gnu                                                       
        CONFIG_PROTECT=                                                                 
        CONFIG_PROTECT_MASK=                                                            
        CPPFLAGS=                                                                       
        CTARGET=                                                                        
        CXXFLAGS=-O2 -march=native -pipe -floop-interchange -floop-strip-mine -floop-block
        DISTDIR=/var/paludis/distfiles                                                    
        FEATURES=                                                                         
        FFLAGS=                                                                           
        GENTOO_MIRRORS=                                                                   
        INSTALL_MASK=                                                                     
        LANG=                                                                             
        LC_ALL=C                                                                          
        LDFLAGS=-Wl,-O1 -Wl,--sort-common                                                 
        LINGUAS=en en_CA en_GB en_US                                                      
        MAKEOPTS=-j5                                                                      
        PORTAGE_COMPRESS=                                                                 
        PORTAGE_COMPRESS_FLAGS=                                                           
        PORTAGE_CONFIGROOT=                                                               
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/var/paludis/repositories/gentoo
        PORTDIR_OVERLAY=
        SYNC=
        USE=alsa ffmpeg libsamplerate mp3 vorbis amd64 alsa_cards_hda-intel alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_auth_digest apache2_modules_authn_anon apache2_modules_authn_dbd apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_dbd apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_ident apache2_modules_imagemap apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_proxy apache2_modules_proxy_ajp apache2_modules_proxy_balancer apache2_modules_proxy_connect apache2_modules_proxy_http apache2_modules_rewrite apache2_modules_setenvif apache2_modules_so apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias elibc_glibc foo2zjs_devices_hp2600n input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en linguas_en_CA linguas_en_GB linguas_en_US userland_GNU video_cards_nvidia video_cards_vesa amd64
        >>> Done builtin_infovars
        >>> Completed ebuild phases initmisc infovars
        >>> Running ebuild phase tidyup as paludisbuild:paludisbuild...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/media-sound-audacity-1.3.9-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup
Comment 1 David Pyke 2009-09-19 13:30:21 UTC
Created attachment 204600 [details]
complete build log (gzipped due to size)
Comment 2 Olivier Crete (RETIRED) gentoo-dev 2009-09-19 22:09:12 UTC
I guess it needs to depend on a specific version of the flag libraries..
Comment 3 Alexis Ballier gentoo-dev 2009-09-22 05:42:59 UTC
Richard, mind if I add you in metadata.xml so that you'll be automatically cc'ed on audacity bugs?
Comment 4 Richard Ash 2009-09-22 08:04:07 UTC
(In reply to comment #3)
> Richard, mind if I add you in metadata.xml so that you'll be automatically
> cc'ed on audacity bugs?
Yes, please add me in, as I don't do Bugzilla searches that often.

As for the cause of the bug, I suspect that the OP has -flac in his use flags, which is broken in the 1.3.9 release. I'll attach the patch that I've provided to someone else who reported this - it will need to happen before an eautoreconf. This patch is already in upstream CVS.


Comment 5 Richard Ash 2009-09-22 08:05:25 UTC
Created attachment 204889 [details, diff]
Patch to build without libflac

This patch makes building without the flac use-flag work, which I suspect to be part of the problem (I haven't read the full build log yet).
Comment 6 Alexis Ballier gentoo-dev 2009-09-23 18:54:28 UTC
Thanks Richard, that was it. Applied.

I've also added you to metadata.