LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Audacity Build Error on Slack64... (http://www.linuxquestions.org/questions/slackware-14/audacity-build-error-on-slack64-764094/)

fedoralinuxjunkie 10-24-2009 01:23 AM

Audacity Build Error on Slack64...
 
Hey, I'm having a problem with using a SlackBuild for Audacity 1.3.7b on Slack64 13...here's the build log:

Code:

Run 'configure --help' for an explanation of these options,
otherwise run 'make' to build Audacity.
make -C lib-src
make[1]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src'
make -C FileDialog
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/FileDialog'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/FileDialog'
ln -sf FileDialog/FileDialog.a FileDialog.a
make -C libresample libresample.a
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libresample'
make[2]: `libresample.a' is up to date.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libresample'
ln -sf libresample/libresample.a libresample.a
make -C sbsms
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms'
Making all in src
make[3]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms/src'
make  all-am
make[4]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms/src'
make[4]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms/src'
make[3]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms/src'
make[3]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms'
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms'
ln -sf sbsms/src/.libs/libsbsms.a .
make -C libnyquist/misc
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libnyquist/misc'
make[2]: `intgen' is up to date.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libnyquist/misc'
make -C libnyquist
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libnyquist'
make[2]: Nothing to be done for `current'.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libnyquist'
ln -sf libnyquist/libnyquist.a libnyquist.a
make -C portaudio-v19 lib/libportaudio.la
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portaudio-v19'
make[2]: `lib/libportaudio.la' is up to date.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portaudio-v19'
ln -sf .libs/libportaudio.a portaudio-v19/lib/libportaudio.a
make -C portmixer
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portmixer'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portmixer'
ln -sf portmixer/libportmixer.a .
make -C lib-widget-extra
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/lib-widget-extra'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/lib-widget-extra'
make -C libvamp sdkstatic
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libvamp'
ranlib src/libvamp-sdk.a
ranlib src/libvamp-hostsdk.a
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libvamp'
make -C portsmf
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portsmf'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portsmf'
make[1]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src'
make -C src
make[1]: Entering directory `/tmp/SBo/audacity-src-1.3.7/src'
g++ -c -I../lib-src/portmixer/include -I../lib-src/portaudio-v19/include -O2 -fPIC  -Wall -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../lib-src/FileDialog -O2 -fPIC -Wall -I/tmp/SBo/audacity-src-1.3.7/lib-src/lib-widget-extra          -I../lib-src/libresample/include -I../lib-src/sbsms/include -I../lib-src/libnyquist/nyx -I../lib-src/libvamp      -O2 -fPIC -Wall -I/tmp/SBo/audacity-src-1.3.7/lib-src/portsmf  -fno-strict-aliasing -I./include -I. -DLIBDIR=\"/usr/lib64\" -D__STDC_CONSTANT_MACROS  -Wall  import/ImportFFmpeg.cpp -o import/ImportFFmpeg.o
import/ImportFFmpeg.cpp: In function 'void av_free_packet(AVPacket*)':
import/ImportFFmpeg.cpp:181: error: 'void av_free_packet(AVPacket*)' was declared 'extern' and later 'static'
/usr/include/libavcodec/avcodec.h:2788: error: previous declaration of 'void av_free_packet(AVPacket*)'
make[1]: *** [import/ImportFFmpeg.o] Error 1
make[1]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/src'
make: *** [audacity] Error 2
bash-3.1#

I've tried Googling and can find nothing on there...Does anyone know what to do here?

Drakeo 10-24-2009 05:18 AM

Quote:

PRGNAM=audacity
VERSION=1.3.7
ARCH=${ARCH:-i486} <<<<<change to x86_64
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
like this
Quote:

PRGNAM=audacity
VERSION=1.3.7
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
Make sure you have FFmpeg installed
http://slackbuilds.org/repository/13...imedia/ffmpeg/
Quote:

make[1]: *** [import/ImportFFmpeg.o] Error 1

fedoralinuxjunkie 10-24-2009 02:30 PM

I changed the slackbuild, and reinstalled ffmpeg, and goes well, until the end, but I get a different error with the same file being the issue...here's the build log:

Code:

Run 'configure --help' for an explanation of these options,
otherwise run 'make' to build Audacity.
make -C lib-src
make[1]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src'
make -C FileDialog
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/FileDialog'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/FileDialog'
ln -sf FileDialog/FileDialog.a FileDialog.a
make -C libresample libresample.a
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libresample'
make[2]: `libresample.a' is up to date.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libresample'
ln -sf libresample/libresample.a libresample.a
make -C sbsms
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms'
Making all in src
make[3]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms/src'
make  all-am
make[4]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms/src'
make[4]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms/src'
make[3]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms/src'
make[3]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms'
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/sbsms'
ln -sf sbsms/src/.libs/libsbsms.a .
make -C libnyquist/misc
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libnyquist/misc'
make[2]: `intgen' is up to date.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libnyquist/misc'
make -C libnyquist
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libnyquist'
make[2]: Nothing to be done for `current'.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libnyquist'
ln -sf libnyquist/libnyquist.a libnyquist.a
make -C portaudio-v19 lib/libportaudio.la
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portaudio-v19'
make[2]: `lib/libportaudio.la' is up to date.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portaudio-v19'
ln -sf .libs/libportaudio.a portaudio-v19/lib/libportaudio.a
make -C portmixer
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portmixer'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portmixer'
ln -sf portmixer/libportmixer.a .
make -C lib-widget-extra
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/lib-widget-extra'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/lib-widget-extra'
make -C libvamp sdkstatic
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libvamp'
ranlib src/libvamp-sdk.a
ranlib src/libvamp-hostsdk.a
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/libvamp'
make -C portsmf
make[2]: Entering directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portsmf'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src/portsmf'
make[1]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/lib-src'
make -C src
make[1]: Entering directory `/tmp/SBo/audacity-src-1.3.7/src'
g++ -o ../audacity AColor.o AboutDialog.o AudacityApp.o AudioIO.o AutoRecovery.o BatchCommandDialog.o BatchCommands.o BatchProcessDialog.o Benchmark.o Dependencies.o Envelope.o FFmpeg.o FFT.o FileIO.o FileNames.o FreqWindow.o HelpText.o HistoryWindow.o ImageManipulation.o InterpolateAudio.o LabelDialog.o LabelTrack.o Languages.o LangChoice.o Legacy.o LoadModules.o Matrix.o Menus.o Mix.o PitchName.o PlatformCompatibility.o Printing.o Profiler.o Project.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 TimeTrack.o TimerRecordDialog.o Track.o TrackArtist.o TrackPanel.o TrackPanelAx.o UndoManager.o UploadDialog.o VoiceKey.o WaveClip.o WaveTrack.o WrappedType.o commands/CommandManager.o commands/Keyboard.o effects/Effect.o effects/EffectCategory.o effects/EffectManager.o effects/SimpleMono.o effects/SimplePairedTwoTrack.o effects/SBSMSEffect.o effects/TimeScale.o effects/SoundTouchEffect.o effects/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/Repair.o effects/Repeat.o effects/Reverse.o effects/Silence.o effects/SpikeCleaner.o effects/StereoToMono.o effects/ToneGen.o effects/TruncSilence.o effects/TwoPassSimpleMono.o effects/Wahwah.o export/Export.o export/ExportMultiple.o export/ExportMP2.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/ODComputeSummaryTask.o ondemand/ODDecodeFlacTask.o ondemand/ODDecodeTask.o ondemand/ODManager.o ondemand/ODTask.o ondemand/ODTaskThread.o ondemand/ODWaveTrackTaskQueue.o prefs/AudioIOPrefs.o prefs/BatchPrefs.o prefs/DirectoriesPrefs.o prefs/FileFormatPrefs.o prefs/GUIPrefs.o prefs/KeyConfigPrefs.o prefs/MousePrefs.o prefs/PrefsDialog.o prefs/QualityPrefs.o prefs/SmartRecordPrefs.o prefs/SpectrumPrefs.o prefs/ThemePrefs.o toolbars/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 widgets/ASlider.o widgets/AttachableScrollBar.o widgets/ErrorDialog.o widgets/ExpandingToolBar.o widgets/Grabber.o widgets/Grid.o widgets/HtmlWindow.o widgets/ImageRoll.o widgets/LinkingHtmlWindow.o widgets/Meter.o widgets/MultiDialog.o widgets/ProgressDialog.o widgets/Ruler.o widgets/TimeTextCtrl.o widgets/Warning.o xml/XMLFileReader.o xml/XMLWriter.o effects/nyquist/Nyquist.o effects/nyquist/LoadNyquist.o effects/vamp/VampEffect.o effects/vamp/LoadVamp.o import/ImportFFmpeg.o export/ExportFFmpeg.o export/ExportFFmpegDialogs.o NoteTrack.o import/ImportMIDI.o effects/ladspa/LoadLadspa.o effects/ladspa/LadspaEffect.o -pthread -L/tmp/SBo/audacity-src-1.3.7/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      -L../lib-src/libvamp/src -lvamp-hostsdk -L/tmp/SBo/audacity-src-1.3.7/lib-src/portsmf -lportSMF  ../lib-src/FileDialog.a ../lib-src/libresample.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/libportaudio.a ../lib-src/portmixer/libportmixer.a libaudacity.a -L/usr/lib64 -pthread -L/usr/X11R6/lib64 -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 -lvorbisenc -lvorbisfile -lvorbis -logg -lmad -lsndfile -lFLAC++ -lFLAC -lid3tag -lexpat  -lasound -lrt    -lasound -lm -lpthread
import/ImportFFmpeg.o: In function `FFmpegImportFileHandle::ReadNextFrame()':
ImportFFmpeg.cpp:(.text+0x254): undefined reference to `av_free_packet'
import/ImportFFmpeg.o: In function `FFmpegImportFileHandle::Import(TrackFactory*, Track***, int*, Tags*)':
ImportFFmpeg.cpp:(.text+0x17e9): undefined reference to `av_free_packet'
ImportFFmpeg.cpp:(.text+0x1a98): undefined reference to `av_free_packet'
collect2: ld returned 1 exit status
make[1]: *** [../audacity] Error 1
make[1]: Leaving directory `/tmp/SBo/audacity-src-1.3.7/src'
make: *** [audacity] Error 2


fedoralinuxjunkie 10-24-2009 02:40 PM

I solved my problem :D...it's an error in the SlackBuild script...when it runs ./configure, it looks like this:

Code:

./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --enable-unicode \
  --enable-nyquist \
  --enable-vamp \
  --with-expat \
  --with-libvorbis \
  --with-libmad \
./configure \
  --prefix=/usr/local \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --enable-unicode \
  --enable-nyquist \
  --enable-vamp \
  --with-expat \
  --with-libvorbis \
  --with-libmad \
  --with-libflac \
  --with-libsndfile \
  --with-libid3tag \
  --with-libresample \
  --$do_soundtouch-soundtouch \
  --$do_twolame-libtwolame \
  || exit 1
  --with-libflac \
  --with-libsndfile \
  --with-libid3tag \
  --with-libresample \
  --$do_soundtouch-soundtouch \
  --$do_twolame-libtwolame \
  || exit 1

When it should be this:

Code:

./configure \
  --prefix=/usr/local \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --enable-unicode \
  --enable-nyquist \
  --enable-vamp \
  --with-expat \
  --with-libvorbis \
  --with-libmad \
  --with-libflac \
  --with-libsndfile \
  --with-libid3tag \
  --with-libresample \
  --$do_soundtouch-soundtouch \
  --$do_twolame-libtwolame \
  || exit 1

Thanks for the tip about editing the SlackBuild script, had it not been for that, I would never been able to edit it and correct the error :). After the change, it compiled and created the package. Thanks again :D


All times are GMT -5. The time now is 08:21 PM.