[ardour-dev] compilation troubles (2.95.4)

Tom Szilagyi st444 at hszk.bme.hu
Thu Mar 25 12:42:33 PST 2004


Hi,

while compiling the latest CVS tarball (resulting in: Ardour/GTK
0.460.0 running with libardour 0.734.3), i get the following errors
(debian woody with gcc 2.95.4). Sorry for this yet-another-2.9x-ism.

In file included from midi++/fifomidi.h:30,
                 from midifactory.cc:27:
midi++/fd_midiport.h: In method `int MIDI::FD_MidiPort::write(byte *, unsigned int)':
midi++/fd_midiport.h:58: `EACCES' undeclared (first use this function)
midi++/fd_midiport.h:58: (Each undeclared identifier is reported only once
midi++/fd_midiport.h:58: for each function it appears in.)
midi++/fd_midiport.h:79: warning: control reaches end of non-void function `MIDI::FD_MidiPort::write(byte *, unsigned int)'
midi++/fd_midiport.h: In method `int MIDI::FD_MidiPort::read(byte *, unsigned int)':
midi++/fd_midiport.h:102: warning: control reaches end of non-void function `MIDI::FD_MidiPort::read(byte *, unsigned int)'

Fixed by adding #include <cerrno> to libs/midi++/midi++/fd_midiport.h
I know this has been mentioned before, just an FYI that it's sort of sticky :)
Anyway, proceeding with the compilation yields:


ardour_ui2.cc: In method `void ARDOUR_UI::update_speed_display()':
ardour_ui2.cc:752: implicit declaration of function `int log2(...)'

Strangely enough, if i change the two log2() calls to log2f() in
ardour_ui2.cc then there's no error.  I don't really understand this
since these should be in the same library AFAIK. Might be as well a
problem with my gcc installation...

As a dirty hack i substituted log2(.) with log(.)/log(2)
I know thats really, really evil :)

Then, in the ksi part:

ksi.o: In function `KSI::key_press_handler(int, int)':
/root/ardour/ksi_ardour/ksi.cc:1062: undefined reference to `ARDOUR::Session::stop_scrub(void)'
ksi.o: In function `KSI::scrub(void)':
/root/ardour/ksi_ardour/ksi.cc:2095: undefined reference to `ARDOUR::Session::start_scrub(unsigned int)'
/root/ardour/ksi_ardour/ksi.cc:2098: undefined reference to `ARDOUR::Session::set_scrub_speed(float)'


I'm a bit clueless here, so i just commented out the offending calls.
I don't use the ksi interface after all...

After this hack it finally compiles.


Thanks for your time,

Tom



More information about the Ardour-Dev mailing list