I've downloaded the source, apt'ed the dependencies but is giving error on
configure, as below. Can you help me?
gcc -O pkg-config cairo-xlib-xrender --cflags -c -o src/BackupBand.o
src/BackupBand.c
In file included from /usr/include/string.h:494:0,
from src/XLibGuiCtls.h:5,
from src/GuiCtls.h:9,
from src/Main.h:3,
from src/BackupBand.c:18:
In function ‘strcpy’,
inlined from ‘ctl_update_tempo’ at src/BackupBand.c:3036:3:
/usr/include/i386-linux-gnu/bits/string_fortified.h:90:10: warning:
‘builtinstrcpy_chk’ writing 11 bytes into a region of size 8 overflows
the destination [-Wstringop-overflow=]
return __builtinstrcpy_chk (dest, src, bos (__dest));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O pkg-config cairo-xlib-xrender --cflags -c -o src/AudioPlay.o
src/AudioPlay.c
src/AudioPlay.c: In function ‘open_libjack’:
src/AudioPlay.c:530:2: warning: ignoring return value of ‘system’, declared
with attribute warn_unused_result [-Wunused-result]
system("jack_control start");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/AudioPlay.c: In function ‘shutdown_jack’:
src/AudioPlay.c:498:2: warning: ignoring return value of ‘system’, declared
with attribute warn_unused_result [-Wunused-result]
system("jack_control stop");
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/AudioPlay.c: In function ‘audio_Off’:
src/AudioPlay.c:3228:3: warning: ignoring return value of ‘write’, declared
with attribute warn_unused_result [-Wunused-result]
write(DescPtrs->fd, &byt, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O pkg-config cairo-xlib-xrender --cflags -c -o src/MidiIn.o
src/MidiIn.c
src/MidiIn.c: In function ‘closeMidiIn’:
src/MidiIn.c:5726:4: warning: ignoring return value of ‘write’, declared
with attribute warn_unused_result [-Wunused-result]
write(MidiEventQueue, &data, sizeof(data));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O pkg-config cairo-xlib-xrender --cflags -c -o src/ConfigFile.o
src/ConfigFile.c
In file included from src/ConfigFile.c:18:0:
src/ConfigFile.h:5:16: error: conflicting types for ‘get_exe_path’
unsigned long get_exe_path(register char );
^~~~~~~~~~~~
In file included from src/Main.h:22:0,
from src/ConfigFile.c:17:
src/Utility.h:12:13: note: previous declaration of ‘get_exe_path’ was here
uint32_t get_exe_path(register char );
^~~~~~~~~~~~
src/ConfigFile.c:90:15: error: conflicting types for ‘get_exe_path’
unsigned long get_exe_path(register char * buffer)
^~~~~~~~~~~~
In file included from src/Main.h:22:0,
from src/ConfigFile.c:17:
src/Utility.h:12:13: note: previous declaration of ‘get_exe_path’ was here
uint32_t get_exe_path(register char );
^~~~~~~~~~~~
<builtin>: recipe for target 'src/ConfigFile.o' failed
make: </builtin>** [src/ConfigFile.o] Error 1
Hmmm. ConfigFile.c is for an older version. It should no longer be in the new sources. Did you have a previous version of the source code? If so, delete that .git directory, and download the latest source code. (It fixes one of the errors you got above).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've downloaded the source, apt'ed the dependencies but is giving error on
configure, as below. Can you help me?
gcc -O
pkg-config cairo-xlib-xrender --cflags
-c -o src/BackupBand.osrc/BackupBand.c
In file included from /usr/include/string.h:494:0,
from src/XLibGuiCtls.h:5,
from src/GuiCtls.h:9,
from src/Main.h:3,
from src/BackupBand.c:18:
In function ‘strcpy’,
inlined from ‘ctl_update_tempo’ at src/BackupBand.c:3036:3:
/usr/include/i386-linux-gnu/bits/string_fortified.h:90:10: warning:
‘builtinstrcpy_chk’ writing 11 bytes into a region of size 8 overflows
the destination [-Wstringop-overflow=]
return __builtinstrcpy_chk (dest, src, bos (__dest));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O
pkg-config cairo-xlib-xrender --cflags
-c -o src/AudioPlay.osrc/AudioPlay.c
src/AudioPlay.c: In function ‘open_libjack’:
src/AudioPlay.c:530:2: warning: ignoring return value of ‘system’, declared
with attribute warn_unused_result [-Wunused-result]
system("jack_control start");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/AudioPlay.c: In function ‘shutdown_jack’:
src/AudioPlay.c:498:2: warning: ignoring return value of ‘system’, declared
with attribute warn_unused_result [-Wunused-result]
system("jack_control stop");
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/AudioPlay.c: In function ‘audio_Off’:
src/AudioPlay.c:3228:3: warning: ignoring return value of ‘write’, declared
with attribute warn_unused_result [-Wunused-result]
write(DescPtrs->fd, &byt, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O
pkg-config cairo-xlib-xrender --cflags
-c -o src/MidiIn.osrc/MidiIn.c
src/MidiIn.c: In function ‘closeMidiIn’:
src/MidiIn.c:5726:4: warning: ignoring return value of ‘write’, declared
with attribute warn_unused_result [-Wunused-result]
write(MidiEventQueue, &data, sizeof(data));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O
pkg-config cairo-xlib-xrender --cflags
-c -o src/ConfigFile.osrc/ConfigFile.c
In file included from src/ConfigFile.c:18:0:
src/ConfigFile.h:5:16: error: conflicting types for ‘get_exe_path’
unsigned long get_exe_path(register char );
^~~~~~~~~~~~
In file included from src/Main.h:22:0,
from src/ConfigFile.c:17:
src/Utility.h:12:13: note: previous declaration of ‘get_exe_path’ was here
uint32_t get_exe_path(register char );
^~~~~~~~~~~~
src/ConfigFile.c:90:15: error: conflicting types for ‘get_exe_path’
unsigned long get_exe_path(register char * buffer)
^~~~~~~~~~~~
In file included from src/Main.h:22:0,
from src/ConfigFile.c:17:
src/Utility.h:12:13: note: previous declaration of ‘get_exe_path’ was here
uint32_t get_exe_path(register char );
^~~~~~~~~~~~
<builtin>: recipe for target 'src/ConfigFile.o' failed
make: </builtin>** [src/ConfigFile.o] Error 1
adrian@adrian-Compaq-Presario-CQ50-Notebook-PC:~/Downloads/backupband-code$
Que Deus te abençoe / God bless you,
Adrian Roberto Barbosa
Fone: +55 44 99119-6989
Cremos que todas as coisas cooperam
para o bem daqueles que amam a Deus,
daqueles que são chamados segundo o seu propósito"
(Romanos 8.28)
And we know that in all things God works for the good of those who love
him,
who have been called according to his purpose.
(Romans 8.28)
Hmmm. ConfigFile.c is for an older version. It should no longer be in the new sources. Did you have a previous version of the source code? If so, delete that .git directory, and download the latest source code. (It fixes one of the errors you got above).