Trying to build ardour 2.4.1 from source ??

I am trying to build ardour 2.4.1 from source and this is the output I get…

root@siduxbox:/home/fiddler/ardour2# scons
scons: Reading SConscript files …
Checking for pkg-config version >= 0.8.0… (cached) yes
Checking for gthread-2.0… (cached) yes
Checking for lrdf… (cached) yes
Checking for libgnomecanvas-2.0… (cached) yes
Checking for gtk±2.0… (cached) yes
Checking for jack… (cached) yes
Checking for samplerate… (cached) yes
Checking for glib-2.0… (cached) yes
Checking for libxml-2.0… (cached) yes
Checking for raptor… (cached) yes
Checking for fftw3f…(cached) yes
Checking for fftw3…(cached) yes
Checking for C header file fftw3.h… (cached) yes
FREESOUND support is not enabled. Build with ‘scons FREESOUND=1’ to enable.
LV2 support is not enabled. Build with ‘scons LV2=1’ to enable.
Congratulations, you have a functioning C++ compiler.
system triple: i686-pc-linux-gnu
Checking for C header file fftw3.h… (cached) yes
Checking for usb_interrupt_write() in C library usb… (cached) no
Checking for C header file linux/input.h… (cached) yes
Checking for FLAC__seekable_stream_decoder_init() in C++ library FLAC… (cached) no
Checking for C++ header file boost/shared_ptr.hpp… (cached) yes
Checking for lo_server_new() in C library lo… (cached) yes
Checking for dmalloc_shutdown() in C library dmallocth… (cached) no
Checking for C header file alsa/asoundlib.h… (cached) yes
Disabled building Tranzport code because libusb could not be found
Checking for internationalization support …
Found xgettext
Found msgmerge
Checking for C header file libintl.h… (cached) yes
International version will be built.
Checking for C header file /System/Library/Frameworks/CoreAudio.framework/Versions/A/Headers/CoreAudio.h… (cached) no
Checking for C function posix_memalign()… (cached) yes

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File “/home/fiddler/ardour2/libs/sigc++2/SConscript”, line 10, in
Checking for C header file /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h… (cached) no
Checking for C function getmntent()… (cached) yes
Checking for C header file execinfo.h… (cached) yes
Checking for jack_client_open()…(cached) yes
Checking for jack_recompute_total_latencies()…(cached) yes
Checking for JackVideoFrameOffset in jack_position_bits_t enum…(cached) yes
Checking for jack_port_ensure_monitor_input()…(cached) yes
Checking for C header file wordexp.h… (cached) yes
Checking for C header file sys/vfs.h… (cached) yes
Checking for C header file /System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h… (cached) no
Checking for C header file /System/Library/Frameworks/AudioToolbox.framework/Headers/ExtendedAudioFile.h… (cached) no
Checking for C header file /System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h… (cached) no
Checking for C header file /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.h… (cached) no
scons: done reading SConscript files.
scons: Building targets …
scons: ardour_system.rc' is up to date. scons:libs/sigc++2/sigc++config.h’ is up to date.
scons: libs/sigc++2/libsigc++2.so' is up to date. scons:libs/libsndfile/src/sndfile.h’ is up to date.
scons: libs/libsndfile/libsndfile-ardour.so' is up to date. scons:libs/glibmm2/glibmmconfig.h’ is up to date.
g++ -o libs/pbd/base_ui.os -c -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -pipe -DARCH_X86 -mmmx -march=i686 -msse -mfpmath=sse -DUSE_XMMINTRIN -DBUILD_SSE_OPTIMIZATIONS -Wall -DHAVE_LIBLO -Ilibs -DENABLE_NLS -DHAVE_GETMNTENT -pthread -fPIC -I/usr/include/glib-2.0 -Ilibs/sigc++2 -Ilibs/glibmm2 -I/usr/lib/glib-2.0/include -Ilibs/pbd -I/usr/include/libxml2 libs/pbd/base_ui.cc
libs/pbd/base_ui.cc: In member function ‘int BaseUI::setup_signal_pipe()’:
libs/pbd/base_ui.cc:87: error: ‘PACKAGE’ was not declared in this scope
libs/pbd/base_ui.cc:94: error: ‘PACKAGE’ was not declared in this scope
libs/pbd/base_ui.cc:100: error: ‘PACKAGE’ was not declared in this scope
scons: *** [libs/pbd/base_ui.os] Error 1
scons: building terminated because of errors.
root@siduxbox:/home/fiddler/ardour2#

any clue as to what I am missing ??

TIA

David B

You’re using a version of scons that has a bug in it. The scons people know about it. Downgrade to scons 0.98.0 or if you feel up to it fix the problem with this information:

It looks like he expected the default SHCXXFLAGS to be set up as $CXXFLAGS and it isn't. The place to fix is c++.py line 79 where the default SHCXXFLAGS is set up. It should have $CXXFLAGS as the value.

If that makes no sense to you, you will have to wait for the scons team to release a new version.