Scons wont compile successfull

Hi all,

iǘe downloaded Ardour 2.8.4 and it wont compile on Ubuntu 9.04 including Jack 1.9.3 (build from Source). All necessary Header and Development-Files have been installed.

Output of scons:

root@bla-desktop:/home/bla/ardour-2.8.4# scons scons: Reading SConscript files ... SCons.Script:18: DeprecationWarning: the sets module is deprecated

scons: warning: The Options class is deprecated; use the Variables class instead.
File “/home/bla/.local/share/Trash/files/ardour-2.8.4/SConstruct”, line 32, in

scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File “/home/bla/.local/share/Trash/files/ardour-2.8.4/SConstruct”, line 36, in

scons: warning: The PathOption() function is deprecated; use the PathVariable() function instead.
File “/home/bla/.local/share/Trash/files/ardour-2.8.4/SConstruct”, line 42, in

scons: warning: The EnumOption() function is deprecated; use the EnumVariable() function instead.
File “/home/bla/.local/share/Trash/files/ardour-2.8.4/SConstruct”, line 43, in
Checking for pkg-config version >= 0.8.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 sndfile… (cached) yes
Checking for samplerate… (cached) yes
Checking for gthread-2.0… (cached) yes
Checking for libxml-2.0… (cached) yes
Checking for raptor… (cached) yes
Checking for glib-2.0… (cached) yes
Checking for fftw3f…(cached) yes
Checking for fftw3…(cached) yes
Checking for aubio…(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.
WIIMOTE not enabled. Build with ‘scons WIIMOTE=1’ to enable support.
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 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
Checking for C function gtk_widget_set_tooltip_text()… (cached) yes

scons: warning: Ignoring missing SConscript ‘manual/SConscript’
File “/home/bla/.local/share/Trash/files/ardour-2.8.4/SConstruct”, line 1404, in
Checking for C function getmntent()… (cached) no
Checking for C header file execinfo.h… (cached) yes
Checking for jack_client_open()…(cached) no
Checking for jack_on_info_shutdown()…(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
FPU OPTIMIZATION WITH TARGET
i686
Checking for jack_set_thread_creator()…(cached) yes
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/glibmm2/glibmmconfig.h’ is up to date.
g++ -o libs/pbd/mountpoint.os -c -Woverloaded-virtual -DGTK_NEW_TOOLTIP_API -DPACKAGE=“libpbd” -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DLIBSIGC_DISABLE_DEPRECATED -DHAVE_EXECINFO -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 -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/mountpoint.cc
libs/pbd/mountpoint.cc:96:23: Fehler: sys/ucred.h: No such file or directory
libs/pbd/mountpoint.cc: In function »std::string mountpoint(std::string)«:
libs/pbd/mountpoint.cc:109: Fehler: »MNT_NOWAIT« wurde in diesem Gültigkeitsbereich nicht definiert
libs/pbd/mountpoint.cc:109: Fehler: »getmntinfo« wurde in diesem Gültigkeitsbereich nicht definiert
libs/pbd/mountpoint.cc:110: Fehler: »free« wurde in diesem Gültigkeitsbereich nicht definiert
libs/pbd/mountpoint.cc:124: Fehler: invalid use of incomplete type »struct statfs«
libs/pbd/mountpoint.cc:102: Fehler: forward declaration of »struct statfs«
libs/pbd/mountpoint.cc:124: Fehler: invalid use of incomplete type »struct statfs«
libs/pbd/mountpoint.cc:102: Fehler: forward declaration of »struct statfs«
libs/pbd/mountpoint.cc:125: Fehler: invalid use of incomplete type »struct statfs«
libs/pbd/mountpoint.cc:102: Fehler: forward declaration of »struct statfs«
libs/pbd/mountpoint.cc:125: Fehler: invalid use of incomplete type »struct statfs«
libs/pbd/mountpoint.cc:102: Fehler: forward declaration of »struct statfs«
libs/pbd/mountpoint.cc:133: Fehler: invalid use of incomplete type »struct statfs«
libs/pbd/mountpoint.cc:102: Fehler: forward declaration of »struct statfs«
libs/pbd/mountpoint.cc:133: Fehler: invalid use of incomplete type »struct statfs«
libs/pbd/mountpoint.cc:102: Fehler: forward declaration of »struct statfs«
libs/pbd/mountpoint.cc:134: Fehler: »free« wurde in diesem Gültigkeitsbereich nicht definiert
libs/pbd/mountpoint.cc:140: Fehler: invalid use of incomplete type »struct statfs«
libs/pbd/mountpoint.cc:102: Fehler: forward declaration of »struct statfs«
libs/pbd/mountpoint.cc:140: Fehler: invalid use of incomplete type »struct statfs«
libs/pbd/mountpoint.cc:102: Fehler: forward declaration of »struct statfs«
scons: *** [libs/pbd/mountpoint.os] Error 1
scons: building terminated because of errors.

Any guess?

Many thanks!
Stef

You have a misconfigured system that thinks it is BSD or something similar, and is thus looking for /usr/include/sys/ucred.h, which doesn’t exist on linux systems. SConscript failed to find the getmntent() function:

  Checking for C function getmntent()... (cached) no

Fix this, and the problem will go away. You might also try scons --config=force to force a re-configuration on this machine.

Hi Paul,

i had recently upgraded from 8.10 to 9.04 and i guess that gcc4.3 had to be also re-inatalled, because after this it compiled wihout any problems.

One problem persists and its about jackd used as netjack-client and server between a windows-machine and ubuntu. Ubuntu makes the server by opening a jack-instance and afterwards running “jack_netsource -H windowspc” and on the client-side (windows) running “Jack Netdriver”. The output on the windows-console remains with “Waiting for a master…” and Ubuntu says

bla@bla-desktop:~$ jack_netsource -H windowspc Cannot lock down memory area (Cannot allocate memory) Cannot use real-time scheduling (RR/5)(1: Operation not permitted) AcquireRealTime error Not Connected

No Firewalls are opened, ping from one machine to another works.

Many thanks for your help!
Greetings
Stef

i think you are confusing netjack1 and netjack2. These are (very unfortunately) mutually incompatible protocols. There have been no releases of JACK for windows so far that include support for netjack1. You were using netjack1 tools (i.e. jack_netsource) on Linux, and netjack2 on the Windows machine. Future releases of JACK for Windows will hopefully change this. Also, your Linux machine appears not be correctly configured for realtime audio work.

Hi Paul,

i use the netjack1-command because i don’t know another command for Jackd acting as a network server. If i start jackd normal, i guess that it acts as a audio and not as a network server.and the drivers “-d net” and “-d netone” are moving jackd into slave mode - or am i wrong?

Greetings
Stef

Here’s my problem. I’m compiling Ubuntu 9.10 Karmic Koala. I was using the tutorial at http://ardour.org/node/1152 for adding VST support.

Here’s the output

$ scons VST=1
scons: Reading SConscript files …
SCons.Script:18: DeprecationWarning: the sets module is deprecated

scons: warning: The Options class is deprecated; use the Variables class instead.
File “/home/ou/Desktop/ardour-2.8.4/SConstruct”, line 32, in

scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File “/home/ou/Desktop/ardour-2.8.4/SConstruct”, line 36, in

scons: warning: The PathOption() function is deprecated; use the PathVariable() function instead.
File “/home/ou/Desktop/ardour-2.8.4/SConstruct”, line 42, in

scons: warning: The EnumOption() function is deprecated; use the EnumVariable() function instead.
File “/home/ou/Desktop/ardour-2.8.4/SConstruct”, line 43, in
Checking for pkg-config version >= 0.8.0… yes
Checking for lrdf… yes
Checking for libgnomecanvas-2.0… yes
Checking for gtk±2.0… yes
Checking for jack… yes
Checking for sndfile… yes
Checking for samplerate… yes
Checking for gthread-2.0… yes
Checking for libxml-2.0… yes
Checking for raptor… yes
Checking for glib-2.0… yes
Checking for fftw3f…no
Checking for fftw3…no
Checking for aubio…no
KeyError: ‘fftw3’:
File “/home/ou/Desktop/ardour-2.8.4/SConstruct”, line 512:
conf = Configure(libraries[‘fftw3’])

Checking for fftw3f…no
Checking for fftw3…no

If this sort of thing is not reasonably clear to you, then I would very politely question whether you should be building Ardour from source, especially with VST support.

It’s a good question. I’m never afraid to try anything.

I looked around, and figured it out. Fortunately this wasn’t my first time as you had suspected.